Ad Widget

Collapse

trigger like nagios (3 attempts then send mail)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wikisb
    Member
    • May 2011
    • 64

    #1

    trigger like nagios (3 attempts then send mail)

    hi all!
    i want to create a trigger that does 3 attempts before sending an e-mail like in nagios.
    for example i monitorize a service "x" and i want a trigger that makes first 3 attempts to check that this service is up, if after 3 checks the service is still down then i want zabbix to send me an email.
    for example:
    i want this trigger checked 3 times so if after 3 checks its still down then send me a mail
    Code:
    {fsystem:zext_nagios.sh[ssh {HOSTNAME}].max(10)}#0
    thanks!!
  • JBo
    Senior Member
    • Jan 2011
    • 310

    #2
    Hi,

    You can use :

    Code:
     {fsystem:zext_nagios.sh[ssh {HOSTNAME}].count(#3,2)} = 3
    to check that last 3 values are 2 (critical).

    Code:
    {fsystem:zext_nagios.sh[ssh {HOSTNAME}].count(#3,1,ge)} = 3
    to check that last 3 values are greater or equal to 1 (warning).

    More details on count function in the manual

    JBo

    Comment

    • wikisb
      Member
      • May 2011
      • 64

      #3
      thanks once again JBo
      Code:
      {fsystem:zext_nagios.sh[ssh {HOSTNAME}].count(#3,1,ge)} = 3
      it's what i needed
      for simple checks that return 1 as OK i did the following
      Code:
      {fsystem:zext_nagios.sh[ssh {HOSTNAME}].count(#3,1,ne)} = 3
      Last edited by wikisb; 30-06-2011, 13:21.

      Comment

      Working...