Page 2 of 6

Re: Config error for Exchange server and Network Switch

Posted: Thu Apr 26, 2012 11:33 am
by dmanem
Hi,

The "Write monitoring data" item caused this error on the server - see file attached. The other two items did not cause any errors on the web page.

Thank you.

Re: Config error for Exchange server and Network Switch

Posted: Thu Apr 26, 2012 11:45 am
by scottwilkerson
If you have a large setup you will need to modify the max execution time in your php.ini

Instructions below
http://support.nagios.com/wiki/index.ph ... _Completes

Re: Config error for Exchange server and Network Switch

Posted: Tue May 01, 2012 1:42 pm
by dmanem
Hi,

I increased the maximum execution time in the php.ini file but the error keeps popping up.

Thank you

Re: Config error for Exchange server and Network Switch

Posted: Tue May 01, 2012 2:52 pm
by scottwilkerson
to clarify, did your restart apache

Code: Select all

service httpd restart

Re: Config error for Exchange server and Network Switch

Posted: Wed May 02, 2012 10:13 am
by dmanem
Yes I have restarted HTTPD services.

Re: Config error for Exchange server and Network Switch

Posted: Wed May 02, 2012 10:15 am
by scottwilkerson
Can you show the new error?

Also, you large in terms of host/services is your setup?

Re: Config error for Exchange server and Network Switch

Posted: Wed May 02, 2012 11:07 am
by dmanem
The error is "PHP Fatal error: Maximum execution time of 150 seconds exceeded in /var/www/html/nagiosql/functions/config_class.php on line 1160". This is the error that pops up when I am trying to monitor a DHCP server. What execution time do you suggest?
Nagios is monitoring 510 nodes in our network at present.

Thank you.

Re: Config error for Exchange server and Network Switch

Posted: Wed May 02, 2012 12:04 pm
by scottwilkerson
I am starting to think we might have either a database corruption problem or a permissions problem

Lets start with the db, run the following

Code: Select all

cd /usr/local/nagiosxi/scripts
./repairmysql.sh nagios
./repairmysql.sh nagiosql
Then if you are still seeing the same problem, I'd like you to run the following procedure
http://library.nagios.com/library/produ ... -nagios-xi

Re: Config error for Exchange server and Network Switch

Posted: Wed May 02, 2012 1:11 pm
by dmanem
I am sorry but even after running the commands and also fixing the permission rights, the same execution time error popped up.

Re: Config error for Exchange server and Network Switch

Posted: Wed May 02, 2012 2:00 pm
by scottwilkerson
Please run the following and attach reconfig.txt back to the forum

Code: Select all

cd /usr/local/nagiosxi/scripts
reconfigure_nagios.sh &> reconfig.txt