Loading...
 

monitoring

Traffic Graphs for Ethernet switch


apache2


apt-get apache2

cricket


apt-get install cricket
cd /etc/cricket
chmod 754 config
chown -R cricket.www-data /etc/cricket
cp -R /usr/share/doc/cricket/examples/router-interfaces /etc/cricket/config/router-interfaces

vi /etc/cricket/config/switch-ports

cd /etc/cricket/config/router-interfaces
/usr/share/cricket/util/listInterfaces ifdesc descr switch1 > interfaces
chown -R cricket.www-data /etc/cricket
cricket-compile
/usr/share/cricket/collector -logLevel debug /router-interfaces
chown -R cricket.www-data /var/lib/cricket

Documentation:
/usr/share/doc/cricket


drraw


wget
gunzip -c drraw-2.2a4.tar.gz | tar xf -
cd drraw-2.2a4
more INSTALL
cp drraw.* /usr/lib/cgi-bin/
vi /usr/lib/cgi-bin/drraw.cgi
  • insert the correct perl path for debian /usr/bin/perl
1c1
< #! /usr/local/bin/perl -T
---
> #! /usr/bin/perl -T

vi /usr/lib/cgi-bin/drraw.conf
  • Update datadirs, saved_dir, and temp_dir
30,32c30
< %datadirs = ('/here/are/some/files'  => '[Label1] ',
<              '/here/are/other/files' => '[Label2] ',
<             );
---
> %datadirs = ('/var/lib/cricket/switch-ports'  => '[switch-ports] ');
78,79c76,78
< $saved_dir = '/somewhere/drraw/saved';
< $tmp_dir = '/somewhere/drraw/tmp';
---
> $saved_dir = '/var/lib/cricket/drraw/saved';
> $tmp_dir = '/var/lib/cricket/drraw/tmp';
>

mkdir /var/lib/cricket/drraw
mkdir /var/lib/cricket/drraw/saved
mkdir /var/lib/cricket/drraw/tmp
chown -R cricket.www-data /var/lib/cricket/drraw

Complex Example: http://www.managedandmonitored.net/dokuwiki/doku.php?id=drraw:hideously_huge_edit_page




Monitoring CPU, HD, etc


I found a package called collectd that has many plugins and a built in network layer. I think that the network layer can run on both monitored and monitoring systems where the monitoring system can write the values to rrd. I can then integrate this with cricket just like the ethernet switch stats. Hummm.... This might make a great generic sensor network......

The monitored system can use many plugins like lm-sensors and hddtemp to publish sensor data.

collectd
OneWire plugin - Publishes owfs sensor data
lm-sensors plugin
hddtemp plugin
thermal - uses procfs tree for apci measurements
rrdtool plugin

lm-sensors
owfs
hddtemp


Installation Process

Apache2
lm-sensors
hddtemp
rrdtool
collectd
drraw

Contributors to this page: michael .
Page last modified on Thursday 17 of December, 2009 22:54:41 CST by michael.