Hello Nagios experts
Am new to Nagios, and need some help please:-
Installed Nagios 3.02, plugins 1.4.13 and have setup nrpe 2.12 on ubuntu 8.04
Run the following command from the Nagios host:-
/usr/local/nagios/libexec/check_nrpe -H adotntlx01 -c check_root
This brings back the following information:-
DISK OK - free space: / 67261 MB (97% inode=98%);| /=1554MB;57974;65221;0;72468
If I run the command (locally):-
/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
I get:-
DISK OK - free space: / 67261 MB (97% inode=98%);| /=1554MB;57974;65221;0;72468
All OK so far.
However when I try this through the Nagios client…
Have set up a new command file called adotntlx01.cfg
Have the following entry:-
define service{
use generic-service ; Name of service template to use
host_name adotntlx01
service_description Check Root
check_command check_nrpe!check_root
}
nrpe.conf entry on remote host:-
command[check_root]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
And get the following error in through the web gui:-
Check Root UNKNOWN 10-15-2008 12:30:46 0d 0h 0m 52s 2/3 Incorrect command line arguments supplied
How can the command line arguments be wrong if they work from the command line itself?
Can someone tell me where I am going wrong please?
Thanks
Olle