Ad Widget

Collapse

proc.mem: is it really useful to monitor ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #16
    Beginning with ZBXNEXT-1550 an Zabbix-Agent can be extended with missing items (almost) as easy as it is currently possible via UserParameters but with the same efficiency of native build-in support.
    Last edited by BDiE8VNy; 10-03-2013, 17:13. Reason: almost as easy ;-)

    Comment

    • lfarkas
      Junior Member
      • Jul 2013
      • 1

      #17
      +1 for proc.mem[VIRT/RES/SHR]

      imho it's an essential for a proper process monitoring or at least rss is more useful then virt.

      Comment

      • a.shpak
        Junior Member
        • Feb 2013
        • 7

        #18
        Here is feature request from 2012

        Comment

        • unixvrules
          Junior Member
          • May 2014
          • 1

          #19
          proc.stats

          Here's what I did

          UserParameter=proc.stats[*],/usr/local/bin/proc.stats.sh \$1 \$2

          I won't bore you too much with proc.stats.sh, but it essentially does this...

          /bin/ps --noheader -C $1 -o $2 | awk 'BEGIN {total=0} {total+=$0} END { print total}'

          And I call it like this...
          proc.stats[nfsd,vsize]
          proc.stats[nfsd,rss]
          the second parameter can be these and total works
          %cpu|%mem|rss|vsize|lstart|majflt|minflt

          I wrote some summarization stuff for things like
          uptime (up time in seconds)
          time (cpu seconds)
          nproc (num processes with that command)
          nfiles (num files open)

          zabbix_get -s 192.168.1.99 -k proc.stats[nfsd,uptime]
          61815
          zabbix_get -s 192.168.1.99 -k proc.stats[nfsd,%cpu]
          0
          zabbix_get -s 192.168.1.99 -k proc.stats[nfsd,%mem]
          0
          zabbix_get -s 192.168.1.99 -k proc.stats[nfsd,rss]
          0
          zabbix_get -s 192.168.1.99 -k proc.stats[nfsd,vsize]
          0
          zabbix_get -s 192.168.1.99 -k proc.stats[nfsd,nproc]
          128
          zabbix_get -s 192.168.1.99 -k proc.stats[nfsd,nfiles]
          384
          zabbix_get -s 192.168.1.99 -k proc.stats[nfsd,time]
          721
          zabbix_get -s 192.168.1.99 -k proc.stats[nfsd,lstart]
          0
          zabbix_get -s 192.168.1.99 -k proc.stats[nfsd,majflt]
          0
          zabbix_get -s 192.168.1.99 -k proc.stats[nfsd,minflt]
          0

          Comment

          • barbaros
            Member
            • Aug 2010
            • 32

            #20
            Hi guys,

            Is there any progress with adding RSS monitoring feature for proc.mem item? It would be very useful to have this possibility.

            Regards!

            Comment

            • mushero
              Senior Member
              • May 2010
              • 101

              #21
              Has anyone filed a ZBX item for this so we can vote as I agree VSS is useless and we've been looking at adding an agent module for this, though to extend it to look at sum, max, avg of RSS for a group of processes, too - we need to sum(rss) for Apache, for example, and do math on the avg(rss).

              Comment

              • barbaros
                Member
                • Aug 2010
                • 32

                #22
                https://support.zabbix.com/browse/ZBXNEXT-1078

                Comment

                Working...