Issue for "state history" in eventlog

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Issue for "state history" in eventlog

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Issue for "state history" in eventlog

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Re: Issue for "state history" in eventlog

Post by michaelli »

Hi abrist,

For my further observe, "state history" show the first message in each status. Thank you for your reply
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Issue for "state history" in eventlog

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked