Ad Widget

Collapse

services[<type>,<state>,<exclude>]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 753713
    Senior Member
    • Apr 2006
    • 137

    #1

    services[<type>,<state>,<exclude>]

    Hi,

    I will monitor win-services with services[<type>,<state>,<exclude>].
    This Item running, but I have a question:

    we can I create a action with the servicename this is crashed or stopt on my server. In the output list I have only list with all services (running, stop ....).
    I will create a trigger/action with the difference between two items querys, and send mail with only the service this is crashed/stopt.

    Thanks
    Christian
    ______________________________
    Version : 2.0.x
    Server OS: Ubuntu 12.04
    Zabbix Servers: 12
    Monitored Windows Server: ~ 1000
    ______________________________
  • mjsr
    Junior Member
    • Feb 2011
    • 15

    #2
    Originally posted by 753713
    Hi,

    I will monitor win-services with services[<type>,<state>,<exclude>].
    This Item running, but I have a question:

    we can I create a action with the servicename this is crashed or stopt on my server. In the output list I have only list with all services (running, stop ....).
    I will create a trigger/action with the difference between two items querys, and send mail with only the service this is crashed/stopt.

    Thanks
    Christian
    Hello,

    You might want to read the services[] documentation. I believe there's a way to list the services that are Automatic but Stopped. That might give you a hint on what services stopped unexpectedly.

    Comment

    • 753713
      Senior Member
      • Apr 2006
      • 137

      #3
      1 .services with the startup option "manuall" the after start through another service be started, can I so not monitor
      2. I will only see this stopt services (after crash), not all stopt proceses
      Last edited by 753713; 10-05-2011, 12:00.
      ______________________________
      Version : 2.0.x
      Server OS: Ubuntu 12.04
      Zabbix Servers: 12
      Monitored Windows Server: ~ 1000
      ______________________________

      Comment

      • mjsr
        Junior Member
        • Feb 2011
        • 15

        #4
        Originally posted by 753713
        1 .services with the startup option "manuall" the after start through another service be started, can I so not monitor
        2. I will only see this stopt services (after crash), not all stopt proceses
        Hi,

        True, Zabbix has limitations regarding that.

        Why don't you monitor the Event Viewer events on your Windows servers and filter services crashes? That's an option. Not as specific as the one you are looking for but might show you errors on logs.

        The problem would be executing actions upon those triggers were fired...

        Comment

        • 753713
          Senior Member
          • Apr 2006
          • 137

          #5
          here my solution:
          1. configure $conf_ini = "C:\Program Files (x86)\Zabbix Agent" in the .au3 file
          2. compile this file with autoit
          3. add in zabbix_agentd.conf this lineUserParameter=win.service,"C:\Program Files (x86)\Zabbix Agent\ZBX_SERVICE.exe"
          4.create new item:
          -Type: Zabbix Agent
          -Key: win.service[win.service]
          -Type of information: Text

          you can add excludes to the exclude.conf, when you will not monitor all services.
          Attached Files
          ______________________________
          Version : 2.0.x
          Server OS: Ubuntu 12.04
          Zabbix Servers: 12
          Monitored Windows Server: ~ 1000
          ______________________________

          Comment

          • mjsr
            Junior Member
            • Feb 2011
            • 15

            #6
            Nice one dude

            The AutoIt executable requires that AutoIt is installed on the remote box, isn't it?

            Comment

            • 753713
              Senior Member
              • Apr 2006
              • 137

              #7
              The AutoIt executable requires that AutoIt is installed on the remote box, isn't it?
              no, after compile can you copy the exe-file to another pc
              ______________________________
              Version : 2.0.x
              Server OS: Ubuntu 12.04
              Zabbix Servers: 12
              Monitored Windows Server: ~ 1000
              ______________________________

              Comment

              Working...