Ad Widget

Collapse

Triggers and service_state

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wojciechiwanski
    Junior Member
    • Jul 2013
    • 4

    #1

    Triggers and service_state

    Hello all,
    first of all I'd like to say that Zabbix is very useful tool and I've been exploring and learning it for past few days but I've encountered a problem.

    Discovery service for service_state is nice (tutorials on forums) but I don't want to monitor ALL services, so I proceeded to create templates for myself like Active Directory which consists only of AD services and I can apply it to any host which runs AD, that's great.

    Now here I have a question which I couldn't find the answer to. It is service_state triggers, I know you can create trigger for each service_state[NAME] but is it possible to create one trigger for all service_state[NAME] in one instance? It is really tedious work to create separate trigger for every service when regardless of service trigger does the same thing. Especially if you have more than one trigger for each service.

    To make it clearer I have items:
    service_state[NTDS]
    service_state[ADWS]
    service_state[Dfs]

    and I would like to get the same trigger for all like
    service_state[*]=6
    or second trigger:
    service_state[*]#0
    Is it possible?

    Thanks in advance.
  • joeb1kenobe
    Junior Member
    • Nov 2013
    • 1

    #2
    Not sure if you have resolved this or not, but you could try:

    {Active Directory Monitoring:service_state[NTDS].last()}=6 | {Active Directory Monitoring:service_state[ADWS].last()}=6 | {Active Directory Monitoring:service_state[Dfs].last()}=6

    Comment

    • wojciechiwanski
      Junior Member
      • Jul 2013
      • 4

      #3
      Not really, I've added all services manually unfortunately.

      Comment

      Working...