Ad Widget

Collapse

Add A Custom Windows Service Check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Betajake
    Junior Member
    • Nov 2015
    • 7

    #1

    Add A Custom Windows Service Check

    Hello!
    Is it possible to setup a custom service check? I had a department request a specific utility service on a windows 2012 server be added to alerts. Here's what I've done so far:

    - Setup a New template call Utility Alert
    - Assigned template to Windows server
    - Added only the specific server under Hosts/templates
    -- No linked Templates
    -Created an Item called Utility service is running
    --Simple Check
    --Key: service_state[Utility]
    -Created Trigger
    --{Utility Check:service_state[Utility].max(3)}=0
    --No trigger dependencies

    When I go to check the Trigger under the host (configuration of triggers), it gives me a red x for the trigger and an error: ZBX_NOTSUPPORTED. Any assistance would be greatly appreciated.

    Zabbix Ver. 2.2

    Thank you,

    -Jake
    Last edited by Betajake; 10-02-2016, 23:57. Reason: Added Version Of Zabbix
  • topcek
    Junior Member
    • Jun 2010
    • 17

    #2
    HI,

    i would do it like this:

    create new template e.g. Service_DNS_CLIENT

    add new item into template:
    Name:is some name(DNS_CLIENT_SERVICE)
    type=zabbix agent
    key:service_state[<exact name of service like you see it in services.msc]
    type of inf. Numeric
    Data type=deciaml
    units:none

    create trigger name it and add condition:
    service_state[DNS_CLIENT_SERVICE].last(0)}<>0

    so simply when it's running value which zabbix agent recieves is 0. When is not running then it is something else. (check documentation of zabbix)

    Hope helps!


    save it and add it to some windows server.

    Comment

    • Betajake
      Junior Member
      • Nov 2015
      • 7

      #3
      Add Custom Service Check

      Thanks so much, your recommendations worked. The only piece I had to change was for the trigger, the command ended with #0 instead of <>0 . It may be due to the version I'm using.

      Thanks again!

      -Jake

      Comment

      • baannee
        Junior Member
        • Oct 2018
        • 1

        #4
        Hi All,

        How to setup alarm to rise up if Windows service is unavailable for, example 5 minutes?
        I tired but unsuccessfully.

        service_state[DNS_CLIENT_SERVICE].xxxxx ?

        Comment

        Working...