I am looking to change the descirption/message of an alarm. The default message string shows number values that arent too helpful, and a word would make more sense. I have searched for a list of variables that I can inject, but have not managed to find the list.
Some variable examples are:
Instead of the $value which outputs a number (ex: 2), I want it to input a word like 'down' if the vlaue of 2 is mapped to a down state.
Im assuming this should be fairly simple; any guidance would be aprreciated.
cisco_nxos probe for now...
I was hoping there woould be a full list somewhere; if not, how would this differ per probe?
Every probe does something different, so they support different variables. For example, the logmon probe montiors log files, and it supports a variable for the name of the log file monitored by the profile generating the alarm. That variable would not make sense in the cdm probe, which is monitoring CPU, disk, and memory.
Have you looked at the probe help for the cisco_nxos probe? Usually you can find a list of variables for a probe in one of two places. A list is often included in the probe help, or sometimes you can get a list of variables to appear dynamically in the probe GUI by typing a $ when entering a log message and then pausing. (The probe help might mention if this technique works, but I would probably try it even if the help does not mention it.)
Entering '$' and pausing did the trick...I was not aware of that before.