Monitoring ports

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gabrotherton
Posts: 57
Joined: Wed Dec 03, 2014 11:16 am

Monitoring ports

Post by gabrotherton »

How do I use Nagios XI to monitor specific ports?

For instance, I know the service httpd normally will listen for connections on port 80 and port 443, and Nagios XI is already monitoring the httpd service. How do I configure Nagios XI to check the state of a specific port? Say, if port 5666 changes from ESTABLISHED to TIME_WAIT (or simply just changes), what is available for Nagios XI so that will show up in the Operations Center view?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Monitoring ports

Post by tgriep »

Would the check_tcp plugin work for you?
check_tcp
This plugin tests TCP connections with the specified host (or unix socket).

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]
Be sure to check out our Knowledgebase for helpful articles and solutions!
gabrotherton
Posts: 57
Joined: Wed Dec 03, 2014 11:16 am

Re: Monitoring ports

Post by gabrotherton »

I'll give this a try on our dev set and post the results. This is something I was looking for, so thank you!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitoring ports

Post by rkennedy »

Sounds good, I'll leave this thread open for now. Let us know the results and if you have any more questions!
Former Nagios Employee
Locked