Re: [Nagios-users] About check_udp plugin

2008-06-19 Thread Marc Powell

On Jun 18, 2008, at 7:32 PM, Yu Watanabe wrote:

> Hello,
>
> Thank you for the reply.
>
> So, could you please give me an advice of how to use the check_udp?
>
> I have trouble with specifying the "send" and  "expect" parameters...
> For example, I would like to know the parameters to specify to
> check the 161 udp port, which is the snmp service in our network  
> device.

I cannot. I don't use check_udp and don't know the SNMP protocol at  
such a basic level to know what to send. I imagine that it's not a  
simple string for this protocol. Your best bet, if you cannot use  
check_snmp instead, would be to capture a successful query/response  
pair with ethereal and see if it can be made to work based on the send/ 
expect you find in the capture.

--
Marc

-
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@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


Re: [Nagios-users] About check_udp plugin

2008-06-18 Thread Yu Watanabe
Hello,

Thank you for the reply.

So, could you please give me an advice of how to use the check_udp?

I have trouble with specifying the "send" and  "expect" parameters...
For example, I would like to know the parameters to specify to
check the 161 udp port, which is the snmp service in our network device.

Best Regards,
Yu Watanabe

Marc Powell さんは書きました:
>
>On Jun 17, 2008, at 7:37 AM, Yu Watanabe wrote:
>
>> Hello,
>>
>> I just want to confirm that whether the UDP 161 port is
>> available not . We don't need to know if the service is up or not.
>>
>> Like you mentioned , I think the best way is to access to the agent.
>> However, is there any plugin that just confirms that the UDP 161  
>> port is available or not ?
>> If no, I will use the check_snmp and access to the agent.
>
>yes, check_udp will verify that something is listening on that port.
>
>--
>Marc
>
>-
>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@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@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


Re: [Nagios-users] About check_udp plugin

2008-06-17 Thread Marc Powell

On Jun 17, 2008, at 7:37 AM, Yu Watanabe wrote:

> Hello,
>
> I just want to confirm that whether the UDP 161 port is
> available not . We don't need to know if the service is up or not.
>
> Like you mentioned , I think the best way is to access to the agent.
> However, is there any plugin that just confirms that the UDP 161  
> port is available or not ?
> If no, I will use the check_snmp and access to the agent.

yes, check_udp will verify that something is listening on that port.

--
Marc

-
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@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


Re: [Nagios-users] About check_udp plugin

2008-06-17 Thread Yu Watanabe
Hello, 

I just want to confirm that whether the UDP 161 port is
available not . We don't need to know if the service is up or not.

Like you mentioned , I think the best way is to access to the agent.
However, is there any plugin that just confirms that the UDP 161 port is 
available or not ? 
If no, I will use the check_snmp and access to the agent.

Best Regards,
Yu Watanabe

Marc Powell さんは書きました:
>
>On Jun 16, 2008, at 8:04 PM, Yu Watanabe wrote:
>
>> Hello,
>>
>> I used the check_udp service , like check_tcp, to check whether the  
>> 161 is useful or not.
>> Is this not the write way to use it ?
>
>It depends on what you consider useful. It's entirely possible for a  
>port to establish a connection but not actually be working at higher  
>levels (i.e. answering queries). In your case, you've only determined  
>that there's something listening on the port, not that it's snmpd,  
>actually working or returning data you expect.
>
>IMHO, if there's a higher level test that's possible like check_snmp  
>in this case, that will be a more accurate and useful test.
>
>--
>Marc
>
>
>-
>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@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@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


Re: [Nagios-users] About check_udp plugin

2008-06-16 Thread Marc Powell

On Jun 16, 2008, at 8:04 PM, Yu Watanabe wrote:

> Hello,
>
> I used the check_udp service , like check_tcp, to check whether the  
> 161 is useful or not.
> Is this not the write way to use it ?

It depends on what you consider useful. It's entirely possible for a  
port to establish a connection but not actually be working at higher  
levels (i.e. answering queries). In your case, you've only determined  
that there's something listening on the port, not that it's snmpd,  
actually working or returning data you expect.

IMHO, if there's a higher level test that's possible like check_snmp  
in this case, that will be a more accurate and useful test.

--
Marc


-
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@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


Re: [Nagios-users] About check_udp plugin

2008-06-16 Thread Yu Watanabe
Hello,

I used the check_udp service , like check_tcp, to check whether the 161 is 
useful or not.
Is this not the write way to use it ?

Best Regards,
Yu Watanabe

Emanuel Massano さんは書きました:
>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.
>>
>> [EMAIL PROTECTED] libexec]# ./check_udp -V
>> check_udp v1729 (nagios-plugins 1.4.10)
>>
>> But the result looks not good.
>>
>> [EMAIL PROTECTED] 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.
>>
>> [EMAIL PROTECTED] tmp]# netstat -an | grep 161
>> udp0  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@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
>>   
>



 FUJITSU SOCIAL SCIENCE LABORATORY LIMITED(FUJITSU SSL)

 System Infrastructure Development Department
 Telecom Systems Business Group 2
   
  Yu Watanabe
   
E-Mail :[EMAIL PROTECTED]   
Phone  :  044-739-1427 +5283  / 7166-5283



-
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@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


Re: [Nagios-users] About check_udp plugin

2008-06-16 Thread Emanuel Massano
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.
>
> [EMAIL PROTECTED] libexec]# ./check_udp -V
> check_udp v1729 (nagios-plugins 1.4.10)
>
> But the result looks not good.
>
> [EMAIL PROTECTED] 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.
>
> [EMAIL PROTECTED] tmp]# netstat -an | grep 161
> udp0  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@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@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


Re: [Nagios-users] About check_udp plugin

2008-06-16 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yu Watanabe wrote:

| 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.

Why not use one of the zillion existing check_snmp commands? After all
you propably use SNMP to get something. And not just to see if a SNMP
port is available.

Hugo.

- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFIVl/7BvzDRVjxmYERAiQ1AJ0Z7v7JFT0UW8KwVC0LibT5WbXoWwCgpBGr
EtERXs8dGkixMWKLFJF06MU=
=Cio+
-END PGP SIGNATURE-

-
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@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


[Nagios-users] About check_udp plugin

2008-06-16 Thread Yu Watanabe
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.

[EMAIL PROTECTED] libexec]# ./check_udp -V
check_udp v1729 (nagios-plugins 1.4.10)

But the result looks not good.

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

[EMAIL PROTECTED] tmp]# netstat -an | grep 161
udp0  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@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