How I can monitor ports on a server?
Thanks
PORTS
Re: PORTS
I would use check_tcp: http://nagios-plugins.org/doc/man/check_tcp.html
Former Nagios employee
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: PORTS
Are you sure that your host isn't broken?
Code: Select all
[jdalrymple@nagios libexec]$ ./check_tcp -H localhost -p 80
TCP OK - 0.001 second response time on port 80|time=0.001315s;;;0.000000;10.000000
[jdalrymple@nagios libexec]$ ./check_tcp -H localhost -p 81
Connection refused
[jdalrymple@nagios libexec]$ ./check_tcp -H 8.8.8.8 -p 80
CRITICAL - Socket timeout after 10 seconds
[jdalrymple@nagios libexec]$ ./check_tcp -H google.com -p 80
TCP OK - 0.020 second response time on port 80|time=0.020324s;;;0.000000;10.000000