freebsd-skq/usr.sbin/bsnmpd/modules/snmp_hostres
Ulrich Spörlein ac203a768d Fix CPU load reporting independent of scheduler used.
- Sample CPU usage data from kern.cp_times, this makes for a far more
  accurate and scheduler independent algorithm.
- Rip out the process list scraping that is no longer required.
- Don't update CPU usage sampling on every request, but every 15s
  instead. This makes it impossible for an attacker to hide the CPU load
  by triggering 4 samplings in short succession when the system is idle.
- After reaching the steady-state, the system will always report the
  average CPU load of the last 60 sampled seconds.
- Untangling of call graph.

PR:		kern/130222
Tested by:	Julian Dunn <jdunn@aquezada.com>
		Gustau Pérez <gperez@entel.upc.edu>
		Jürgen Weiß <weiss@uni-mainz.de>
MFC after:	2 weeks

I'm unsure if some MIB standard states this must be the load average
for, eg. 300s, it looks like net-snmp isn't even bothering to implement
the CPU load reporting at all.
2010-10-28 20:18:26 +00:00
..
BEGEMOT-HOSTRES-MIB.txt
hostres_begemot.c
hostres_device_tbl.c Collapse devinfo_state_t with device_state_t in order to avoid a 2009-11-15 16:44:43 +00:00
hostres_diskstorage_tbl.c Make failed open of /dev/mdctl in the bsnmpd hostres module non-fatal. 2010-07-24 10:04:35 +00:00
hostres_fs_tbl.c
hostres_network_tbl.c
hostres_partition_tbl.c
hostres_printer_tbl.c
hostres_processor_tbl.c Fix CPU load reporting independent of scheduler used. 2010-10-28 20:18:26 +00:00
hostres_scalars.c Port all applications in usr.sbin/ from libulog to utmpx. 2010-01-13 18:17:53 +00:00
hostres_snmp.c Let the snmp_hostres module use utmpx. 2009-12-24 17:55:47 +00:00
hostres_snmp.h
hostres_storage_tbl.c
hostres_swinstalled_tbl.c
hostres_swrun_tbl.c
hostres_tree.def
Makefile Port all applications in usr.sbin/ from libulog to utmpx. 2010-01-13 18:17:53 +00:00
snmp_hostres.3 mdoc: consistently spell our email addresses <foo@FreeBSD.org> 2010-05-19 08:57:53 +00:00