i sometimes lose track of things that i should know by heart. One of those things just came up again - it is the question of which variables i can use to make my rules more dynamic. Most of us have already used $HOSTNAME$, $HOSTALIAS$ or $HOSTADDRESS$.
I have a new colleague and he just asked me: “Hey, that $HOSTNAME$ thing is nice, can you give me a list of other available Variables?”
After thinking about it i noticed three things:
- I can create such a list dynamically by writing a notification script that outputs the $env variable to a file (Credits to @Doc and others)
- I can lookup old Nagios variables for example here: https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/macrolist.html
but most prominently
- I can’t get a list in the GUI
Now for the sake of ll others out there that feel like me - wouldn’t it be nice to have something like that available in the UI? For admins?
What are your thoughts on this?