Port Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Port Monitoring

Post 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
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Port Monitoring

Post 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>
Nicholas Scott
Former Nagios employee
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Re: Port Monitoring

Post 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.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Port Monitoring

Post 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?
Nicholas Scott
Former Nagios employee
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Re: Port Monitoring

Post by nagiostool »

i was able to telnet to that port , didnt get any error.
Damware uses that port only
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Port Monitoring

Post by nscott »

Is the DamWare using udp? Try the check_udp plugin instead of the check_tcp plugin.
Nicholas Scott
Former Nagios employee
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Re: Port Monitoring

Post by nagiostool »

while using UDP what should be entered in the send string and expected string coloumns ??

Can you guide me ??
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Port Monitoring

Post 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.
Nicholas Scott
Former Nagios employee
Locked