Hi All,
How to enable TCP monitoring in nagiosxi. Need to check the port connectivity from source to destination IP.
Telnet Monitoring
Re: Telnet Monitoring
check_tcp is a plugin you could use:
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
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>]
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.000000Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Telnet Monitoring
Did @mcapra's suggestion help? Thanks Matt!
Re: Telnet Monitoring
How i will define my source server.
Re: Telnet Monitoring
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
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
Former Nagios employee