Skip to main content

For some reason, it looks like my ncpa check isn’t receiving the ncpa token from my macro.  Check command looks like this:

$USER1$/check_ncpa.py --performance --timeout=300 -t $_HOSTTOKEN$ -H $HOSTNAME$ -P 5693 -M plugins/check_updates -a '--assumeyes --no-boot-check -t 300'

But it’s failing and then I look at the error, it looks as if _HOSTTOKEN isn’t being received.

 

But when the check fails, I can see that the TOKEN value was not received.  

/usr/lib64/nagios/plugins/check_ncpa.py

--performance

--timeout=300

-t

-H

op.fs.corp

-P

5693

-M

plugins/check_updates

-a

--assumeyes --no-boot-check -t 300

I expect to see a *** next to the first -t option as I do on my other installations.  This is a fresh install.  Am I missing a step that perhaps I forgot about to allow this to work?

If I hard code the value, it works fine but I have this working on other monitoring hosts.

This install is the latest version on Rocky 9.

It seems like none of my macros are working.  Nothing is being passed to the command.  I’m not sure why.


Hello,

I think you must look at the Engine configuration :

 Configuration  >  Pollers  >  Engine configuration

Something must be wrong here.

Particularly in the “Data” tab, you will find something about Macros.


Hello,

I think you must look at the Engine configuration :

 Configuration  >  Pollers  >  Engine configuration

Something must be wrong here.

Particularly in the “Data” tab, you will find something about Macros.

I matched the engine configuration to my functional hosts.  No change.  The data tab has something about macro filtering.  It’s set to No.  Hmm…   I have to be doing something wrong.


Did you check if the macros are translated into their value in the config files on Centreon Engine (/etc/centreon-engine) on you poller ?


Reply