Upgraded to version Nagios XI 2009R1.1G this morning at 10am and after the upgrade have not received any more pages via e-mail. Checked all user accounts and sent test messages from their account which works. Checked the Nagios Event log and it says it sent out to every user yet nobody gets an email any longer.
Example from event log:
[03-23-2010 16:11:08] SERVICE NOTIFICATION: nagiosadmin;serverx;Drive X: Disk Usage;CRITICAL;notify-service-by-email;X:\ - total: 244.99 Gb - used: 231.07 Gb (94%) - free 13.92 Gb (6%)
Is there anything else that I can check?
Upgraded to Nagios XI 2009R1.1G and email paging stopped
Re: Upgraded to Nagios XI 2009R1.1G and email paging stopped
Check the /var/log/httpd/error_log , one theory is there may be a bug in the PHP code. If this is the case it should show up here.
Re: Upgraded to Nagios XI 2009R1.1G and email paging stopped
looks like you were right. My log file is flooded with these messages:
[Tue Mar 23 15:52:59 2010] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function setVariable() on a non-object in /var/www/html/nagiosql/index.php on line 103
Let me know if there is anything I can change in the file to correct this.
[Tue Mar 23 15:52:59 2010] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function setVariable() on a non-object in /var/www/html/nagiosql/index.php on line 103
Let me know if there is anything I can change in the file to correct this.
-
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: Upgraded to Nagios XI 2009R1.1G and email paging stopped
I opened a ticket for this at http://tracker.nagios.com/view.php?id=22
-
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: Upgraded to Nagios XI 2009R1.1G and email paging stopped
This would be unrelated to that error, but might fix the actual problem:
1. Edit /usr/local/nagiosxi/cron/eventman.php
2. Comment out require_once() statement for utils.inc.php
3. Add a require_once() statement for common.inc.php
New require_once() statements should look like this:
require_once(dirname(__FILE__).'/../html/config.inc.php');
//require_once(dirname(__FILE__).'/../html/includes/utils.inc.php');
require_once(dirname(__FILE__).'/../html/includes/common.inc.php');
Re: Upgraded to Nagios XI 2009R1.1G and email paging stopped
I'm happy to report that this bug was fixed in version 1.1H.