On 03/05/07 09:14 AM, Thomas Guyot-Sionnest wrote: > > You're checking is a string so normally it always return OK. If it > returns a non-ok status it's most likely because snmpget returned > something on STDERR. use the -v switch to see which command is being > run, and then you can run it yourself to see what's going on (usually > it's MIB parsing errors like illegal characters - there's multiple way > to fix these issues) > > If you want to alert based on the status returned you should rather use > a OID that returns a numeric value like these ones: > > ciscoEnvMonTemperatureStatusValue > ciscoEnvMonTemperatureState
[Got distracted and pressd send too early] And then you can use thresholds values (-w, -c) to alert based on the result. See: http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT for the threshold format Thomas ------------------------------------------------------------------------- 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@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