Ad Widget

Collapse

Services

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alexand3r
    Junior Member
    • Mar 2012
    • 11

    #1

    Services

    Hey everyone !

    First of all thank you for your quick anwsers, it's really helpfull mostly when you're now a Linux or Zabbix pro ! =)

    I've got a question and I couldn't find the answer of it over the web neither on the forum.

    I'd like to monitor a Windows service on my Zabbix server. For this I've used the key : service_state[Spool (for example)]

    and the expression {xx:service_state[Spool].last(0)}>0 on my trigger.

    It's working perfectly at one exception !
    I want it to warn me only if the service is down for more than 2 minutes but I've no idea on how to manage this with this command.

    Do you know how could solve this ?

    Thank you for your time and answers !
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    Try this:

    ({xx:service_state[Spool].last(0)}>0)&({xx:service_state[Spool].nodata(120)}=1)

    Note the brackets around the 2 separate expressions.


    MrKen
    Disclaimer: All of the above is pure speculation.

    Comment

    • alexand3r
      Junior Member
      • Mar 2012
      • 11

      #3
      Thank you for your answer.

      Well I tried your solution but it doesn't seem to work, the Service still appears as "Working" even after more than 5 minutes...

      Isn't there anything that I should add on your command ?

      Comment

      • MrKen
        Senior Member
        • Oct 2008
        • 652

        #4
        Can you post your exact Trigger expression. Much easier to troubleshoot.

        MrKen
        Disclaimer: All of the above is pure speculation.

        Comment

        • alexand3r
          Junior Member
          • Mar 2012
          • 11

          #5
          Here it is :

          ({xx:service_state[Spooler].last(0)}>0)&({xx:service_state[Spooler].nodata(120)}=1)

          Comment

          • harmonica
            Senior Member
            • Jan 2009
            • 251

            #6
            Or {xx:service_state[Spooler].min(120)}#0

            Comment

            • alexand3r
              Junior Member
              • Mar 2012
              • 11

              #7
              Thank you harmonica !

              Indeed it was the right function to use I've just tried it and it worked as I wanted it to !

              Have a nice day !

              Comment

              Working...