Package funkload :: Module Monitor
[hide private]
[frames] | no frames]

Module Monitor

source code

A Linux monitor server/controller.

$Id: Monitor.py 53544 2009-03-09 16:28:58Z tlazar $

Classes [hide private]
  MonitorInfo
A simple class to collect info.
  MonitorThread
The monitor thread that collect information.
  MonitorServer
The XML RPC monitor server.
  MonitorController
Monitor controller.
Functions [hide private]
 
read_load_info()
Read the current system load from /proc/loadavg.
source code
 
read_cpu_usage()
Read the current system cpu usage from /proc/stat.
source code
 
read_mem_info(kernel_rev)
Read the current status of memory from /proc/meminfo.
source code
 
read_net_info(interface='eth0')
Read the stats from an interface.
source code
 
main()
Control monitord server.
source code
 
test()
Test wihtout rpc server.
source code