Glen Pitt-Pladdy :: BlogDetailed 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 SNMPThis 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 CactiAt 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 |
|||
Disclaimer: This is a load of random thoughts, ideas and other nonsense and is not intended to be taken seriously. I have no idea what I am doing with most of this so if you are stupid and naive enough to believe any of it, it is your own fault and you can live with the consequences. More importantly this blog may contain substances such as humor which have not yet been approved for human (or machine) consumption and could seriously damage your health if taken seriously. If you still feel the need to litigate (or whatever other legal nonsense people have dreamed up now), then please address all complaints and other stupidity to yourself as you clearly "don't get it".
Copyright Glen Pitt-Pladdy 2008-2023
|
Comments:
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
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....