Nagios XI Macros not populating
Posted: Thu Mar 05, 2026 1:42 pm
Hi All,
I am currently attempting to use the $SERVICECHECKCOMMAND$ macro.
When adding this to the input I am also using $HOSTNAME$ which is being filled in correctly, however, SERVICECHECKCOMMAND will not fill in?
Example of action url I am using:
/[path]/test.php?host=$HOSTNAME$&check=$SERVICECHECKCOMMAND$
Output:
/[path]/test.php?host=MyHost1&check=$SERVICECHECKCOMMAND$
I have activated the macro in the config...
and this is a supported system macro:
https://assets.nagios.com/downloads/nag ... olist.html
I have also tested using this macro in service arguments and other locations ... all no change...
Any help much appreciated!
Chris...
I am currently attempting to use the $SERVICECHECKCOMMAND$ macro.
When adding this to the input I am also using $HOSTNAME$ which is being filled in correctly, however, SERVICECHECKCOMMAND will not fill in?
Example of action url I am using:
/[path]/test.php?host=$HOSTNAME$&check=$SERVICECHECKCOMMAND$
Output:
/[path]/test.php?host=MyHost1&check=$SERVICECHECKCOMMAND$
I have activated the macro in the config...
and this is a supported system macro:
https://assets.nagios.com/downloads/nag ... olist.html
I have also tested using this macro in service arguments and other locations ... all no change...
Any help much appreciated!
Chris...