Activities

November 2009
M T W T F S S
« Oct   Dec »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Nagios – Custom command for checking the status of Port on the same server

Here I am checking the status of mysql running on the nagios Monitoring host

Go to nagios installation directory on nagios Monitoring host.

1. #

cd /usr/local/nagios/etc/objects/

2. Add the following line to ” command.cfg and save

 # vi commands.cfg

define command{ command_name check_tcp_mysql command_line /usr/local/nagios/libexec/check_tcp -H localhost -p 3306 -w 100 -c 150 }

[…]