Icinga macros not expanded in notes|action_url
|Target version:||Icinga 1.x - 1.11|
If macros (e.g. $SERVICEDESC$) are contained in the notes url (a common occurrence...)
they are not expanded, and the Links are useless.
#1 Updated by dnsmichi over 3 years ago
see #1883 - the idoutils do not dump the processed macro string, but the plain string. the cgis call themselves the shared marco fetching functions which are not really possible for a database based solution. better attempt would be to insert that into the database via data output.
#2 Updated by jmosshammer over 3 years ago
- Status changed from New to Feedback
I think this should be done in idoutils, as it should provide an abstract interface for icinga data and should hide (data storage) implementation details like macro expansion from developers. We (and other people using the db) would have to care which macros exists, where they occur, how they are resolved and constantly check if there are new macros. I would really appreciate if we could solve this in the idoutils.
#3 Updated by wpreston over 3 years ago
I only see this as being a problem for dynamic macros (e.g. $TIMET$).
But we could live without the time macros being updated.
Of course it would be nice if custom macros were dynamically expanded,
because we could alter them with the CHANGE_CUSTOM_HOST_VAR command - but since
this doesn't work with the classic interface either, it's not a big problem.
I have a strong suspicion though that macros aren't available to the core at the point the configs are dumped :-(