I've seen this question posed in multiple posts but the most recent is a year or two old so I'll ask again here. Is there any way to pass in a variable for an Oracle UX monitor? Case in point is I have a UX monitor with the following query which returns a statistic and simple status string:
SELECT decode(connexion,'A',1,0) ,widget1_status FROM WATCH_WARNING WHERE terminal='00000245'
I need to create a nice template comprised of 30-40 UX monitors which will ultimately be applied to 20-30 different devices. The Terminal number at the end of the query (and each query in the 30-40 UX monitors) is however unique and does not map to anything (IP, node name, etc.) already stored in the database for the given device. Ideally I'd create a quick custom property on the Node or even Application and then replace the terminal unique ID with a variable. Granted I can touch each manually but woof...
Node 1 - Custom Property 'Term_ID' = '00000245'
Node 2 - Custom Property 'Term_ID' = '00008564'
...
Node 30 - Custom Property 'Term_ID' = '9985482'
My query then hopefully becomes something like:
SELECT decode(connexion,'A',1,0) ,widget1_status FROM WATCH_WARNING WHERE terminal= ${Node.Term_ID}
The ability to pass in a variable would keep me from having to touch potentially a thousand or so monitors by hand or manipulating the Orion database directly. Ideas??? I've tried different ways but can't seem to make it happen, not sure if I'm not getting the syntax correct or if it's just not doable.