Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
I am writing a custom PHP page for some actions that I want to be able to perform, and when I put my macros in the action_url directive, only some of them are translating. I was wondering if anyone else was having this problem, or if anyone knew why this was happening.
Not all macros are available at all times and for all possible uses. Check the manual page for macros for the matrix that states what's available where and when.
It is quite possible that the $SERVICESTATE$ macro may not be available for the action_url statement as, I believe, those are "cast in stone" at Nagios start time. I'm not sure about $SERVICEGROUPNAMES$.