Manually run nagios check from command line
1 min readJun 21, 2018
It’s pretty simple. Just jump in to the plugin directory. In my case it is:
/usr/lib/nagios/plugins/
Identify the plugin that you need to execute remotely. Here I am going to execute check_tcp plugin,
check_tcp
now run the full command : (plugin name) -H (hostname) -p (port number)
/usr/lib64/nagios/plugins/check_tcp -H myservername -p 8080
output
TCP OK - 0.004 second response time on port 8080|time=0.004146s;;;0.000000;10.000000
Port number is optional in this example.