Ad Widget

Collapse

Monitoring Process Attributes - How?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tuhl
    Junior Member
    • May 2005
    • 17

    #1

    Monitoring Process Attributes - How?

    How is it possible to monitor attributes like cpu usage, memory usage for a certain process?
  • cadbury
    Member
    • Apr 2005
    • 77

    #2
    if you want to monitor a linux process, you can use the ps command
    for example, i monitor cpu usage for the zabbix agent like that :

    i have a userparameter in my /etc/zabbix/zabbix_agentd.conf :

    UserParameter=agentdload,ps -o "%C" -C zabbix_agentd | awk '{total += $1} END {print total}'

    the ps command show only the cpu usage (-o "%C") for the processes named zabbix_agentd. As several lines are returned (one for each process), i use awk to make the total usage

    other options are availiable for memory usage, see the ps manual

    Comment

    • tuhl
      Junior Member
      • May 2005
      • 17

      #3
      Re: Monitoring Process Attributes

      I think there should be an "internal" mechanism to monitor these values.

      @Alexei: Are you planning to integrate a deeper monitoring capability for
      processes?

      Yours
      Tom

      Comment

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

        #4
        Originally posted by tuhl
        @Alexei: Are you planning to integrate a deeper monitoring capability for processes?
        Yes, I am!
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        Working...