Weird problem with check_nrpe



i installed nagios and it was working fine but after i upgraded when i’m getting this on the web interface

[blockquote]CPU Load

OK 	08-01-2008 01:36:18 	0d 18h 19m 2s 	1/4 	NRPE v2.5.1 [/blockquote]

So instead of giving the actual load i’m getting NRPE version and the same for other checks like check_http

I’m sure i did a silly mistake but i can’t seems to catch , your help is greatly appreciated




all I can say is that the message you get is the standard message when “testing” NRPE with a command without arguments, like “check_nrpe -H host”…
meaning that somewhere, your arguments are missing.

Hope this helps a little bit :slight_smile:


Yea exactly something is missing somewhere and my question is what is it and where ? :smiley:


OK, lets start with CPU Load being as it is top o’ the list…
What’s the service object look like on the nagios server? Something like

define service{ use generic-service host_name remotehost service_description CPU Load check_command check_nrpe!check_load }
What’s the check_nrpe command object look like? Should be something like

define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ }
What does the nrpe.cfg definition of the check command look like on the remote server? Something like

Also, have you seen the NRPE configuration pdf at


Thanks man

Here is the CPU load

[blockquote]define service{
use local-service
hostgroup_name US Agents
service_description CPU Load
check_command check_nrpe!check_load

and here is the check_nrpe

‘check_nrpe’ command definition

define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 300
Am i missing the -c here ?

and as for the check in nrpe.cfg it’s

[blockquote]command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20[/blockquote]


yep, thats the problem… slide that -c $ARG1$ onto the end of the command object so that the check will pick up the check_load argument from the service object.




Great it was fixed , the problem is that the commads.cfg is the new one which i didn’t update at all.

Every thing is working fine now , man you’re a genius :smiley:


well, I wouldn’t go that far… !shy but glad to help and good news that it’s all working for you now.