Page 1 of 1

USERxx variables not usable in actions_url and notes_url

Posted: Tue Oct 01, 2013 8:17 am
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

Re: USERxx variables not usable in actions_url and notes_url

Posted: Wed Oct 02, 2013 10:26 am
by lmiltchev
What the macros get replaced with (nothing or $userxxx$)?

Re: USERxx variables not usable in actions_url and notes_url

Posted: Thu Oct 03, 2013 2:27 am
by yashgt
They get replace with $userxx.

Re: USERxx variables not usable in actions_url and notes_url

Posted: Fri Oct 04, 2013 6:52 am
by lmiltchev
It seems like these macros may not be available (security reasons, etc.).