Page 1 of 1
Event Log empty.
Posted: Fri Jan 04, 2013 12:58 pm
by mccollege
Hi,
Since upgrading from 2011R1.8 to 2012R1.3 the Event Log is empty or not displaying anything.
Thanks,
Mark
Re: Event Log empty.
Posted: Fri Jan 04, 2013 1:57 pm
by slansing
The Event log is populated by a parsed form of nagios.log, lets start at the ground level..can you run the following and let me know what it outputs?
Code: Select all
ls -l /usr/local/nagios/var/nagios.log
tail /usr/local/nagios/var/nagios.log
Re: Event Log empty.
Posted: Fri Jan 04, 2013 2:34 pm
by mccollege
So, it looks like the event log is logging correctly from the output below, but it's not being displayed in when I click on event log in nagiosxi.
ls -l /usr/local/nagios/var/nagios.log
-rw-r--r-- 1 nagios nagios 952378 Jan 4 13:20 /usr/local/nagios/var/nagios.log
tail /usr/local/nagios/var/nagios.log
[1357326293] SERVICE NOTIFICATION: billyho29a;mc-38-core-a;B42 DATACENTER WEST Bandwidth;CRITICAL;xi_service_notification_handler;CRITICAL - Current BW in: 917.99Mbps Out: 40.13Mbps
[1357326593] SERVICE ALERT: mc-38-core-a;B42 DATACENTER WEST Bandwidth;OK;HARD;5;OK - Current BW in: 473.15Mbps Out: 14.72Mbps
[1357326593] SERVICE NOTIFICATION: sisung_d;mc-38-core-a;B42 DATACENTER WEST Bandwidth;OK;xi_service_notification_handler;OK - Current BW in: 473.15Mbps Out: 14.72Mbps
[1357326593] SERVICE NOTIFICATION: harwell_j;mc-38-core-a;B42 DATACENTER WEST Bandwidth;OK;xi_service_notification_handler;OK - Current BW in: 473.15Mbps Out: 14.72Mbps
[1357326593] SERVICE NOTIFICATION: billyho29a;mc-38-core-a;B42 DATACENTER WEST Bandwidth;OK;xi_service_notification_handler;OK - Current BW in: 473.15Mbps Out: 14.72Mbps
[1357326903] Auto-save of retention data completed successfully.
[1357327213] SERVICE ALERT: localhost;Current Load;WARNING;HARD;4;WARNING - load average: 4.55, 8.76, 9.99
[1357327213] SERVICE NOTIFICATION: wh;localhost;Current Load;WARNING;xi_service_notification_handler;WARNING - load average: 4.55, 8.76, 9.99
[1357327214] SERVICE NOTIFICATION: ph;localhost;Current Load;WARNING;xi_service_notification_handler;WARNING - load average: 4.55, 8.76, 9.99
[1357327215] SERVICE NOTIFICATION: eelman;localhost;Current Load;WARNING;xi_service_notification_handler;WARNING - load average: 4.55, 8.76, 9.99
Re: Event Log empty.
Posted: Fri Jan 04, 2013 3:24 pm
by yancy
mccollege,
The Event log pulls from NDOUtils, which uses mysql.
Try running a database repair on mysql as described here:
http://assets.nagios.com/downloads/nagi ... tabase.pdf
Regards,
-Yancy