Interacting with nagios cli.
The services check enabled in Nagios GUI can be checked via nagios command line also, these commands need to be executed on Nagios server.
The plugins enabled/installed on the server can also be directly executed to check the results.
All, plugins are installed by default at - /usr/local/nagios/libexec/
The same can be executed via command line from nagios server to check the plugin output.
Let’s say for ICMP plugin check below command can be executed -
# /usr/local/nagios/libexec/check_icmp -H -w -c -p
after the execution the respective output will be the result.