check_nrpe version 2.15

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.
brandon
Posts: 30
Joined: Wed Aug 19, 2015 4:10 am

Re: check_nrpe version 2.15

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

Re: check_nrpe version 2.15

Post 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/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ljl_geek
Posts: 1
Joined: Wed Jul 02, 2014 8:14 pm

Re: check_nrpe version 2.15

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nrpe version 2.15

Post by hsmith »

Thank you for all of the useful information @ljl_geek .
Former Nagios Employee.
me.
Locked