Page 1 of 1

Alert on % change?

Posted: Tue Mar 26, 2019 7:14 am
by 00_kl250
Hi All,

I'm looking for a plugin/script that would take a reading (say signal level) and then alert on a % change.

For example:

First poll signal level is 50. IF the signal level moves +/- 10% at anytime, alert.

I've searched around and really can't find anything. From what i gather, the script would need to store that original value in some kind of temp file and then run checks against it.

Thanks in advance for any suggestions.

Re: Alert on % change?

Posted: Tue Mar 26, 2019 10:13 am
by mcapra
Nagios Core by itself isn't really built for the monitoring of time-series data. Nagios XI keeps a time-series for every check that it is capable of keeping a time-series for.

As far as open source solutions go, pnp4nagios exists to keep a time-series of performance data per Nagios object in RRDs, which can then be referenced by a plugin like check_rrd.

You can also export perfdata to something like InfluxDB with Nagflux and use a plugin like this one to "check" it:
https://github.com/locationlabs/influxdb-nagios-plugin

Re: Alert on % change?

Posted: Tue Mar 26, 2019 2:18 pm
by npolovenko
I agree with @mcapra. It seems like you'd need to build a custom plugin for this. If you know a particular model of the device you're looking to monitor try looking it up on the Exchange portal: https://exchange.nagios.org. We might have some specific plugins made for your device.