Page 3 of 3

Re: NRPE response not found

Posted: Fri Aug 01, 2014 5:35 pm
by turboscrew
Oops, a typo in my last edit - which make it even more weird:
It now GIVES an output:

Code: Select all

[root@elukancompute nagios]# su -c "/usr/lib64/nagios/plugins/check_nrpe -H localhost -c check_omat -a 'AARGHH'" nrpe
SERVICE STATUS: OK - Sun Jul 27 08:59:46 EEST 2014
but doesn't write into the fila... :shock:

Re: NRPE response not found

Posted: Sat Aug 02, 2014 8:54 am
by eloyd
I will have to return to this after the weekend is over.

Re: NRPE response not found

Posted: Sun Aug 03, 2014 9:06 pm
by Box293
Going back to the original problem, can you please post the full service definition for the service using the command check_all_disks.

Re: NRPE response not found

Posted: Mon Aug 04, 2014 5:55 am
by turboscrew

Code: Select all

# groups
define hostgroup{
        hostgroup_name  computes
        alias           compute nodes
        members         10.27.128.81
}

# actual hosts
define host{
        use                     client
        host_name       10.27.128.81
        alias           compute_node
        address         10.27.128.81
        }


# check_disks
define service{
        use                                     generic-service
        contact_groups          wheels
        hostgroup_name          computes
        service_description     Disk usage
        check_command           check_nrpe2!check_all_disks!20%!10%
        }

define command{
        command_name check_nrpe2
        command_line '/usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ $ARG2$ $ARG3$'
}
On the NRPE client side:
command[check_all_disks]=/usr/lib64/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p /dev/vda

Re: NRPE response not found

Posted: Mon Aug 04, 2014 6:05 am
by Box293
Change your command to:

Code: Select all

define command{
        command_name check_nrpe2
        command_line /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$
}

Re: NRPE response not found

Posted: Mon Aug 04, 2014 6:27 am
by turboscrew
So that was it: now also "check_omat" started returning value!
THANKS!

Is there a ranking system where I could put points to you?

[edit]
Sometime at the beginning I removed the '-a', because shooting from the command line it went to the command as a parameter.
There must have been some other errors then because the command didn't work then either.

Re: NRPE response not found

Posted: Mon Aug 04, 2014 6:35 am
by Box293
Great stuff, glad to see it working :D

No need for any ranking, it's just good to help others out :)

Re: NRPE response not found

Posted: Mon Aug 04, 2014 8:06 am
by eloyd
This is why we like Box293 so much. He lives in Australia and gets to answer questions on his Monday morning, before the rest of the world is awake. :-) Glad we could all help you out.