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:[EMAIL PROTECTED] 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@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