Ad Widget

Collapse

How to add {HOST.NAME} to discovered items trigger names

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Malcolmx
    Junior Member
    • Jan 2018
    • 7

    #1

    How to add {HOST.NAME} to discovered items trigger names

    Hello,

    Since every trigger in OS Template Linux have already {HOST.NAME} added to the trigger name except items from discovery (ex. disc volumes) I wonder if there is a way to add {HOST.NAME} to all discovered (already discovered) items so zabbix can produce email alerts with subject like:

    PROBLEM: Free disk space on {HOST.NAME} is less than 20% on volume /app1 instead of:

    PROBLEM: Free disk space is less than 20% on volume /app1

    I will be more than grateful for any advice on that.

    Kind Regards,

    Zabbix 3.4.2
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    Hi,

    Do you want to edit the Trigger prototype in the default template? You can do it by editing the
    Code:
    Configuration -> Template -> Discovery rule -> Trigger prototype
    Last edited by allexpetrov; 08-01-2018, 11:07.

    Comment

    • Malcolmx
      Junior Member
      • Jan 2018
      • 7

      #3
      Originally posted by allexpetrov
      Hi,

      Do you want to edit the Trigger prototype in the default template? You can do it by editing the
      Code:
      Configuration -> Template -> Discovery rule -> Trigger prototype

      Thanks a lot. Works like a charm.

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Actually you should be trying to avoid use {HOST.NAME} macro in trigger names by any cost.
        Why?
        Because triggers list view on a side active trigger name already has host name of the active trigger and using this macro causes that this view is less readable.

        In other palaces like in completing email/sms messages ids possible to use macros with host name and trigger name as part of whole message as well to not relay only on raw trigger name.
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • Malcolmx
          Junior Member
          • Jan 2018
          • 7

          #5
          Originally posted by kloczek
          Actually you should be trying to avoid use {HOST.NAME} macro in trigger names by any cost.
          Why?
          Because triggers list view on a side active trigger name already has host name of the active trigger and using this macro causes that this view is less readable.

          In other palaces like in completing email/sms messages ids possible to use macros with host name and trigger name as part of whole message as well to not relay only on raw trigger name.
          Ok. Thank you.

          Comment

          Working...