Menu
Index

Contact
LinkedIn
GitHub
Atom Feed
Comments Atom Feed

Similar Articles

2009-10-31 14:46
SMART stats on Cacti (via SNMP)
2009-10-31 11:03
Linux (Debian, Ubuntu) SNMP basics
2012-04-26 16:59
MySQL Performance Graphs on Cacti via SNMP
2012-10-16 20:07
iostat on Cacti via SNMP
2012-10-16 19:23
vmstat on Cacti via SNMP

Recent Articles

2018-05-15 16:48
Raspberry Pi Camera, IR Lights and more
2017-04-23 14:21
Raspberry Pi SD Card Test
2017-04-07 10:54
DNS Firewall (blackhole malicious, like Pi-hole) with bind9
2017-03-28 13:07
Kubernetes to learn Part 4
2017-03-23 16:09
Kubernetes to learn Part 3

Glen Pitt-Pladdy :: Blog

Detailed process statistics on Cacti via SNMP (processes+)

Standard SNMP provides statistics on processes, but what is very useful is to know the process state. These can give valuable diagnostic information such as an IO problem resulting in many processes in Uninterruptible Sleep, or a bug resulting in many Zombie processes.

This is a tiny snmpd extension with Cacti graph to do just that - effectively an enhanced version of the standard processes graph.

ps to SNMP

This is based on my SNMP Basics article with a simple snmpd extension script:

Download: processes+ extension script and Cacti Template are on GitHub

Place the script procs-stats in a suitable place (eg. /etc/snmp) and add the following config to your /etc/snmp/snmpd.conf, restarting snmpd after:

extend procs    /etc/snmp/procs-stats

SNMP to Cacti

At this point your Cacti host definition needs to be working for SNMP and you should be able to simply import the template cacti_host_template_processes.xml and add the graph.

What it looks like

detailed process statistics on Cacti

Comments:

voytek Image  2013-10-30 00:58 :: voytek

Glen,

many thanks for this addition to the cacti toolbox (but what does the 'm' mean?)

my VPS is currently suffering from 'iowait' issues on shared storage, any tips how to chart that

thanks for any tips

Glen Pitt-Pladdy Image  2013-10-30 07:10 :: Glen Pitt-Pladdy

m = milli (1/1000)

Cacti uses a relevant multiplier to bring the numbers into a useful, readable range so 0.937 becomes 937 m

This does seem a source of confusion with Cacti and some templates I've seen (eg. ping templates) ship data in say milliseconds and then for <1ms pings you get milli-milliseconds....




Note: Identity details will be stored in a cookie. Posts may not appear immediately