Page 1 of 1

Port Monitoring

Posted: Mon Oct 10, 2011 5:54 am
by nagiostool
Hi i'm trying to monitor a port by using port monitoring wizard but when i have tried to monitor a port number 6129 which is used by DamWare application i'm getting error as socket timeout after 10 seconds i have mentioned TCP port.

Thanks in advance

Re: Port Monitoring

Posted: Mon Oct 10, 2011 10:37 am
by nscott
Can you test the port using the CLI plugin? From the command line of your nagios XI server go to the libexec directory

cd /usr/local/nagios/libexec/

And then execute this:

./check_tcp -H <your server address> -p <port number>

Re: Port Monitoring

Posted: Tue Oct 11, 2011 6:51 am
by nagiostool
i have run the command in /usr/local/nagios/libexec

as ./check_tcp -H 192.168.10.120 -p 6129

result was

Connection refused.

Re: Port Monitoring

Posted: Tue Oct 11, 2011 11:31 am
by nscott
Well then the port is probably closed. Can you try to telnet into that port? Are you absolutely sure the DamWare application is actually using that port?

Re: Port Monitoring

Posted: Wed Oct 12, 2011 7:31 am
by nagiostool
i was able to telnet to that port , didnt get any error.
Damware uses that port only

Re: Port Monitoring

Posted: Wed Oct 12, 2011 11:01 am
by nscott
Is the DamWare using udp? Try the check_udp plugin instead of the check_tcp plugin.

Re: Port Monitoring

Posted: Thu Oct 13, 2011 3:12 am
by nagiostool
while using UDP what should be entered in the send string and expected string coloumns ??

Can you guide me ??

Re: Port Monitoring

Posted: Thu Oct 13, 2011 11:13 am
by nscott
There is a pretty good breakdown of all the flags here:

http://nagiosplugins.org/man/check_udp

But the send string is the string that you would send to the server, and the expected string is the string it should send back. So if you were testing HTTP, you would send it a SYN string and expect an ACK string back. Thats what thats for.

But I would just test to see if its open, all arguments besides hostname and port are optional.