Core Config Manager Access Missing
Core Config Manager Access Missing
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
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Core Config Manager Access Missing
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
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/messagesRe: Core Config Manager Access Missing
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?
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?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Core Config Manager Access Missing
This looks like mysqld isn't running
Code: Select all
service mysqld restartRe: Core Config Manager Access Missing
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Core Config Manager Access Missing
Can we run the following while trying to access the page
Code: Select all
tail -f /var/log/httpd/error_logRe: Core Config Manager Access Missing
[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/
[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/
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Core Config Manager Access Missing
I have a feeling it is more than this, but can you edit /etc/php.ini and change
to
then restart apache
Now lets repeat the previous step, run the following while trying to access the page
Code: Select all
;date.timezone=Code: Select all
date.timezone=America/DenverCode: Select all
service httpd restartCode: Select all
tail -f /var/log/httpd/error_logRe: Core Config Manager Access Missing
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
[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
Try running in terminal:
Hope this helps.
Code: Select all
yum install php-pear php-pear-HTML-Template-IT -yBe sure to check out our Knowledgebase for helpful articles and solutions!