Confirming nrpe.cfg command entries

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Confirming nrpe.cfg command entries

Post by awilson »

Hi. It appears that a local host is running a service check (and providing results) for a script that is not defined as a command in nrpe.cfg. Should that happen? Do scripts have to be defined in nrpe.cfg as commands?

Thanks!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Confirming nrpe.cfg command entries

Post by npolovenko »

Hi, @awilson. Yeah, that shouldn't be happening. All scripts on the nrpe server need to be specified in commands. If you don't have a command that calls the script on the nrpe server, then I'd suspect you're either: a) checking the wrong nrpe server or b) the nrpe server is using a different nrpe.cfg file, in a different path.
Can you show me what service check you're talking about, show the command and upload the nrpe.cfg file from the remote nrpe server?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: Confirming nrpe.cfg command entries

Post by awilson »

I'm sorry. I found the include_dir directive. There was a second one that wasn't commented out.

:oops:

Please close this. //sigh
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Confirming nrpe.cfg command entries

Post by npolovenko »

@awilson, No problem, I was thinking of including import files in my list of reasons but then decided not to :) .
I'll be closing this as resolved.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked