Page 1 of 1

Telnet Monitoring

Posted: Wed May 24, 2017 10:43 am
by Issac08
Hi All,

How to enable TCP monitoring in nagiosxi. Need to check the port connectivity from source to destination IP.

Re: Telnet Monitoring

Posted: Wed May 24, 2017 1:01 pm
by mcapra
check_tcp is a plugin you could use:

Code: Select all

[root@nagios libexec]# /usr/local/nagios/libexec/check_tcp
check_tcp: No arguments found
Usage:
check_tcp -H host -p port [-w <warning time>] [-c <critical time>] [-s <send string>]
[-e <expect string>] [-q <quit string>][-m <maximum bytes>] [-d <delay>]
[-t <timeout seconds>] [-r <refuse state>] [-M <mismatch state>] [-v] [-4|-6] [-j]
[-D <warn days cert expire>[,<crit days cert expire>]] [-S <use SSL>] [-E]
[-N <server name indication>]
I'm not sure if that's configured as a command by default in Nagios XI, but it seems to be working fine for me from the CLI:

Code: Select all

[root@nagios libexec]# /usr/local/nagios/libexec/check_tcp -H somehost -p 1234
TCP OK - 0.002 second response time on somehost port 1234|time=0.001997s;;;0.000000;10.000000

Re: Telnet Monitoring

Posted: Thu May 25, 2017 11:02 am
by dwhitfield
Did @mcapra's suggestion help? Thanks Matt!

Re: Telnet Monitoring

Posted: Thu Jul 06, 2017 10:51 am
by Issac08
How i will define my source server.

Re: Telnet Monitoring

Posted: Thu Jul 06, 2017 4:05 pm
by tmcdonald
If you are looking to check the connectivity between two servers that are not your XI server, then you will need to run the check_tcp plugin from one of those servers, then report the results back to Nagios passively using something like NRDS: https://assets.nagios.com/downloads/nag ... h_NRDS.pdf

Otherwise you could set it up in Nagios and have NRPE installed on one of the remote servers so the check is run from that server: https://assets.nagios.com/downloads/nag ... g_NRPE.pdf