Issue for "state history" in eventlog
Posted: Fri Apr 10, 2015 3:18 am
Hi,
I setup a active service for check event log by check_logfiles. The testing pattern listed as below.
ERROR123
ERROR456
ERROR567
Above pattern "ERRROR123", "ERROR456", "ERROR567" can display in nagios for every service check but When I check the "View service history". Refer to below table
It just show the first time alert "ERROR123" But "ERROR456", "ERROR567" do not report in history state.
Date / Time Host Service State State Type Attempt Information
2015-04-10 16:05:01 G04U0057 Active_check_log OK HARD 1 of 1 OK - no errors or warnings
2015-04-10 16:02:05 G04U0057 Active_check_log CRITICAL HARD 1 of 1 CRITICAL - (2 errors) - ERROR 123 ...
2015-04-10 15:08:58 G04U0057 Active_check_log OK HARD 1 of 1 OK - no errors or warnings
2015-04-10 15:01:08 G04U0057 Active_check_log UNKNOWN HARD 1 of 1 Scalar found where operator expected at C:\Program Files\NSClient++\scripts\check_logfiles.cfg line 3, near "$SERVICEOUTPUT$
2015-04-10 14:47:20 G04U0057 Active_check_log OK HARD 1 of 1 OK - no errors or warnings
2015-04-10 14:43:41 G04U0057 Active_check_log CRITICAL HARD 1 of 1 CRITICAL - (1 errors) - FATAL
2015-04-10 14:42:41 G04U0057 Active_check_log OK HARD 1 of 1 OK - no errors or warnings
My question is how to setup the history state so that we can view all alerts history.
I setup a active service for check event log by check_logfiles. The testing pattern listed as below.
ERROR123
ERROR456
ERROR567
Above pattern "ERRROR123", "ERROR456", "ERROR567" can display in nagios for every service check but When I check the "View service history". Refer to below table
It just show the first time alert "ERROR123" But "ERROR456", "ERROR567" do not report in history state.
Date / Time Host Service State State Type Attempt Information
2015-04-10 16:05:01 G04U0057 Active_check_log OK HARD 1 of 1 OK - no errors or warnings
2015-04-10 16:02:05 G04U0057 Active_check_log CRITICAL HARD 1 of 1 CRITICAL - (2 errors) - ERROR 123 ...
2015-04-10 15:08:58 G04U0057 Active_check_log OK HARD 1 of 1 OK - no errors or warnings
2015-04-10 15:01:08 G04U0057 Active_check_log UNKNOWN HARD 1 of 1 Scalar found where operator expected at C:\Program Files\NSClient++\scripts\check_logfiles.cfg line 3, near "$SERVICEOUTPUT$
2015-04-10 14:47:20 G04U0057 Active_check_log OK HARD 1 of 1 OK - no errors or warnings
2015-04-10 14:43:41 G04U0057 Active_check_log CRITICAL HARD 1 of 1 CRITICAL - (1 errors) - FATAL
2015-04-10 14:42:41 G04U0057 Active_check_log OK HARD 1 of 1 OK - no errors or warnings
My question is how to setup the history state so that we can view all alerts history.