Ad Widget

Collapse

Monitor memory for specific windows process

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • advanm
    Junior Member
    • Dec 2012
    • 9

    #1

    Monitor memory for specific windows process

    Hi,

    I'm just started with zabbix upgraded from 1.8 to 3.2. How can i monitor the memory usage of a specific windows process.
    i googled for this but didn't found the right solution for this.
  • sancho
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2015
    • 295

    #2
    Hi advanm,
    You can use the proc_info item, for example, for the java process I have it as follows:
    Key: proc_info [java.exe,wkset,sum]
    Type: Numeric (Float)
    Units: Gb
    Use custom multiplier: 0.000001

    I hope it helps you.

    Comment


    • riekeltkeuter
      riekeltkeuter commented
      Editing a comment
      Thank you, this is very helpfull.

      In order to convert Bytes to Gigabytes, i used multiplier "0.00000095367431640625" instead of 0.000001
  • ysus
    Senior Member
    • Mar 2016
    • 100

    #3
    The proc_info item does not provide full information about specific process, for example you could not monitor "Non-Paged Pool" to check if there is memory leak.

    1. Download free utility from here https://docs.microsoft.com/en-us/sys...wnloads/pslist and copy it to C:\zabbix

    2. Add new UserParameter=someprocess,"C:\zabbix\someprocess.c md" to zabbix config file on client

    3. Edit someprocess.cmd

    Code:
    @echo off
    
    SET result=
     
    FOR /f "tokens=8" %%I IN ('C:\zabbix\pslist.exe -accepteula -m -e yourprocessname 2^>^&1 ^| more +8') DO SET result=%%I
     
    IF [%RESULT%] EQU [] (echo 0) ELSE (echo %RESULT%)
    4. Add new someprocess item to zabbix server

    Comment

    • sancho
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Mar 2015
      • 295

      #4
      I did not know this option,
      Thanks for the information

      Comment

      Working...