Just installed Nagios on SERVER (10.20.8.106) and attached a CLIENT (10.20.10.11). So I defined my host and and a service for check_nrpe. It is working.
So I have check_nrpe plugin in the plugins(
/usr/lib64/nagios/plugins/) directory of SERVER and CLIENT. I didn't know which check_nrpe was executed.
On the SERVER:
$/usr/lib64/nagios/plugins/check_nrpe -H 10.20.10.11 NRPE v2.15
On the CLIENT:
$usr/lib64/nagios/plugins/check_nrpe -H 10.20.8.106 connect to address 10.41.8.106 port 5666: No route to host connect to host 10.41.8.106 port 5666: No route to host
The above confirmed to me that the check_nrpe plugin in SERVER's plugin directory was executed. So why do we have the plugins directory in the CLIENT? At first I thought, SERVER executes them from the plugin directory of CLIENT. And the plugins at SERVER side were used for doing checks on the same machine.I am confused at this moment.
Can anybody clarify.