Ad Widget

Collapse

Trigger expression too long

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbrijun
    Member
    • Mar 2006
    • 63

    #1

    Trigger expression too long

    Hello,

    I am having a bit of a difficulty trying to create a complex trigger that checks that a service is running only on one of three possible servers. The resulting expression is too long and the trigger dialogue window refuses to take it.

    Any hints would be much appreciated

    Martyn
  • erisan500
    Senior Member
    Zabbix Certified Specialist
    • Aug 2005
    • 285

    #2
    Post your trigger so we can have a look.

    Greetings
    EriSan
    Zabbix Certified Specialist

    Comment

    • mbrijun
      Member
      • Mar 2006
      • 63

      #3
      Hi Erisan,

      thank you for your reply. The trigger is like this:

      ({NYCMWSBE03:service_state[MWS_CalScheduler].last(0)}+{UKIGMMWSBE02:service_state[MWS_CalScheduler].last(0)}=0)|({UKIGMMWSBE02:service_state[MWS_IGMScheduler].last(0)}+{SINMWSBE01:service_state[MWS_CalScheduler].last(0)}=0)|({NYCMWSBE03:service_state[MWS_CalScheduler].last(0)}+{SINMWSBE01:service_state[MWS_CalScheduler].last(0)}=0)

      I was thinking of taking advantage of the fact that when the service is stopped, it returns the value of 6. By summing up the service_state values of all three servers, the sum will be less than 12 if two instances of the service is running. However, this has a potential problem - a service can be paused, and it will return a value of 1, and that will cause the trigger to become TRUE.

      Thanks,
      Martyn

      Comment

      Working...