Page 1 of 1

Send Alarm when "Last Check" time not updated on passive service

Posted: Mon Dec 18, 2023 8:06 am
by Anto
Hi Team

I have a passive check that receive status updates from check_logfiles plugin monitoring a specific log file on a remote RHEL server.
The check_logfile plugin is actived by NCPA agent on the remote server.
Other than error log messages to be monitored, every 30 minutes in the log file appear also an health check message (also this is matched from check_logfile but with severity Normal) so that, the "Last Check" time when all is OK it is updated at least every 30 minutes.
I would have another alarm to raise when the health check message is not coming and the last check time is not updated for more than half hour.
Does anyone have a suggestion how to do this ?
Screenshot 2023-12-18 093428.jpg
Regards

Re: Send Alarm when "Last Check" time not updated on passive service

Posted: Mon Dec 18, 2023 10:58 am
by jsimon
Hi @Anto,

I believe you can accomplish what you are looking to do here with Freshness Checks on your passive service check:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

The section in the above link marked "Extending Passive Checks With Freshness Checks" should contain the steps you need to enable this for whatever threshold works for you here. Let us know if you have more questions about this!

Re: Send Alarm when "Last Check" time not updated on passive service

Posted: Tue Dec 19, 2023 10:07 am
by Anto
Hi @jsimon

Thank you for the suggestion, this is very nice solution.

kind regards
Antonello