Nasty_metachars issue in NRPE 4.0.3
Posted: Mon Jul 20, 2020 1:47 pm
Hi Team,
recently we have upgraded nrpe on all our client rhel7 servers and we are seeing illegal metachars issue in client servers for nrpe
Jul 20 18:28:22 host-001 nrpe[47299]: Error: Request contained illegal metachars!
Jul 20 18:28:22 host-001 nrpe[47299]: Client request from nagioshost was invalid, bailing out...
Jul 20 18:28:23 host-001 nrpe[47302]: Error: Request contained illegal metachars!
Jul 20 18:28:23 host-001 nrpe[47302]: Client request from nagioshost was invalid, bailing out...
But as per below git hub changelog from nagios enterprise,, it says "Fixed nasty_metachars not being read from config file (#235) (Sebastian Wolf)"
https://github.com/NagiosEnterprises/nr ... ANGELOG.md
Below is the command and argument im running from nagios server and error message im getting
/usr/lib64/nagios/plugins/check_nrpe -u -t 60 -H host -c check_procs_args -a '-c 1: -C java --ereg-argument-array="-Dcatalina\.(home|base)=/srv/solrSlaveTcSrv"'
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).
Below is the option im adding in nrpe.cfg for overriding nasty_metchars
nasty_metachars="|`&><'\\[]{};\r\n"
Can you let me know if overriding nasty_metachars is really fixed on nrpe 4.0.3 version of nrpe agent
Appreciate quick help on this.
recently we have upgraded nrpe on all our client rhel7 servers and we are seeing illegal metachars issue in client servers for nrpe
Jul 20 18:28:22 host-001 nrpe[47299]: Error: Request contained illegal metachars!
Jul 20 18:28:22 host-001 nrpe[47299]: Client request from nagioshost was invalid, bailing out...
Jul 20 18:28:23 host-001 nrpe[47302]: Error: Request contained illegal metachars!
Jul 20 18:28:23 host-001 nrpe[47302]: Client request from nagioshost was invalid, bailing out...
But as per below git hub changelog from nagios enterprise,, it says "Fixed nasty_metachars not being read from config file (#235) (Sebastian Wolf)"
https://github.com/NagiosEnterprises/nr ... ANGELOG.md
Below is the command and argument im running from nagios server and error message im getting
/usr/lib64/nagios/plugins/check_nrpe -u -t 60 -H host -c check_procs_args -a '-c 1: -C java --ereg-argument-array="-Dcatalina\.(home|base)=/srv/solrSlaveTcSrv"'
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).
Below is the option im adding in nrpe.cfg for overriding nasty_metchars
nasty_metachars="|`&><'\\[]{};\r\n"
Can you let me know if overriding nasty_metachars is really fixed on nrpe 4.0.3 version of nrpe agent
Appreciate quick help on this.