About check_udp plugin

Emanuel Massano emanuel.massano at fccn.pt
Mon Jun 16 14:52:09 CEST 2008


Hi,

The SNMP service only answers to well formated SNMP requests, with the 
correct community set, so you can't check SNMP service with UDP check 
because it doesn't send an SNMP request. You must use check_snmp.

Regards,
Emanuel Massano


Yu Watanabe wrote:
> Hello All,
>
> I would like to get an advice with check_udp plugin.
>
> I would like to check the snmp port (161) of the remote host.
> Following is the command that I have executed from the command line.
>
> [root at GWkensyo libexec]# ./check_udp -V
> check_udp v1729 (nagios-plugins 1.4.10)
>
> But the result looks not good.
>
> [root at GWkensyo libexec]# ./check_udp -v -H 192.168.225.85 -p 161 -s "04 06 70 75 62 6c 69 63 a1 19 02 04 40 64 18 b9 
> 02 01 00 02 01 00 3
> 0 0b 30 09 06 05 2b 06 01 02 01 05 00" -e ""
> Using service UDP
> Port: 161
> flags: 0x2
> Send string: 04 06 70 75 62 6c 69 63 a1 19 02 04 40 64 18 b9 02 01 00 02 01 00 30 0b 30 09 06 05 2b 06 01 02 01 05 00
> server_expect_count: 1
>         0:
> CRITICAL - Socket timeout after 10 seconds
>
> I have tried to send get request to the remote server to fetch the data of
> .1.3.6.1.2.1. but there wasn't any response. 
>
> The data was successfully fetched using the snmpwalk command. And 
> also, I have confirmed that the port was open on the remote machine.
>
> [root at essen tmp]# netstat -an | grep 161
> udp        0      0 0.0.0.0:161                 0.0.0.0:*
> unix  3      [ ]         STREAM     CONNECTED     28103161 /var/lib/mysql/mysql.sock
> unix  3      [ ]         STREAM     CONNECTED     28099161 /var/lib/mysql/mysql.sock
>
> How does everyone generally specify the arguments of the check_udp
> to confirm the 161 port ?
>
> Any help will be helpful !
>
> Best Regards,
> Yu Watanabe
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> 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
>   

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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