That is actually incorrect if you look at the syntax associated with the check_nrpe command. As a reminder, commands != plugins. Commands are something you define in Nagios XI that get assigned to a host/service check. A command can leverage a plugin, but the two are completely separate things.satishvjadhav wrote:in arg1 i will specify that plugin name
The -c argument for check_nrpe refers to a command definition in your remote machine's NRPE configuration file. Something like this:
Code: Select all
command[check_peanut_butter]=/path/to/plugin/check_sandwich $ARG1$
Code: Select all
/usr/local/nagios/etc/check_nrpe -H 192.168.0.0 -c check_peanut_butter -a '--condiment pb --warning 2 --critical 3'