Ad Widget

Collapse

Multiple checks before trigger activations

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Siegfried
    Junior Member
    • Jul 2005
    • 24

    #1

    Multiple checks before trigger activations

    Hi,

    I was wondering if there was a way to configure triggers so that the checks were performed more than 1 time before activating the trigger. As an example, if I look at the following trigger "WEB (HTTP) server is down on {HOSTNAME}", which has the following expression:

    {Template_Linux:net.tcp.service[http].last(0)}=0

    In the case of a failure on reaching port 80, is there a way to make sure that the check is performed 2-3 times before the trigger is activated? This is to avoid false positives in the case of network hickups. Also, is there a way to accelerate the checks during that time?

    I'm curious because we're evaluating a switch from nagios and these are 2 very interesting features that we would almost certainly need.

    Thanks!
  • gryphius
    Member
    • Aug 2007
    • 30

    #2
    Hi Siegfried
    You can achieve this by using functions like min and max which take an argument that allows you to specify how many seconds an expression must be true until a trigger is fired.

    Code:
    	{tmpl_environment:environment.temperature[0].min(620)}>27
    Or alternatively you can put a # before the number to specify the number of values instead of the seconds.
    Code:
    	{tmpl_mta_external:smtp_perf.max(#100)}=0

    Comment

    Working...