Ad Widget

Collapse

Terminal discovery - how to add additional details to notification email

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mantonik
    Junior Member
    • May 2015
    • 17

    #1

    Terminal discovery - how to add additional details to notification email

    Hi

    Zabbix 3.4
    linux server

    Using a template from DB I am getting a list of terminals like

    tvm_100 as HOSTNAME,Station Name as STATIONNAME

    I am using discovery to dynamicly create list of terminals

    In the template, I created an item prototype
    Click image for larger version

Name:	0_item_prototype.JPG
Views:	277
Size:	70.6 KB
ID:	383197


    Host prototype
    Click image for larger version

Name:	1_host_prototype.JPG
Views:	260
Size:	45.5 KB
ID:	383198

    In this configuration it is working, I am receiving a ping



    To the email notification, I would like to add a STATION NAME in the subject or in the body of the email

    Click image for larger version

Name:	3_action_send_email.JPG
Views:	256
Size:	46.5 KB
ID:	383199



    I tried to add to Host Prototype Visible name like {#HOSTNAME} - {#STATIONNAME}, but then host.name was created like "tvm_100 station" which caused a problem in ping check.

    Click image for larger version

Name:	4_host_prototype_updated.JPG
Views:	263
Size:	44.3 KB
ID:	383200

    I need monitor ping to terminals using name tvm_100
    Click image for larger version

Name:	5_ICMP_ping.JPG
Views:	255
Size:	44.8 KB
ID:	383201




    Question

    How I can add to email a STATIONNAME?


    Thank you





  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    In Host prototype fill Visible host name with {#STATIONNAME}. Then use macro {HOST.NAME} in trigger description and use {TRIGGER.DESCRIPTION} in email alerts....

    Comment

    Working...