Ad Widget

Collapse

Service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeangabin03
    Junior Member
    • Mar 2017
    • 6

    #1

    Service

    Hi,
    I want to create a discovery Rules for Specific Services created on my Computer. (Service name = BlackMotor,BlackServer,BlackRoute,...)

    1.Create a discovery rules
    name = service.info[{#SERVICE.NAME}]
    key = service.info[{#SERVICE.NAME},state]

    2.Create the item prototypes
    name =service.info[{#SERVICE.NAME}]
    service.info[{@testMacro},state]

    TestMacro is my regular expresssion : match everything who start with Black


    But something is wrong , how to do this correctly?
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please check the contents of the discovery rule in the template 'Template OS Windows'.
    The name of the discovery rule is 'Windows service discovery'.

    For the discovery rule, try using service.discovery as the Key
    and specifying a service name macro in Filters.

    Comment

    • salvatoregrilletta
      Junior Member
      • Apr 2017
      • 5

      #3
      Hi,
      I have a similar problem: i want to check the installation and the state of my antivirus service.

      So of all possible value i accept only 0 and no other.

      Windows service state
      0 ⇒ Running
      1 ⇒ Paused
      2 ⇒ Start pending
      3 ⇒ Pause pending
      4 ⇒ Continue pending
      5 ⇒ Stop pending
      6 ⇒ Stopped
      7 ⇒ Unknown
      255 ⇒ No such service


      Could you help me ? Do you solve ?
      I've already work with discover but without any lucky.

      Thanks

      Comment

      Working...