Ad Widget

Collapse

Zabbix Email for Certain Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • delija91p
    Junior Member
    • Nov 2014
    • 24

    #1

    Zabbix Email for Certain Trigger

    Hey you guys,

    I believe I asked about this before, and it didn't seem like anyone had a real answer for me. But I was wondering if someone could help me out with some email notifications. I have a trigger that monitors under-utilization of servers, since we don't want to keep getting servers if others are not being utilized. What we truly want though is an email at the end of each week, so lets say every Friday at 3:00PM a list of all the machines that have that trigger! Does anyone know of an easy way to do this or even a difficult way, I just can't seem to think of anything. I would even be wiling to write a script and have it run, but I have no idea where and how to start with that! Any help would be highly appreciated!

    Thanks you in advance!
  • Linwood
    Senior Member
    • Dec 2013
    • 398

    #2
    If I were aiming for that kind of a report (and not knowing of any good reporting integration out of the box), I'd probably do a database query in whatever flavor database you use, and email it completely outside of zabbix.

    The data structures in zabbix are pretty simple, while not directly documented if you look at the API detail for each object there's a fair amount of detail there about meanings of obscure fields. But for what you describe, you could either query your own trigger, or just query the prior period utilization information directly from the history table.

    I've been thinking of doing something similar for projected disk exhaustion, something to look at long term data trends and forecast when an increasing utilization (on average) might become a problem.

    There's a wealth of data in the history/trends file which could be used for a bolt-on capacity planning module if one got enthusiastic.

    Comment

    Working...