Flolo
(Flo)
November 23, 2021, 9:12am
1
Hi we use email notifications.
I created a Tag “Standort” with a value “x”
i want to get this “x” in Notifications about this host.
how can i add host tags to notifications?
“Information to be displayed in the email body → Tags of the Host” is not the correct one
tosch
(Tobias Schönau)
November 23, 2021, 9:31am
2
Hi @Flolo ,
i guess with tags it’s not possible. Take a look at the custom host attributes, if i am right, they can be used in notifications.
Flolo
(Flo)
November 23, 2021, 9:34am
3
Hi @tosch i already tried using them.
I don`t see any option for using them in the Notifications itself. Even when the box is selected…
tosch
(Tobias Schönau)
November 23, 2021, 9:36am
4
Take a look at the notification context, all variables should be usable as macro in the notification.
tosch
(Tobias Schönau)
November 23, 2021, 9:40am
5
Oh, you are right, seems like custom attributes don’t work. But found this post.
I have this box selected in under custom host attributes:
“Make this custom attribute available to check commands, notifications and the status GUI”
These attributes do not show up as environment variables when the notification script is called though.
How can these be accessed by notifications?
EDIT: If you are able to read German, this may helps as well:
Hallo zusammen,
aktuell schreibe ich ein Bash Script für eine Notification gegen eine API. Dazu müsste ich in dem Host ein Custom Attribute setzen und dieses dann dem Bash Script mit übergeben. Leider finde ich in der Doku aber keinerlei Hinweise darauf wie ich das da als Parameter am besten mitgebe. Geht das überhaupt oder bin ich auf dem Holzweg?
Vielen Dank und liebe Grüße,
Dennis
1 Like
system
(system)
Closed
November 23, 2022, 9:40am
6
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.