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.
Issue for "state history" in eventlog
Re: Issue for "state history" in eventlog
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.
"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.
Re: Issue for "state history" in eventlog
Hi abrist,
For my further observe, "state history" show the first message in each status. Thank you for your reply
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
Yep, this is the expected and intended behavior.michaelli wrote:For my further observe, "state history" show the first message in each status.
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.
"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.