Variable threshold
Steve Shipway
s.shipway at auckland.ac.nz
Sun Dec 12 23:30:10 CET 2004
>On Sat, Dec 11, 2004 at 09:48:12AM -0600, Eduard Iacoboaia wrote:
>> is there a way to set a variable threshold for Critical
>>state?
>You'd have to set up two services with mutually exclusive time
>periods to do that.
Since the threshold check is done by the plugin, rather than by Nagios
itself, you *could* write a plugin capable of this. Pass it a time period
and two sets of thresholds... however it wold of course require writing a
modified plugin (or a wrapper for existing plugins?)
Something like:
wrapper -p "check_thingy -H $HOSTNAME$ -c %CRITICAL% -w %WARN%" -t
1800-0800,12,5 -t 0800-1800,50,10
Anyone else feel like writing this?
I already have wrappers that changes return status (one to negate, one to
make crit->warn, etc etc). I'll post something here if I every get around
to makin it generally useful.
Steve
---
Steve Shipway: ITSS, University of Auckland
Email: s.shipway at auckland.ac.nz Web: http://www.steveshipway.org/
** We can only discover new oceans when we have the **
** courage to lose sight of the shore. **
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Steve Shipway.vcf
Type: text/x-vcard
Size: 154 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041213/96975c6a/attachment.vcf>
More information about the Users
mailing list