Control: tags -1 confirmed pending On 20/01/17 10:29, John Lines wrote: > Dear Maintainer, > > I have specified a location for ssl_ca_file in > /etc/nagios/check_nrpe_ng.cfg > > If I call > /usr/lib/nagios/plugins/check_nrpe_ng -H somehost -c somecheck > it fails, due to being unable to find a matching certificate. > > If I call it as > /usr/lib/nagios/plugins/check_nrpe_ng -H somehost -C > /etc/nagios/check_nrpe_ng.cfg -c somecheck > > the command succeeds. > > I assume /etc/nagios/check_nrpe_ng.cfg is the default configuration > file, so edits to it should be recognised.
Hi John, Your assumption that check_nrpe_ng checks /etc/nagios/check_nrpe_ng.cfg by default is not correct, and that's why your command doesn't work when you don't specify the configuration file. With my upstream hat on, I can't remember remember why I chose this as the default. Possibly because the daemon requires an explicit config file, and it didn't make sense to require specifying a config file for the client. It doesn't make sense to me any more, so I'll get that changed in the next release. https://github.com/bootc/nrpe-ng/commit/597ed89e820de5b12a7e87ff0f6d045a4159da52 Regards, Chris -- Chris Boot Tiger Computing Ltd "Linux for Business" Tel: 01600 483 484 Web: http://www.tiger-computing.co.uk Follow us on Facebook: http://www.facebook.com/TigerComputing Registered in England. Company number: 3389961 Registered address: Wyastone Business Park, Wyastone Leys, Monmouth, NP25 3SR