NRPE response not found

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
turboscrew
Posts: 23
Joined: Wed Jul 30, 2014 6:15 am

Re: NRPE response not found

Post 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:
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: NRPE response not found

Post by eloyd »

I will have to return to this after the weekend is over.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRPE response not found

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
turboscrew
Posts: 23
Joined: Wed Jul 30, 2014 6:15 am

Re: NRPE response not found

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRPE response not found

Post 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$
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
turboscrew
Posts: 23
Joined: Wed Jul 30, 2014 6:15 am

Re: NRPE response not found

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRPE response not found

Post by Box293 »

Great stuff, glad to see it working :D

No need for any ranking, it's just good to help others out :)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: NRPE response not found

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
Locked