I've completed the Nagios install and setup on three servers so that the instance on server A also provides reports for servers B & C (via NRPE).
SSHD is purposefully listening to a different port on each host so I edited the /etc/nagios3/conf.d/services_nagios2.cfg file on each host to test the appropriate port. The native HTTP instance of Nagios on servers B & C confirm that SSH is running but the report on server A is showing critical failures for SSH on both B & C.
I was under the impression that the NRPE service was designed to run local checks on the remote hosts, forwarding the rests back to the monitoring host that would then collate the data into one report for all machines.
Looking at the Services section of the Configuration web page (on server A), Nagios is testing the same SSH port on all three servers rather than different ports on B & C. Can anyone explain why?
The only way I can correct this (to date) is to create a different host group_name and check_command for each remote host in the conf.d/services_nagios2.cfg file on server A.
This can't be the only way?
Surely the file would multiply in length each time a different service configuration was needed for servers being remotely monitored!