Ad Widget

Collapse

Global Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • denisss
    Member
    • May 2011
    • 36

    #1

    Global Trigger

    Hi,

    I wanted to set up a system of 'global triggers'. The principle? The global trigger is activated when one or more include triggers is activated and is deactivated only when there is no include triggers more active.
    I managed to put it in place with a trigger seperation each expression of include triggers with OR.
    Why? To prevent many spam mails come in a mailbox from a single PC ill.
    So far so good.
    But it is during the action to send the mail to the global trigger that it gets stuck. No way to mail a 'general' that would bring up the status of each item monitored by the trigger. I thought of a solution like this:

    {TRIGGER.NAME}: {TRIGGER.STATUS}
    Last value {ITEM1.LASTVALUE} : {ITEM1.LASTVALUE}
    Last value {ITEM2.LASTVALUE} : {ITEM2.LASTVALUE}
    Last value {ITEM3.LASTVALUE} : {ITEM3.LASTVALUE}

    Instead, one must create an action for each PC, which can be very boring. As follows:

    {TRIGGER.NAME}: {TRIGGER.STATUS}
    --------------------------------------------------------------------------
    % CPU 15min: {host1:system.cpu.util[user].avg(900)}
    % free space /: {host1:vfs.fs.size[/,pfree].last(0)}
    % free space /home: {host1:vfs.fs.size[/home,pfree].last(0)}
    % free RAM: {host1:vm.memory.size[pfree].last(0)}
    SSH state: {host1:net.tcp.service[ssh].last(0)}
    --------------------------------------------------------------------------
    @IP : {HOST.CONN}
    {TRIGGER.URL}

    I hope I am understanding despite my rather poor English.

    Thanks
  • Yello
    Senior Member
    • Apr 2011
    • 309

    #2
    Hi,
    If I'm understanding you correctly you want to raise 'flexible' actions according to the state of the PCs you're monitoring at trigger time, right?

    If I were doing this I'd probably call a script and pass it arguments that would enable it to get the info it needs from the API and then craft an appropriate email based on that. Have you considered that approach?

    I also have global triggers but haven't yet defined actions for them. So I may end up having to address this myself.


    Regards,
    David

    Comment

    • denisss
      Member
      • May 2011
      • 36

      #3
      Hi Yello,

      I think you understand me. And like you I had the idea of ​​a script. I'm working on it, maybe a how-to soon.

      Currently I have a solution that works but too tedious for the moment.

      But by posting here was just an idea that could be integrated in Zabbix later (if enough people are interested).

      In all cases, Zabbix is a monitoring tool that I fully embraced. Simple and powerful, what else? ^^

      Thanks

      Comment

      Working...