Ad Widget

Collapse

What expression can I use?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lisajeanrieken
    Junior Member
    • Apr 2007
    • 2

    #1

    What expression can I use?

    I want to create an expression for Zabbix so that it will fire off a trigger when it is unable to communicate with the host's server.
    I've tried this:

    NAME OF TRIGGER:
    Lisa: Unable to communicate with Server
    (Lisa being the server name)

    EXPRESSION:
    {lisa.myip.co.za:service_state[SMTPSvc].nodata(400)}=1

    The =1 doesn't seem to be working tho. It does send an alert when the server is down, but if I go to History and then Events, every seven minutes, it says ON, and a second later, it's OFF. Example

    2007.Apr.02 16:13:24 Lisa: Unable to communicate with Server OFF Disaster
    2007.Apr.02 16:13:24 Lisa: Unable to communicate with Server ON Disaster

    Can someone pls tell me what the correct expression is??
    Thank you!
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Make sure that interval for the service_state[] is much smaller than 400 seconds. I would also suggest using of agent.ping for nodata().
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • lisajeanrieken
      Junior Member
      • Apr 2007
      • 2

      #3
      So could you please give me an example of what it would look like?
      How much smaller than 400?
      What should the expression look like exactly?

      Comment

      • bashman
        Senior Member
        • Dec 2009
        • 432

        #4
        An example:

        978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

        Comment

        Working...