Page 2 of 2

Re: check_nrpe version 2.15

Posted: Wed Aug 26, 2015 1:22 am
by brandon
Imitchev
Reading is what I wrote

Code: Select all

./check_nrpe -H 192.168.0.10 -c check_procs.sh -a '-w 10 -c 50'
CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server logs for error messages.
./check_nrpe -H 192.168.0.10 -c check_users -a '-w 2 -c 5'
CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server logs for error messages.
I did restart services and server

Re: check_nrpe version 2.15

Posted: Wed Aug 26, 2015 2:20 am
by Box293
Can you please post these files:
/etc/xinetd.d/nrpe
/usr/local/nagios/etc/nrpe.cfg
Any files in /usr/local/nagios/etc/nrpe/

Re: check_nrpe version 2.15

Posted: Wed Jan 06, 2016 10:53 pm
by ljl_geek
TL; DR: Debian Squeeze deliberately removed command argument processing from the nrpe daemon

If you are running Debian Squeeze on your monitoring targets, with nrpe-server-2.15-1 (the package that has the daemon in it), be aware that they REMOVED the ability to pass command arguments using their package:

Code: Select all

nagios-nrpe (2.15-1) unstable; urgency=high

  * [f2cea9f] Imported Upstream version 2.15
  * [023e909] Disable command-args in nrpe. (Closes: #745272)  <=======================Notice This!
  * [6369220] Use restorecon to set SE Linux context on $PIDDIR
    (Closes: #679241)
  * [a484e7d] Switch order of nagios-plugins recommends to prefer -basic.
    (Closes: #752243)
  * [b1ef043] Don't recommend a core implementation for the plugin
  * [16dbf01] Remove obsolete patch
  * [694b804] Remove luk from uploaders. (Closes: #719636)
  * [28d9004] Remove obsolete patch
  * [86ea67e] 08_CVE-2013-1362.dpatch is now obsolete
  * [74e3b07] Refresh patches
  * [1258ab2] Reword NEWS entry
  * [744eec6] configure is buggy: --disable- in fact enables a feautre.
  * [eec54b6] Adjust README.Debian for the removal or argument processing

 -- Alexander Wirt <[email protected]>  Tue, 15 Jul 2014 18:30:36 +0200
From http://metadata.ftp-master.debian.org/c ... _changelog

If you look in /usr/share/doc/nagios-nrpe-server/README.debian, it says
This package is built without support for command argument processing. If you
want to enable it, you will have to rebuild this package with
--enable-command-args in debian/rules.
The feature has several security problems and should not be used. If you
really need some dynamic argument processing try check_by_ssh or something similar.
There may be other versions out there, but they will not play nice with Debian package management.

You could build your own package with the option enabled, and handle it that way. Otherwise, you will need to make multiple versions of each nrpe check with the different argument sets.

Sorry to be the bearer of bad news.

Re: check_nrpe version 2.15

Posted: Thu Jan 07, 2016 11:27 am
by hsmith
Thank you for all of the useful information @ljl_geek .