On Mon, Jul 12, 2010 at 8:18 AM, Rukshan Kothwala <[email protected]> wrote: > Hi to all, > I need to check the status of servers ports like 8080, 3128, 10000, 7071 and > 389. I have installed opsview agent in every servers. When I edit the > check_tcp command for specified ports, It always give "CRITICAL - Socket > timeout after 10 seconds"
to check open ports on remote hosts you do not need the remote agent.. For other things yes, so do not uninstall it just yet ;-) the check_tcp command is quite simple. If you run it from a shell in the opsview server without any arguments it gives you the syntax: nagiosserver:/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 <days to cert expiry>] [-S <use SSL>] [-E] so to see if the ldap server port is open on server ldap, you would do: check_tcp -H ldpa -p 389 TCP OK - 0.001 second response time on port 389|time=0.001157s;;;0.000000;10.000000 If you need more help, try ./check_tcp --help ;-) -- natxo _______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users
