USERxx variables not usable in actions_url and notes_url

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.
Locked
yashgt
Posts: 6
Joined: Sat Sep 01, 2012 12:37 am

USERxx variables not usable in actions_url and notes_url

Post by yashgt »

I am using Nagios Core 3.5.0
I have the following service definition:
service{
...
action_url http://$USER10$/static/html/node.html?node=$USER3$&host=$HOSTADDRESS$
}

The USERxx variables have been set correctly in the resource.cfg.

However, the URL that gets generated does not get the value at all for the USER varaibles but gets the value for HOSTADDRESS.

Is there something that I need to do to all USER variables to be available for the action_url and notes_url?

Thanks,
Yash
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: USERxx variables not usable in actions_url and notes_url

Post by lmiltchev »

What the macros get replaced with (nothing or $userxxx$)?
Be sure to check out our Knowledgebase for helpful articles and solutions!
yashgt
Posts: 6
Joined: Sat Sep 01, 2012 12:37 am

Re: USERxx variables not usable in actions_url and notes_url

Post by yashgt »

They get replace with $userxx.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: USERxx variables not usable in actions_url and notes_url

Post by lmiltchev »

It seems like these macros may not be available (security reasons, etc.).
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked