Ad Widget

Collapse

Monitor running windows PROCESS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CarlosTech
    Junior Member
    • Aug 2017
    • 20

    #1

    Monitor running windows PROCESS

    hi guys,
    I'm trying to see if I can get Zabbix server to monitor running windows processes. i assume it would need to discover the running processes to report back on them.

    essentially i'm trying to replicate what "New Relic" currently does, where is lists the name of the process, the user, CPU and memory usage.

    i've had a search on the forum but not come across anything...
  • GuiEdington
    Junior Member
    • Jul 2017
    • 10

    #2
    Hi,
    This might help you: https://www.zabbix.com/documentation...agent/win_keys

    Comment

    • CarlosTech
      Junior Member
      • Aug 2017
      • 20

      #3
      thanks GUI. although i'm not 100% certain how i would set this up.. .i'll do a bit of digging. at the same time reading that link it looks as though i would need to specify the process name.. however i would want zabbix to discover the running processes and report back on processes that could be exceeding memory usage etc.

      Comment

      • zabbixisfun
        Junior Member
        • Apr 2019
        • 9

        #4
        Any new findings from this ? I'm currently manually adding specific process with proc.num -- i want to monitor but would love to capture a "current state" and monitor for changes


        Looking for LLD Discovery for windows processes (example: chrome.exe)
        Last edited by zabbixisfun; 06-09-2019, 01:21.

        Comment

        • HaveDill
          Senior Member
          • Sep 2014
          • 103

          #5
          With monitoring windows processes (not services), if you wrote a script to discover "current state" and had discovery items built off it, it would get very noisy. Processes spin up and down constantly.

          Now if you wanted to do this with services, it should work fine. -

          ANY DIFF: (This is very basic)
          create a system.run[powershell -command "get-service | select-object name, status"] - then create a trigger for diff.

          Smart way:
          Create a powershell script that outputs a json value for a zabbix { data: [ {} ]} discovery process. You can add this as a userparameter, or just call it directly as an item

          Each service name would then be used in an item prototype to get the service status, paired with a trigger for that individual item to say if it has changed or not

          Comment

          • mfortes
            Senior Member
            • Oct 2019
            • 415

            #6
            Already tried proc_info?


            Michael R. Fortes

            Linkedin: Mike Fortes
            Medium: mromeiro-f

            Comment

            • atom63
              Junior Member
              • Mar 2020
              • 3

              #7
              Originally posted by HaveDill
              Smart way:
              Create a powershell script that outputs a json value for a zabbix { data: [ {} ]} discovery process. You can add this as a userparameter, or just call it directly as an item
              Code:
              $service = Get-Service | Where-Object {$_.Status -eq "Running"} | select-object name, displayname
              $service=@(ConvertTo-Json $service)
              $names='{ data: }'
              $names=$names.Insert(8,$service)
              $names
              If u r lazy like me)
              Or from cmd you can run only one simple command
              Code:
              powershell.exe -command "$service = Get-Service | Where-Object {$_.Status -eq 'Running'} | select-object name; $service=@(ConvertTo-Json $service); $names='{ \"data\": }'; $names=$names.Insert(9,$service);  $names.replace('Name','{$PROC.NAME}');"
              Last edited by atom63; 04-04-2020, 12:48.

              Comment

              Working...