How to monitor specific port number?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ikekim
Posts: 85
Joined: Wed Aug 16, 2017 12:21 pm

How to monitor specific port number?

Post by ikekim »

Without using the agent or plugin, how can I monitor target host's specific number i.e 192.168.9.2.1 port 9000 ?



thanks,
ik
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: How to monitor specific port number?

Post by gormank »

One way is to use CCM to create a host with that address, then create a service that uses check_tcp to check the port.
ikekim
Posts: 85
Joined: Wed Aug 16, 2017 12:21 pm

Re: How to monitor specific port number?

Post by ikekim »

Okay that was an easy one. I found the plugin for the TCP check.

$ /usr/local/nagios/libexec/check_tcp -H 192.168.9.2.1 -p 9000



thanks.
kyang

Re: How to monitor specific port number?

Post by kyang »

Glad you found the answer. I'll be closing this topic as resolved!

If you have any more questions, feel free to create another thread!

Thank you for using the Nagios Support Forum!
Locked