Ad Widget

Collapse

Use Zabbix to Monitor E-Mail Content and if a Mail with fixed attributes is incoming

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • T-One
    Junior Member
    • Jan 2011
    • 12

    #1

    Use Zabbix to Monitor E-Mail Content and if a Mail with fixed attributes is incoming

    Hello,

    as the title indicates, i want to scan incoming e-mails for special attributes on the zabbix server. to be precise what i want to achieve:

    We have a lot of different backup services for all kinds of software, is it the mysql backup, oracle, vmbackup via veeam, IBM TSM, single Rsync Jobs for NAS in branch offices, and so on. All of these are sending e-mails if the backup was done correct or if it failed, always with an "OK" or "ERROR" in the subject.

    What i want to do: Sending all backup mails to a mailbox on the zabbix server, and zabbix should scan those mails (via external script it's quite easy to look into the mails for "ERROR" or "OK" and build a trigger around this) but zabbix should also check if it got a mail at all. At the moment we don't catch a full backup error because we cant handle the amount of mails and filter single mails out just because it wasnt delivered. So if we dont get a mail from a specific sender in the last 24 hours with at least ERROR or OK in the subject, the trigger should hit as well. This is not such a big problem with scripts on the linux side, but the whole thing should be manageable and editable by the first level support within zabbix, so a whole linux scripting thing is very uncool to manage for the first level support because they have to edit single files on the linux server to change configs or add mail-addresses.

    anyone an idea or a similar setup?

    kind regards
    T-One
    Last edited by T-One; 05-02-2014, 19:01.
  • coreychristian
    Senior Member
    Zabbix Certified Specialist
    • Jun 2012
    • 159

    #2
    Do you have each sender going to a different zabbix item?

    If so you could/should be able to setup a nodata() trigger on that item.


    Code:
    {Template Zabbix Agent:agent.ping.nodata(59m)}=1

    Comment

    • ArtemK
      Senior Member
      • May 2013
      • 232

      #3
      I'm not sure, that it will help you, but in our company trapper items/zabbix sender is used in backup scripts/jobs, and it reports to zabbix, when backup completed/failed/something else happened. Also it's very easy to make trigger, that will check how long ago specific value was updated and fires, if for. example some backup state was not reported for 12 hours. That's it pretty easy to implement and there are no need to care about email parsing/email setting in scripts/etc

      Comment

      • jeroen_vdk
        Junior Member
        • Apr 2017
        • 3

        #4
        Sorry to reply on an old topic but what do you mean @ArtemK with

        "trapper items/zabbix sender is used in backup scripts/jobs, and it reports to zabbix"

        Comment

        • ovas
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Apr 2017
          • 138

          #5
          Originally posted by jeroen_vdk
          Sorry to reply on an old topic but what do you mean @ArtemK with

          "trapper items/zabbix sender is used in backup scripts/jobs, and it reports to zabbix"
          There is a certain item type called "Trapper item": https://www.zabbix.com/documentation...mtypes/trapper
          You can read about zabbix sender in that article as well.

          Comment

          • jeroen_vdk
            Junior Member
            • Apr 2017
            • 3

            #6
            Thanks, i go further from that manual.

            Comment

            Working...