Observium Displays Login Page After Every Sub-Page Request
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Are you still trying to run on FreeBSD?
Using Observium relies on working cookies and php sessions. Either your browser is retarded in such a way that it's breaking cookies and breaking the session, or your php install is retarded in such a way that it's breaking the session.
Stop trying to run it on FreeBSD.
adam.
On 2013-11-07 02:19, Ron Wingfield wrote:
Gentlemen:
I cannot understand this navigation problem. I have encountered this scenario before, but resolved the problem in the past. I have just upgraded to the current PHP Version 5.5.5 and for some reason (or other configuration error), navigation through the Observium system cycles back through the login page, regardless of navigation (menu) option selected. Once the login userid and passwd are (re)submitted, then the system displays the requested page.
I have endeavored to follow the documentation to the letter. Below, I have copied the critical attributes from the indicated files, and $_SERVER array dumps at each step in the example.
I need another set of eyes to spot any error(s). Has anyone encountered this same scenario? The only thing I can think of is some problem with the Apache Server version: Apache/2.2.25 configuration.
All thoughts and comments much appreciated,
OTTF, [1] Ron W.
FROM /OPT/OBSERVIUM/CONFIG.PHP:
$config['install_dir'] = "/opt/observium"; $config['html_dir'] = $config['install_dir'] . "/html"; $config['rrd_dir'] = $config['install_dir'] . "/rrd"; $config['log_file'] = $config['install_dir'] . "/observium.log"; $config['temp_dir'] = "/tmp";
// $config['base_url'] = "http://observium.company.com" [2];
/USR/LOCAL/ETC/APACHE22/EXTRA/VHOSTS-HTTPD.CONF
#----------------------------------------------------- <VirtualHost *:82> ServerAdmin rtwingfield@archaxis.net ServerName observium DocumentRoot /opt/observium/html AcceptPathInfo On # tried this . . .didn't help.
<Directory /> Options FollowSymLinks AllowOverride None </Directory>
<Directory /opt/observium/html/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all # DirectoryIndex index.php # When enabled, indexing is overridden.
</Directory>
RewriteEngine On RewriteOptions Inherit CustomLog /var/log/observium_access.log combined ErrorLog /var/log/observium_error.log Loglevel warn ServerSignature On
</VirtualHost>
#-----------------------------------------------------
$_SERVER ARRAY DUMP WHILE INITIAL LOGIN PAGE DISPLAYED:
$_SERVER array (31) 'UNIQUE_ID' => string (24) "UnrsWUKKaEkAACnBfTgAAAAB" 'SCRIPT_URL' => string (10) "/index.php" 'SCRIPT_URI' => string (32) "http://192.168.1.75:82/index.php" [3] 'HTTP_HOST' => string (15) "192.168.1.75:82" 'HTTP_USER_AGENT' => string (65) "Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox …" Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 'HTTP_ACCEPT' => string (63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= …" text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 'HTTP_ACCEPT_LANGUAGE' => string (14) "en-US,en;q=0.5" 'HTTP_ACCEPT_ENCODING' => string (13) "gzip, deflate" 'HTTP_CONNECTION' => string (10) "keep-alive" 'PATH' => string (29) "/sbin:/bin:/usr/sbin:/usr/bin" 'SERVER_SIGNATURE' => string (120) "<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 Op …"
<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 Server at 192.168.1.75 Port 82</address> 'SERVER_SOFTWARE' => string (69) "Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9 …" Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 'SERVER_NAME' => string (12) "192.168.1.75" 'SERVER_ADDR' => string (12) "192.168.1.75" 'SERVER_PORT' => string (2) "82" 'REMOTE_ADDR' => string (11) "192.168.1.2" 'DOCUMENT_ROOT' => string (19) "/opt/observium/html" 'SERVER_ADMIN' => string (24) "rtwingfield@archaxis.net" 'SCRIPT_FILENAME' => string (29) "/opt/observium/html/index.php" 'REMOTE_PORT' => string (4) "4758" 'GATEWAY_INTERFACE' => string (7) "CGI/1.1" 'SERVER_PROTOCOL' => string (8) "HTTP/1.1" 'REQUEST_METHOD' => string (3) "GET" 'QUERY_STRING' => string (0) "" 'REQUEST_URI' => string (10) "/index.php" 'SCRIPT_NAME' => string (10) "/index.php" 'PHP_SELF' => string (10) "/index.php"
. . .after login - main page displayed with device alerts, Recent Event Log entries, etc.
$_SERVER array (34) 'UNIQUE_ID' => string (24) "UnrtLEKKaEkAACniSo0AAAAG" 'SCRIPT_URL' => string (10) "/index.php" 'SCRIPT_URI' => string (32) "http://192.168.1.75:82/index.php" [3] 'HTTP_HOST' => string (15) "192.168.1.75:82" 'HTTP_USER_AGENT' => string (65) "Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox …" Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 'HTTP_ACCEPT' => string (63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= …" text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 'HTTP_ACCEPT_LANGUAGE' => string (14) "en-US,en;q=0.5" 'HTTP_ACCEPT_ENCODING' => string (13) "gzip, deflate" 'HTTP_REFERER' => string (32) "http://192.168.1.75:82/index.php" [3] 'HTTP_CONNECTION' => string (10) "keep-alive" 'CONTENT_TYPE' => string (33) "application/x-www-form-urlencoded" 'CONTENT_LENGTH' => string (2) "36" 'PATH' => string (29) "/sbin:/bin:/usr/sbin:/usr/bin" 'SERVER_SIGNATURE' => string (120) "<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 Op …"
<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 Server at 192.168.1.75 Port 82</address> 'SERVER_SOFTWARE' => string (69) "Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9 …" Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 'SERVER_NAME' => string (12) "192.168.1.75" 'SERVER_ADDR' => string (12) "192.168.1.75" 'SERVER_PORT' => string (2) "82" 'REMOTE_ADDR' => string (11) "192.168.1.2" 'DOCUMENT_ROOT' => string (19) "/opt/observium/html" 'SERVER_ADMIN' => string (24) "rtwingfield@archaxis.net" 'SCRIPT_FILENAME' => string (29) "/opt/observium/html/index.php" 'REMOTE_PORT' => string (4) "4759" 'GATEWAY_INTERFACE' => string (7) "CGI/1.1" 'SERVER_PROTOCOL' => string (8) "HTTP/1.1" 'REQUEST_METHOD' => string (4) "POST" 'QUERY_STRING' => string (0) "" 'REQUEST_URI' => string (10) "/index.php" 'SCRIPT_NAME' => string (10) "/index.php" 'PHP_SELF' => string (10) "/index.php"
Select preferences from drop-down menu and returned to Login Page:
$_SERVER array (39) 'REDIRECT_UNIQUE_ID' => string (24) "Unrq@kKKaEkAACnEf@QAAAAE" 'REDIRECT_SCRIPT_URL' => string (13) "/preferences/" 'REDIRECT_SCRIPT_URI' => string (35) "http://192.168.1.75:82/preferences/" [4] 'REDIRECT_STATUS' => string (3) "200" 'UNIQUE_ID' => string (24) "Unrq@kKKaEkAACnEf@QAAAAE" 'SCRIPT_URL' => string (13) "/preferences/" 'SCRIPT_URI' => string (35) "http://192.168.1.75:82/preferences/" [4] 'HTTP_HOST' => string (15) "192.168.1.75:82" 'HTTP_USER_AGENT' => string (65) "Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox …" Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 'HTTP_ACCEPT' => string (63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= …" text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 'HTTP_ACCEPT_LANGUAGE' => string (14) "en-US,en;q=0.5" 'HTTP_ACCEPT_ENCODING' => string (13) "gzip, deflate" 'HTTP_REFERER' => string (31) "http://192.168.1.75:82/addhost/" [5] 'HTTP_CONNECTION' => string (10) "keep-alive" 'PATH' => string (29) "/sbin:/bin:/usr/sbin:/usr/bin" 'SERVER_SIGNATURE' => string (120) "<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 Op …"
<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 Server at 192.168.1.75 Port 82</address> 'SERVER_SOFTWARE' => string (69) "Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9 …" Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 'SERVER_NAME' => string (12) "192.168.1.75" 'SERVER_ADDR' => string (12) "192.168.1.75" 'SERVER_PORT' => string (2) "82" 'REMOTE_ADDR' => string (11) "192.168.1.2" 'DOCUMENT_ROOT' => string (19) "/opt/observium/html" 'SERVER_ADMIN' => string (24) "rtwingfield@archaxis.net" 'SCRIPT_FILENAME' => string (29) "/opt/observium/html/index.php" 'REMOTE_PORT' => string (4) "4751" 'REDIRECT_URL' => string (13) "/preferences/" 'GATEWAY_INTERFACE' => string (7) "CGI/1.1" 'SERVER_PROTOCOL' => string (8) "HTTP/1.1" 'REQUEST_METHOD' => string (3) "GET" 'QUERY_STRING' => string (0) "" 'REQUEST_URI' => string (13) "/preferences/" 'SCRIPT_NAME' => string (10) "/index.php" 'PATH_INFO' => string (13) "/preferences/" 'PATH_TRANSLATED' => string (34) "redirect:/index.php/preferences///" 'PHP_SELF' => string (24) "/index.php/preferences//"
Entered USERID and PASSWD . . .navigated to and displayed User Preferences page.
$_SERVER array (41) 'REDIRECT_UNIQUE_ID' => string (24) "Unrrf0KKaEkAACnAdtwAAAAA" 'REDIRECT_SCRIPT_URL' => string (13) "/preferences/" 'REDIRECT_SCRIPT_URI' => string (35) "http://192.168.1.75:82/preferences/" [4] 'REDIRECT_STATUS' => string (3) "200" 'UNIQUE_ID' => string (24) "Unrrf0KKaEkAACnAdtwAAAAA" 'SCRIPT_URL' => string (13) "/preferences/" 'SCRIPT_URI' => string (35) "http://192.168.1.75:82/preferences/" [4] 'HTTP_HOST' => string (15) "192.168.1.75:82" 'HTTP_USER_AGENT' => string (65) "Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox …" Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 'HTTP_ACCEPT' => string (63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= …" text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 'HTTP_ACCEPT_LANGUAGE' => string (14) "en-US,en;q=0.5" 'HTTP_ACCEPT_ENCODING' => string (13) "gzip, deflate" 'HTTP_REFERER' => string (35) "http://192.168.1.75:82/preferences/" [4] 'HTTP_CONNECTION' => string (10) "keep-alive" 'CONTENT_TYPE' => string (33) "application/x-www-form-urlencoded" 'CONTENT_LENGTH' => string (2) "36" 'PATH' => string (29) "/sbin:/bin:/usr/sbin:/usr/bin" 'SERVER_SIGNATURE' => string (120) "<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 Op …"
<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 Server at 192.168.1.75 Port 82</address> 'SERVER_SOFTWARE' => string (69) "Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9 …" Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 'SERVER_NAME' => string (12) "192.168.1.75" 'SERVER_ADDR' => string (12) "192.168.1.75" 'SERVER_PORT' => string (2) "82" 'REMOTE_ADDR' => string (11) "192.168.1.2" 'DOCUMENT_ROOT' => string (19) "/opt/observium/html" 'SERVER_ADMIN' => string (24) "rtwingfield@archaxis.net" 'SCRIPT_FILENAME' => string (29) "/opt/observium/html/index.php" 'REMOTE_PORT' => string (4) "4753" 'REDIRECT_URL' => string (13) "/preferences/" 'GATEWAY_INTERFACE' => string (7) "CGI/1.1" 'SERVER_PROTOCOL' => string (8) "HTTP/1.1" 'REQUEST_METHOD' => string (4) "POST" 'QUERY_STRING' => string (0) "" 'REQUEST_URI' => string (13) "/preferences/" 'SCRIPT_NAME' => string (10) "/index.php" 'PATH_INFO' => string (13) "/preferences/" 'PATH_TRANSLATED' => string (34) "redirect:/index.php/preferences///" 'PHP_SELF' => string (24) "/index.php/preferences//"
Links:
[1] http://archaxis.net/htdocs/RTWingfield/htdocs/humor/OTTF/OTTF.html [2] http://observium.company.com [3] http://192.168.1.75:82/index.php [4] http://192.168.1.75:82/preferences/ [5] http://192.168.1.75:82/addhost/
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/250163797f9416d6a6b93630cdd198a0.jpg?s=120&d=mm&r=g)
Browser is FireFox 25.0,1. Sessions . . .I was "reading up" on sessions this afternoon and that entered my mind to research -- seems like it may be dropping the session(s). Cookies, should be/are working.
Regarding FreeBSD, yes, but you know, it's just another BSD "unix", and very server oriented. I've previously succeeded in running Observium on FreeBSD, and I don't think it should be a problem now. I don't want to convert to Ubuntu or that Linux kernel system just for the sake of running SNMP tools. Tomorrow, I'll explore the sessions situation.
I really like what I've seen regarding Observium, but honestly, I don't see what is so unique about Ubuntu or Linux. I started working with AT&T's SVR3 Unix (back in the eighties). PHP should be platform independent, as should a browser like FireFox.
From a marketing perspective, you're excluding a lot of users by demanding "Ubuntu / Linus" only; regardless, tomorrow, I'll explore the sessions integrity scenario. If I'm successful, I'll report back.
Thanks, RW
Adam Armstrong wrote:
Are you still trying to run on FreeBSD? Using Observium relies on working cookies and php sessions. Either your browser is retarded in such a way that it's breaking cookies and breaking the session, or your php install is retarded in such a way that it's breaking the session. Stop trying to run it on FreeBSD. adam.
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
On 2013-11-07 03:05, Ron Wingfield wrote:
Browser is FireFox 25.0,1. Sessions . . .I was "reading up" on sessions this afternoon and that entered my mind to research -- seems like it may be dropping the session(s). Cookies, should be/are working.
Regarding FreeBSD, yes, but you know, it's just another BSD "unix", and very server oriented. I've previously succeeded in running Observium on FreeBSD, and I don't think it should be a problem now. I don't want to convert to Ubuntu or that Linux kernel system just for the sake of running SNMP tools. Tomorrow, I'll explore the sessions situation.
I really like what I've seen regarding Observium, but honestly, I don't see what is so unique about Ubuntu or Linux. I started working with AT&T's SVR3 Unix (back in the eighties). PHP should be platform independent, as should a browser like FireFox.
We both know that things are 'platform independent' until individual packagers and their chose OS's stupid policies get in the way.
From a marketing perspective, you're excluding a lot of users by demanding "Ubuntu / Linus" only; regardless, tomorrow, I'll explore the sessions integrity scenario. If I'm successful, I'll report back.
I'm not convinced we are excluding any significant number of people. Observium is intended to be used by reasonably large operations who can at the very least dedicate a VM, if not an entire server, to running it.
We specifically target Debian/Ubuntu, because those are what the development team run, and those are what we test on. We discourage people from running on anything else because it significantly increases the likelyhood of an update breaking something, as we won't have tested it on their system, and the whims of their system's packagers and policies.
The issue is significantly worse on alternative OSes like FreeBSD and Solaris, because we can't even rely on the behaviour of the userland applications.
You're simply making life difficult for yourself by being obtuse and insisting on running it on FreeBSD. You may get it working today, but at some point in the near future, it will stop working again, because of some difference between our development platforms and your installation. Then it'll happen again, and again.
adam.
participants (2)
-
Adam Armstrong
-
Ron Wingfield