Adding Instance description in the alert for email notification
HI ,
We have a requirement to add the Instance description as Part of alert to be sent to Email but as instance description doesnot have a token available how can we add it to be part of the alert
V N BhavaniShankar N
Posted 3 years ago·Last reply 3 years ago
7 comments
LM User
·3 years agoDSIDESCRIPTION, not DSDESCRIPTION, not DPDESCRIPTION. DSI
V N BhavaniShankar N
OP3 years agoI tried with the ##DPDESCRIPTION## & ##DSDESCRIPTION## but that is not meeting my requirements,
the instance description in the alert contains this is my wireless router or location of the device so i want to get that as part of the alert notification which is not working
LM User
·3 years agoI don’t think their documentation is right though. It says if DSI description is not available, “null” will be returned. It’s been my experience that and empty string (“”) is returned, which is worse because the token system doesn’t support templating. So you get things like “XYZ device with instance ABC with description has a value of N”.
I’m totally on board with a better templating system. Jinja2 would be my preference. it’s widely used, supported, and been around for quite a while.
LM User
·3 years agoWhen I said “not set” I meant empty. The point is the unconditional token substitution system can not deal with different results (like an empty result) effectively. Been an issue for years, just one more “lack of core system improvements” issue.
Totally agree. Wasn’t trying to disagree, just giving the link to the OP.
mnagel
·3 years agoWhen I said “not set” I meant empty. The point is the unconditional token substitution system can not deal with different results (like an empty result) effectively. Been an issue for years, just one more “lack of core system improvements” issue.
LM User
·3 years agomnagel
·3 years agoOther than DSIDESCRIPTION? Of course, this is not always set and the LM token substitution system provides no option (still) for actual templating (conditionals, etc.), but it is there.