Could you help me for "Error: Cannot open log file '/usr/local/nagios/var/archives/nagios-xx-xx-xx.log' for reading!" .
when i'm want look Notification history the error show up and likes my history and performance graph for spesific time and date gone .
i'm tried look on nagios.log no one clue related this error. search the file nagios-xx-xx-xx.log on the path is gone . i think this log on spesific date archive isn't create. please your advice for solve this issue..
thank in advance for your help.
Note:
Nagios version Nagios XI 2012R2.2
OS -> Centos 6.4 x84_64.
you can see for list 25 august file not created. at september this issue's come again the log not created and message.log :
Sep 2 00:00:00 localhost nagios: Caught SIGSEGV, shutting down...
Sep 2 00:00:00 localhost ndo2db: Error: mysql_query() failed for 'UPDATE nagios_conninfo SET disconnect_time=NOW(), last_checkin_t
ime=NOW(), data_end_time=FROM_UNIXTIME, bytes_processed='0', lines_processed='0', entries_processed='0' WHERE conninfo_id='0''
Sep 2 00:00:00 localhost ndo2db: mysql_error: 'MySQL server has gone away'
Sep 2 00:00:00 localhost ndo2db: Error: Connection to MySQL database has been lost!
i tried to fix database nagios n complete successfully. n still monitoring this issue hope not happen again.
any advice ??
thnks.
Last edited by Perintis on Mon Sep 16, 2013 1:50 am, edited 1 time in total.
i found the root couse is if any scheduled downtime host or service (ex. 3 days) at midnight nagios service unexpectedly stop and impact to log archives didn't created. please your advice this is bug from nagios or any information ?? ,i used nagios xi 2012R2.2 .
for temporary action i created corntab job for check nagios service at midnight every day its fix for issue nagios stop with "SIGSEGV "message ,but nagios log didn't created archive log .
could you help to share manually run Log rotate / where script on nagios to run log rotate archive??,can i ran manual it..