check_snmp - sendmail on localhost

Chris atstake at gmail.com
Wed Jan 28 06:42:27 CET 2009


I'm trying to monitor if sendmail is running on localhost for one of
my servers via Nagios. I can do snmpwalk -c <foo> -v1 server | grep
"sendmail: accepting connections" and get
HOST-RESOURCES-MIB::hrSWRunPath.9260 = STRING: "sendmail: accepting
connections".

I got Nagios to check for snmp via hrSWRunPath.9260 but 9260 changes
to something else when I restart sendmail and my Nagios check shows
UNKNOWN.

I tried ./check_snmp -H <server> -C <foo> -s "sendmail: accepting
connections" with no luck. I get error: SNMP problem - No data
received from host

Is there any way I can get snmp to check check if sendmail is running
and if not it should give Status as Critical?

On the server snmpd.conf I have proc sendmail - not sure if that's
going to help.

Don't want to use nrpe if I can use SNMP.

Thanks.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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