Ad Widget

Collapse

Trigger Expression advice - Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bee
    Senior Member
    • Jun 2007
    • 133

    #1

    Trigger Expression advice - Help

    I have template called Windows Services, where consist of 10Windows server. In this template, i have items such:

    Name: Service State of BackupExecRemoteClient
    Key: service_state[BackupExecAgentAccelerator]

    Name: Service State of WSUSClient
    Key: service_state[wuauserv]

    Name: Service State of ZABBIXAgent
    Key:service_state[ZABBIX Agent]

    etc...etc...etc...

    I would like to have only 1 trigger to monitor all of these items.
    Yes, It's done by:
    {Windows Services:service_state[BackupExecAgentAccelerator].last(0)}#0 | {Windows Services:service_state[ZABBIXAgent].last(0)}#0 | {Windows Services:service_state[wuauserv].last(0)}#0

    But, if i have over 20 similar items, you can imagine how long the expressions like.
    Now the question, is there any trick to make above expression more short?

    Thanks,
    BEE
  • qix
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2006
    • 423

    #2
    I guess you want to see if the services you have on "auto start" are all up and running?

    I'd suggest you look at the script in this thread by peter_field.

    Hope it helps.
    With kind regards,

    Raymond

    Comment

    • skogan
      Member
      • Nov 2007
      • 70

      #3
      Aggregation, maybe? Or is that only good for adding up values from different hosts?

      Comment

      Working...