Checks that compare previous values

Jee Kay jeekay at gmail.com
Tue May 30 16:55:34 CEST 2006


Is there some way to make checks compare the value they've retrieved
against the previous value of that service?

Specifically, I would like to be able to alert on excessive throughput
on some switchports. The obvious way to do this is check the inOctets
every minute and compare the value just retrieved against the last
value; if that *8/60 is more than a certain amount then we need to
alarm.

A rough timeline would be:

000 seconds: Check; gets 150. No previous value - ignore completely.
060 seconds: Check; gets 300. Total bytes passed in the last minute = 150. OK.
120 seconds: Check; gets 3000000. Total bytes passed in the last
minute = too many. WARNING.


Is there any functionality in Nagios that would make this sort of
thing easy, or do I need to write a wrapper of some description for
this?

Thanks in advance,
Ras


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list