Checks that compare previous values
Marco Ramos
mramos at co.sapo.pt
Tue May 30 17:10:13 CEST 2006
Hi,
On Tue, 2006-05-30 at 15:55 +0100, Jee Kay wrote:
> 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?
No. I think the easiest way is to write a wrapper that writes each
script iteration to disk so it can always compare each iteration with
the previous one. I'm using this approach in some scripts and it works
fine.
HTH,
Marco Ramos
> 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
>
-------------------------------------------------------
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