Ad Widget

Collapse

monitoring mem + cpu of single process?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • globes
    Junior Member
    • Jan 2005
    • 6

    #1

    monitoring mem + cpu of single process?

    Dear all,

    is it possible to monitor the Ram- and CPU Usage of an single process?

    THX Globes
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    The functionality is not supported natively by ZABBIX agents running on UNIX yet.

    However, if you're interested in this information on W32 platforms, you may use ZABBIX W32 agent, which provides this information. See description of proc_info[] on http://www.zabbix.com/manual_config_items.php.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • avenger
      Junior Member
      • Oct 2004
      • 10

      #3
      Originally posted by globes
      is it possible to monitor the Ram- and CPU Usage of an single process?
      Originally posted by Alexei
      The functionality is not supported natively by ZABBIX agents running on UNIX yet.
      Hi,
      but you can use zabbix_agent user parameters to monitor specific CPU usage.
      (This is not accurate - but you can try it and monitor Mem usage the same way):
      Code:
      UserParameter=httpd[cpu],ps auxw|grep httpd|grep -v grep| awk '{s+=$3} END {print s}'
      Place this string into zabbix_agentd.conf file and restart zabbix_agentd.
      Then on zabbix server use httpd[cpu] parameter to get current CPU usage of all httpd processes.

      Comment

      • globes
        Junior Member
        • Jan 2005
        • 6

        #4
        Originally posted by avenger
        Hi,
        but you can use zabbix_agent user parameters to monitor specific CPU usage.
        (This is not accurate - but you can try it and monitor Mem usage the same way):
        Code:
        UserParameter=httpd[cpu],ps auxw|grep httpd|grep -v grep| awk '{s+=$3} END {print s}'
        Place this string into zabbix_agentd.conf file and restart zabbix_agentd.
        Then on zabbix server use httpd[cpu] parameter to get current CPU usage of all httpd processes.
        Works fine, THX

        Comment

        • tdomhan
          Junior Member
          • Jul 2009
          • 24

          #5
          is there a way to hand over a parameter to the script block, so that I can specify the process I'd like to mintor in the zabbix configuration?

          like replacing "mysql" with some variable?

          Comment

          Working...