Page 1 of 2

Core Config Manager Access Missing

Posted: Wed Oct 24, 2012 10:44 am
by mcwhorts
profile (2).txt

So I am trying some new things on our test nagios xi system namely Nagios XI 2012R1.0 and NSTI. Now I am unable to access Core Config Manager. In the area where you normally would see things there is nothing. I upgraded our PHP to 5.3.3 to get NSTI to work. I think that is what caused this but I'm not 100% sure about that. Thanks

Re: Core Config Manager Access Missing

Posted: Wed Oct 24, 2012 10:47 am
by scottwilkerson
I am guessing you missed re-installing a php package.

Can you run the following from the command line while trying to access the page and post the results

Code: Select all

tail -f /var/log/messages

Re: Core Config Manager Access Missing

Posted: Wed Oct 24, 2012 10:53 am
by mcwhorts
It looks as though I am unable to connect to the MySQL database

Oct 24 09:17:26 littlebro ndo2db: Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Oct 24 09:17:26 littlebro ndo2db: Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Oct 24 09:17:29 littlebro ndo2db: Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Oct 24 09:17:29 littlebro ndo2db: Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Oct 24 09:17:29 littlebro ndo2db: Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Oct 24 09:17:30 littlebro ndo2db: Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Oct 24 09:17:30 littlebro ndo2db: Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Oct 24 09:17:32 littlebro ndo2db: Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Oct 24 09:17:32 littlebro ndo2db: Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Oct 24 09:38:05 littlebro nagios: Auto-save of retention data completed successfully.

So how can I fix this? :)

Re: Core Config Manager Access Missing

Posted: Wed Oct 24, 2012 11:08 am
by scottwilkerson
This looks like mysqld isn't running

Code: Select all

service mysqld restart

Re: Core Config Manager Access Missing

Posted: Wed Oct 24, 2012 3:19 pm
by mcwhorts
It's still not working. Here are the messages I'm getting after restarting mysql.

Oct 24 13:33:26 littlebro ndo2db: mysql_error: 'MySQL server has gone away'
Oct 24 13:33:26 littlebro ndo2db: Error: Connection to MySQL database has been lost!
Oct 24 13:33:26 littlebro ndo2db: Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Oct 24 13:33:27 littlebro ndo2db: Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Oct 24 13:33:27 littlebro ndo2db: Error: Could not connect to MySQL database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Oct 24 13:34:29 littlebro nagios: ndomod: Error writing to data sink! Some output may get lost...
Oct 24 13:34:29 littlebro nagios: ndomod: Please check remote ndo2db log, database connection or SSL Parameters
Oct 24 13:34:45 littlebro nagios: ndomod: Successfully reconnected to data sink! 0 items lost, 100 queued items to flush.
Oct 24 13:34:45 littlebro nagios: ndomod: Successfully flushed 100 queued items to data sink.
Oct 24 13:38:05 littlebro nagios: Auto-save of retention data completed successfully.

Re: Core Config Manager Access Missing

Posted: Wed Oct 24, 2012 3:58 pm
by scottwilkerson
Can we run the following while trying to access the page

Code: Select all

tail -f /var/log/httpd/error_log

Re: Core Config Manager Access Missing

Posted: Wed Oct 24, 2012 4:35 pm
by mcwhorts
[Wed Oct 24 15:33:24 2012] [error] [client 10.35.43.117] PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MDT/-6.0/DST' instead in /usr/local/nagiosxi/html/includes/utils-status.inc.php on line 70, referer: http://littlebro/nagiosxi/config/
[Wed Oct 24 15:33:24 2012] [error] [client 10.35.43.117] PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MDT/-6.0/DST' instead in /usr/local/nagiosxi/html/includes/utils-status.inc.php on line 70, referer: http://littlebro/nagiosxi/config/
[Wed Oct 24 15:33:24 2012] [error] [client 10.35.43.117] PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MDT/-6.0/DST' instead in /usr/local/nagiosxi/html/includes/utilsl.inc.php on line 381, referer: http://littlebro/nagiosxi/config/

Re: Core Config Manager Access Missing

Posted: Wed Oct 24, 2012 4:39 pm
by scottwilkerson
I have a feeling it is more than this, but can you edit /etc/php.ini and change

Code: Select all

;date.timezone=
to

Code: Select all

date.timezone=America/Denver
then restart apache

Code: Select all

service httpd restart
Now lets repeat the previous step, run the following while trying to access the page

Code: Select all

tail -f /var/log/httpd/error_log

Re: Core Config Manager Access Missing

Posted: Wed Oct 24, 2012 4:44 pm
by mcwhorts
This is what I see after setting the timezone.

[Wed Oct 24 15:43:22 2012] [error] [client 10.35.43.117] PHP Fatal error: Cannot redeclare linux_server_configwizard_get_distro_icon() (previously declared in /usr/local/nagiosxi/html/includes/configwizards/linux-server/linux-server.inc.php:885) in /usr/local/nagiosxi/html/includes/configwizards/testlinuxserver/testlinuxserver.inc.php on line 675, referer: http://littlebro/nagiosxi/config/
[Wed Oct 24 15:43:28 2012] [error] [client 10.35.43.117] PHP Fatal error: Cannot redeclare linux_server_configwizard_get_distro_icon() (previously declared in /usr/local/nagiosxi/html/includes/configwizards/linux-server/linux-server.inc.php:885) in /usr/local/nagiosxi/html/includes/configwizards/testlinuxserver/testlinuxserver.inc.php on line 675, referer: http://littlebro/nagiosxi/config/
[Wed Oct 24 15:43:32 2012] [error] [client 10.35.43.117] PHP Warning: require_once(PEAR.php): failed to open stream: No such file or directory in /usr/share/pear/HTML/Template/IT.php on line 31, referer: http://littlebro/nagiosxi/includes/comp ... -index.php
[Wed Oct 24 15:43:32 2012] [error] [client 10.35.43.117] PHP Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/pear/HTML/Template/IT.php on line 31, referer: http://littlebro/nagiosxi/includes/comp ... -index.php

Re: Core Config Manager Access Missing

Posted: Wed Oct 24, 2012 5:01 pm
by lmiltchev
Try running in terminal:

Code: Select all

yum install php-pear php-pear-HTML-Template-IT -y
Hope this helps.