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
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
Comment