Page 1 of 1

Issue for "state history" in eventlog

Posted: Fri Apr 10, 2015 3:18 am
by michaelli
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.

Re: Issue for "state history" in eventlog

Posted: Fri Apr 10, 2015 11:26 am
by abrist
If the output is newline separated, you will only see the first line as the state history will only show the first line. Does that make sense?

Re: Issue for "state history" in eventlog

Posted: Sun Apr 12, 2015 1:16 am
by michaelli
Hi abrist,

For my further observe, "state history" show the first message in each status. Thank you for your reply

Re: Issue for "state history" in eventlog

Posted: Mon Apr 13, 2015 10:46 am
by abrist
michaelli wrote:For my further observe, "state history" show the first message in each status.
Yep, this is the expected and intended behavior.