Nrpe check_load results in unknown error

icingamonitoringnagios

I'm using the nagios check_load plugin.

I have the following line in my /etc/nagios/nrpe.cfg

command[check_load]=/usr/lib/nagios/plugins/check_load -w $ARG1$ -c $ARG2$

And on my icinga server in /etc/icinga/objects/localhost_icinga.cfg I have the following service definition

define service{
        use                             generic-service
        host_name                       prod-01
        service_description             Prod Load
        check_command                   check_nrpe!check_load!15,10,5!30,25,20
}

When I check my icinga dashboard it lists this check as a pink colored, unknown error. Is there anything I need to change in my configuration to get everything to work correctly?

Best Answer

Try running the command on the server with the same arguments and see if it responds. it will tell you the error or if it's an unknown error chances are you just need to either enable sudo with no password for user nagios OR chmod 4755 and ownership root:nagios the check script.