SNMP Check straight to Critical
Morris, Patrick
patrick.morris at hp.com
Thu Apr 20 19:01:47 CEST 2006
I don't know the specifics of how you're running the plugin, but a quick
off-the-top-of-the-head example would be:
#!/bin/sh
/usr/lib/nagios/plugins/check-snmp blah blah blah
$RESULT=$?
if [ "$RESULT" eq "1" ]; then RESULT=2; fi
Return $RESULT
-----Original Message-----
From: Scott Smith [mailto:ssmith at siu.edu]
Subject: Re: [Nagios-users] SNMP Check straight to Critical
Would you happen to have an example? or a URL that gives one?
Morris, Patrick wrote:
>Wrap it in a shell script that returns critical if the plugin returns
>warning.
>
>-----Original Message-----
>I want to be able to send an SMMP check straight to critical instead of
>warning. I.e. a Wireless AP Interface has UP and Down. So instead of
>sending that to a Warning status I would like it to go straight to
>Critical. I have tried using the check_snmp string, however it
>requires a -w and -c, so it will only see it as a warning.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
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