Problems with service check

Marc Powell marc at ena.com
Tue May 8 18:17:25 CEST 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Danilo Perdomo
> Sent: Tuesday, May 08, 2007 10:59 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Problems with service check
> 


> should be 20 minutes of backup, but i want the Nagios to send me a
> warning when the value decreases
> to 15 minutes, and a critical when it goes down to 10. I understand
that
> the check_snmp command
> only checks increasing values when you set the threshold. How can i do
> to check decreasing values??

check_snmp checks ranges. It has no concept of increasing or decreasing
since it has no idea what the previous value was.

>From check_snmp --help --

- Ranges are inclusive and are indicated with colons. When specified as
  'min:max' a STATE_OK will be returned if the result is within the
indicated range or is equal to the upper or lower bound. A non-OK state
will be returned if the result is outside the specified range.
- If specified in the order 'max:min' a non-OK state will be returned if
the
  result is within the (inclusive) range.

Sooo.. you can see that your warning will be a range from 15 to 11 and
critical will be a range from 10 to 0.

--
Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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