Let's go back to beginning. Should plugin be compiled with or without --enable-command-args on client side?
How about the same plugin on Nagios host server?
Search found 15 matches
- Thu Oct 03, 2013 9:34 pm
- Forum: Open Source Nagios Projects
- Topic: check_nrpe!check_load command failed
- Replies: 23
- Views: 66540
- Thu Oct 03, 2013 9:02 pm
- Forum: Open Source Nagios Projects
- Topic: check_nrpe!check_load command failed
- Replies: 23
- Views: 66540
Re: check_nrpe!check_load command failed
Nope, same error again.slansing wrote:There needs to be a dash before the w for warning threshold like so:
Code: Select all
'-w 15,10,5 -c 30,20,10'
$ ./check_nrpe -H test -c check_load -a '-w 15,10,5 -c 30,20,10'
NRPE: Unable to read output
- Wed Oct 02, 2013 8:20 pm
- Forum: Open Source Nagios Projects
- Topic: check_nrpe!check_load command failed
- Replies: 23
- Views: 66540
Re: check_nrpe!check_load command failed
You need to change the command definition on the client box to: command[check_load]=/usr/local/nagios/libexec/check_load $ARG1$ Restart the daemon, so that changes can take effect. Next, test your check by running from the nagios server: ./check_nrpe -H <client_ip> -c check_load -a 'w 15,10,5 -c 30...
- Sat Sep 28, 2013 12:53 am
- Forum: Open Source Nagios Projects
- Topic: check_nrpe!check_load command failed
- Replies: 23
- Views: 66540
Re: check_nrpe!check_load command failed
I changed command as suggested and got same error #/usr/local/nagios/libexec/check_nrpe -H test -c check_load NRPE: Unable to read output Client log Sep 27 22:50:42 test xinetd[21286]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in. Sep 27 22:50:42 test xin...
- Sat Sep 28, 2013 12:37 am
- Forum: Open Source Nagios Projects
- Topic: check_nrpe!check_load command failed
- Replies: 23
- Views: 66540
Re: check_nrpe!check_load command failed
Since we enabled dont_blame_nrpe=1, shouldn't we uncomment last set of commands and comment section above?
- Sat Sep 28, 2013 12:35 am
- Forum: Open Source Nagios Projects
- Topic: check_nrpe!check_load command failed
- Replies: 23
- Views: 66540
Re: check_nrpe!check_load command failed
Aha! There is the problem, see, near the bottom your nrpe.cfg file shows it's internal command definitions, these are what nagios talks to, to get NRPE to execute remote plugins, such as check_load. Try your Nagios check command without anything after -a specified, including -a itself. Since there ...
- Sat Sep 28, 2013 12:25 am
- Forum: Open Source Nagios Projects
- Topic: check_nrpe!check_load command failed
- Replies: 23
- Views: 66540
Re: check_nrpe!check_load command failed
Here it comes ############################################################################# # Sample NRPE Config File # Written by: Ethan Galstad (nagios@nagios.org) # # Last Modified: 11-23-2007 # # NOTES: # This is a sample configuration file for the NRPE daemon. It needs to be # located on the re...
- Sat Sep 28, 2013 12:16 am
- Forum: Open Source Nagios Projects
- Topic: check_nrpe!check_load command failed
- Replies: 23
- Views: 66540
Re: check_nrpe!check_load command failed
Should I keep the rest of nrpe.cfg default?
- Sat Sep 28, 2013 12:14 am
- Forum: Open Source Nagios Projects
- Topic: check_nrpe!check_load command failed
- Replies: 23
- Views: 66540
Re: check_nrpe!check_load command failed
I tried that as soon as I check log but no go. # /usr/local/nagios/libexec/check_nrpe -H test -c check_load -a '-w 15,10,5 -c 30,20,10' NRPE: Unable to read output /var/log/messages Sep 27 22:11:47 test xinetd[16847]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options comp...
- Sat Sep 28, 2013 12:05 am
- Forum: Open Source Nagios Projects
- Topic: check_nrpe!check_load command failed
- Replies: 23
- Views: 66540
Re: check_nrpe!check_load command failed
Ok, here is output of check command /usr/local/nagios/libexec/check_nrpe -H test -c check_load -a '-w 15,10,5 -c 30,20,10' CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. Output of my /var/log/messages from client Sep 27 22:04:11 test xinetd[15716]: START: ...