Once upon a time, Ajitabh Pandey <[EMAIL PROTECTED]> said:
> I want to use check_udp plugin to check whether SNMP service is 
> listening on target host or not. How do we do that? I think we need to 
> specify an "expect string". What will be the expect string in case of SNMP.

I believe SNMP is a binary protocol, so a simple send/expect may not
work.

You could probably use check_snmp and check for a variable that is used
pretty much everywhere; I use system.sysUpTime.0 (the numeric OID is
1.3.6.1.2.1.1.3.0) in a few places.  Something like:


define command {
        command_name    check_snmp
        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -w $ARG2$ 
-c $ARG3$ -o $ARG4$
        }

define service {
        service_description     SNMP uptime
        check_command           check_snmp!community!1:!1:!1.3.6.1.2.1.1.3.0
        ...
        }


-- 
Chris Adams <[EMAIL PROTECTED]>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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

Reply via email to