Page 1 of 1
Alert if NO logs are received
Posted: Tue May 12, 2020 3:22 am
by jabi27
Hi,
Any idea to create an alert if I haven't received any logs from a IP for ex 1 hour ?
Best
/Jan
Re: Alert if NO logs are received
Posted: Tue May 12, 2020 3:58 am
by jabi27
Found it
"Thresholds - This is what triggers the alert. A common use of the host freshness check is to detect when a host is no longer sending logs to Nagios Log Server. By using 0 for both warning and critical this will trigger a critical condition. Host Freshness alerts run once per hour and observe logs over the same amount of time"
Re: Alert if NO logs are received
Posted: Tue May 12, 2020 10:15 am
by cdienger
That will do it. I'd only add out that alerts cant accept the Nagios threshold syntax which is covered in
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT and the freshness checks work by searching the 'Not Sending' table under Reports.