Menu
Index

Contact
LinkedIn
GitHub
Atom Feed
Comments Atom Feed



Tweet

Similar Articles

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

Recent Articles

23/04/2017 14:21
Raspberry Pi SD Card Test
07/04/2017 10:54
DNS Firewall (blackhole malicious, like Pi-hole) with bind9
28/03/2017 13:07
Kubernetes to learn Part 4
23/03/2017 16:09
Kubernetes to learn Part 3
21/03/2017 15:18
Kubernetes to learn Part 2

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  30/10/2013 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  30/10/2013 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....




Are you human? (reduces spam)
Note: Identity details will be stored in a cookie. Posts may not appear immediately