NRPE doesn't accept arguments when run from the webclient


#1

Greetings,

I’m using Nagios 3.2.1 with nrpe-2.12. I got Nagios all set up and I’m trying to get it to run some checks on a remote host.

I’m able to see the host up/down status in the web UI, but all the services are failing due to the arguments not being sent/received correctly.

I did use --enable-command-args when installing nrpe, and I did mark dont-blame-nrpe =1 in the cfg file.

When I run check_nrpe from the server, it seems to be working just fine. For example:

/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -c check_local_users -a 100 100
USERS OK - 1 users currently logged in |users=1;100;100;0

But when I go to the web UI and force a service refresh, all the services fail with errors like this:
check_users: Critical threshold must be a positive integer
check_ping: %s: Warning threshold must be integer or percentage!

Looks like bad args, but I don’t know why it would be working from the command prompt on the server to the client, but not through the web UI.

Can anyone assist?

Thanks for your time.

-Adam


#2

Nevermind. I restarted the nagios service and found a typo in one of my commands. Everything is good now.