Alert on % change?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
00_kl250
Posts: 63
Joined: Tue Apr 16, 2013 7:26 am

Alert on % change?

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Alert on % change?

Post 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
Former Nagios employee
https://www.mcapra.com/
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Alert on % change?

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked