Hi Guys,
I know there’s been 0 views and 0 replies lol but for those having similar problems, I wanted to write back with an update.
I run suse11.0 on my nagios machine and also on the remote host which I wanted to monitor. Using the YAST package manager I added on the remote machine “nagios-nrpe”.
I then started the service using the defaults in YAST > system settings > Runlevels.
It started no problem.
I then had to modify the CFG file (in my case, this was located in /etc/nagios) and modified the line:-
and entered the IP address of the Nagios machine.
Once this was done, I switched to the Nagios machine and tried some of the default commands:
cd /usr/lib/nagios/plugins
./check_nrpe -H 192.168.1.224 -n -c check_users
This returned an error
After research using Google, I found I had to specify the port number (even though it was default) in the check_nrpe command; changed it to:-
It returned the expected result (hoorah). However, I discovered that the other “standard” plugin commands (check_disk and so on) would not work, it kept telling me
./check_nrpe -H 192.168.1.224 -p 5666 -c check_disk
NRPE: Command 'check_diskx not defined
After checking the nrpe.cfg file on the remote host, it did not contain such a command.
I did see in the /etc/nagios/command.cfg that check_disk WAS defined. Quite odd. However, a little more poking about in the nrpe.cfg file, I noticed that it does not include this file by default.
Un-commenting and editing the include line in nrpe.cfg to
and trying again, it now provides a reply:
./check_nrpe -H 192.168.1.224 -p 5666 -c check_disk
Unknown argument
Usage: check_disk -w limit -c limit -W limit] -K limit] {-p path | -x device}
-C] -E] -e] -g group ] -k] -l] -M] -m] -R path ] -r path ]
-t timeout] -u unit] -v] -X type]
I just need to lob some arguments to it and it should work.
Hoorah for me