Core Config Manager Access Missing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Core Config Manager Access Missing

Post 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
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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Re: Core Config Manager Access Missing

Post 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? :)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Core Config Manager Access Missing

Post by scottwilkerson »

This looks like mysqld isn't running

Code: Select all

service mysqld restart
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Re: Core Config Manager Access Missing

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Core Config Manager Access Missing

Post by scottwilkerson »

Can we run the following while trying to access the page

Code: Select all

tail -f /var/log/httpd/error_log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Re: Core Config Manager Access Missing

Post 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/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Core Config Manager Access Missing

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Re: Core Config Manager Access Missing

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Core Config Manager Access Missing

Post by lmiltchev »

Try running in terminal:

Code: Select all

yum install php-pear php-pear-HTML-Template-IT -y
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked