Ad Widget

Collapse

Send Trigger Email directly to end user/end customer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andreas777
    Junior Member
    • Jul 2022
    • 16

    #1

    Send Trigger Email directly to end user/end customer

    Hi guys!

    I want to send trigger alarms via email directly to the end customer not to the admins.
    We are speaking about 100 employees approximately.

    For example: Disk space reaches 80% --> PROBLEM STATE --> trigger action --> email to colleague --> Hi dear colleague! Please be aware that your disk is running out of space. Please delete unused data............and so on.

    Any ideas on how to solve this issue in an easy way?

    I've looked in the trigger actions section, but I would have to make hundreds of trigger actions to solve this issue.

    I really appreciate any help you can provide.

    Greetings

    Andreas
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Is there multiple different recipients per host?
    If there would be just one "customer" per host, you could use inventory to store info and use inventory macros to refer to to it. And then get away with just one action.
    We have such "first line", "second line" info in hosts inventory and I use tags values to refer to them ({INVENTORY.POC.PRIMARY.NAME} etc) custom media parses all needed stuff from message text (message templates) and uses them while forwarding the message...

    Comment

    • andreas777
      Junior Member
      • Jul 2022
      • 16

      #3
      Hi cyber!
      Actually, in a typical scenario, there are a few hosts per customer.

      Lets say:

      Customer A has a Windows PC, a printer, a router, and a modem.
      And on some specific trigger events, I want to send a message directly to the customer (e.g. hard disk is running out of space, the operating system is outdated, etc.)


      Your way of doing this sounds very interesting. Can you give me a bit more detailed information? I could of course assign the email-address to the inventory field of a host (Primary POC email) and I know how to use Inventory macros in the message body. But how to use this inventory macro for defining the recipient?

      I very much appreciate your help!

      Thank you very much!

      Greetings

      Andreas

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        We do not send emails directly, we forward all events out to our "central", which then deals with everything, that needs to be done, emails. tickets etc.. . A custom webhook, where code parses message generated based on message template, which contains a tag list (which contains recipients already, as during event generation all macros are resolved), constructs a payload and then submits it over rest api...
        I am pretty sure you can use some custom media for email sending aswell, so it is not directly a "email" media, but maybe a script? Codewriting is not really my thing..

        Comment

        Working...