Ad Widget

Collapse

service type

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tractorboy
    Member
    • Oct 2010
    • 98

    #1

    service type

    I am currently montoring service state,which itslef is great, until I find that I have a server where the service is installed but disabled.

    I have found this is expected, as the servcie is their ready if its needed.

    what I would therefore like to do is monitoring the type (automatic, manual, disabled) and only alert if a service is not running and not disabled.


    I cannot see anything that can achieve that, what am I missing?
  • Speedfight
    Member
    • May 2007
    • 67

    #2
    probably the item will push out the value 7?

    you can add "and" to your trigger like this:

    Code:
    & {Servername:service_state[ServiceName].last(0)}<7
    if the item will push out "7" the trigger will not be triggerd because the value is greater than 6

    edit: check out this wiki item (bottom) https://www.zabbix.com/documentation...agent/win_keys
    Last edited by Speedfight; 08-08-2013, 14:55.

    Comment

    • Tractorboy
      Member
      • Oct 2010
      • 98

      #3
      Stopped = 6

      Once installed the service state returns 1-6. The issue for me is that I only want to alert when a service is not running, unless its disabled. Currenly I cannot find a standard key to find information about type (auto, manual, disabled).

      I suspect I'll be using wmi, which isn't a problem.

      select StartMode from Win32_Service where name = 'Browser' as an example.

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        Originally posted by Tractorboy
        what I would therefore like to do is monitoring the type (automatic, manual, disabled) and only alert if a service is not running and not disabled.

        I cannot see anything that can achieve that, what am I missing?
        I don't do alerting on it, but I do this very thing in monitoring using this key: services[automatic,stopped]
        I apply this to the Windows template and it will then tell me any services that are set to automatic, but are in a stopped state.

        See this page in the Wiki regarding other usage of this key:


        And look for this about halfway down that page:
        services[<type>,<state>,<exclude>]


        Then on my Screen for Windows servers I have a dynamic item that will show this for any given server:
        Attached Files
        Last edited by tchjts1; 08-08-2013, 20:02.

        Comment

        • Tractorboy
          Member
          • Oct 2010
          • 98

          #5
          Nice idea

          I like that idea, and I'll look at options around alerting.

          I have also got the service mode back via wmi, and joined that to the service state to have alerting. This way I can alert on specific services, the generic should highlight generally other changes at least so they can be checked and reviewed.

          Comment

          Working...