Ad Widget

Collapse

getting service.discovery to work in zabbix 3.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xanadu
    Member
    • Sep 2014
    • 62

    #16
    Thanks for your answer.

    Earlier on I used the Windows service discovery template which you can find here:

    My collection of Zabbix Templates. Contribute to q1x/zabbix-templates development by creating an account on GitHub.


    However as from Zabbix v3.0 it is build in I would like to use LLD discovery for that.

    I just need to some help to setup the item prototypes and triggers.

    Comment

    • xanadu
      Member
      • Sep 2014
      • 62

      #17
      Originally posted by mse
      In this constellation, it works for me.

      1. Upgrade the Host Agent of 3.0 V

      2. Add the Regular Expressions

      3. Import Win Services Discovery Template

      4. Link the Template to the Host.


      For feedback I would be delighted.
      Ok thanks! I noticed you've put the new way of discovery in a template, had a weak moment I guess.
      Now it's discovering both "automatic" and "automatic delayed" services. I would like to have only "automatic" services. What regular expression should I use to only have these?

      Cheers

      Comment

      • mse
        Junior Member
        • Apr 2016
        • 8

        #18
        It would look like in the attached image.
        Attached Files
        Last edited by mse; 26-04-2016, 09:37.

        Comment

        • xanadu
          Member
          • Sep 2014
          • 62

          #19
          Originally posted by mse
          It would look like in the attached image.
          Can you upload a higher resolution image, I can't read it

          Comment

          • mse
            Junior Member
            • Apr 2016
            • 8

            #20
            Originally posted by xanadu
            Can you upload a higher resolution image, I can't read it


            already happend.

            Comment

            • xanadu
              Member
              • Sep 2014
              • 62

              #21
              Originally posted by mse
              already happend.
              Great! Works like a charm indeed. Thank you so much

              Comment

              • xanadu
                Member
                • Sep 2014
                • 62

                #22
                Originally posted by xanadu
                Great! Works like a charm indeed. Thank you so much
                Could you also post a high res from Windows service exceptions? eg. to exclude "Remote Registry" and others?

                Comment

                • xanadu
                  Member
                  • Sep 2014
                  • 62

                  #23
                  Originally posted by mse
                  already happend.
                  Could you also post a high res from Windows service exceptions? eg. to exclude "Remote Registry" and others?

                  Comment

                  • xanadu
                    Member
                    • Sep 2014
                    • 62

                    #24
                    ok, found that you need to add regular expressions under the menu Administration / General / Regular expressions.
                    Last edited by xanadu; 26-04-2016, 12:43.

                    Comment

                    • LLC
                      Junior Member
                      • Apr 2016
                      • 1

                      #25
                      Great template! Thank you so much!
                      How to setup trigger only at specified service?

                      like:
                      (#SERVICE.NAME=DNS) and
                      ({Template OS Windows services discovery:service.info[{#SERVICE.NAME},state].last()}<>0)

                      Comment

                      • mse
                        Junior Member
                        • Apr 2016
                        • 8

                        #26
                        Originally posted by LLC
                        Great template! Thank you so much!
                        How to setup trigger only at specified service?

                        like:
                        (#SERVICE.NAME=DNS) and
                        ({Template OS Windows services discovery:service.info[{#SERVICE.NAME},state].last()}<>0)
                        I can not help you at the moment. I still have too little experience.

                        Comment

                        • sege
                          Member
                          • Jan 2008
                          • 40

                          #27
                          Could someone paste better pics and the regexps in clear text perhaps? My eyes just aren't good enough to read those pics..

                          Comment

                          • mse
                            Junior Member
                            • Apr 2016
                            • 8

                            #28
                            Name: Windows service names for discovery
                            Expressions:
                            Expression Type: Result is FALSE
                            Expression: ^(MMCSS|gupdate|sppsvc|RemoteRegistry|SysmonLog|cl r_optimization_v2.0.50727_32|clr_optimization_v4.0 .30319_32|clr_optimization_v4.0.30319_64)$

                            Name: Windows service startup states for discovery
                            Expressions:
                            Expression Type: Result is TRUE
                            Expression: ^(automatic|automatic delayed)$

                            Comment

                            • nick0909
                              Member
                              • Apr 2013
                              • 73

                              #29
                              Services discovery seems to be working for me after only updating the agents to 3.0. I am still running server 2.4.6 and I am able to get service discovery items to create dynamically. Just in case anyone else is in the same place and wants to use this feature before upgrading their server.

                              Does anyone have the value mapping for {#SERVICE.STARTUP}? It looks like 0 is automatic, but I am not sure of the rest.

                              Edit - found it in the 3.0 documentation:
                              0 - automatic,
                              1 - automatic delayed,
                              2 - manual,
                              3 - disabled,
                              4 - unknown

                              Comment

                              • jerelev
                                Junior Member
                                • Feb 2015
                                • 15

                                #30
                                I (think i) did what you wrote in this post - but i get an error on the discovery rule:
                                Value should be a JSON object.

                                Someone knows how to fix it?

                                Comment

                                Working...