Differences between revisions 21 and 22
Revision 21 as of 2007-01-17 15:05:42
Size: 2479
Comment: clarifications
Revision 22 as of 2007-01-20 17:30:15
Size: 2438
Comment: update todo
Deletions are marked like this. Additions are marked like this.
Line 73: Line 73:
 * Figure out why we are getting SNMP errors (Russell's doing?)
 * Enter remaining devices
 * Fancy graphs (uptime and combined associations)

Status

chevy is running Cacti, and monitoring all of the deployed metrixes and ciscos. The graphs are available at

Use username: guest, password: freewifirocks.

Management interface at https://chevy.personaltelco.net/cacti/

Set up

Metrix

Basic install of the latest version:

metrix# remountrw
metrix# useradd snmp
metrix# cd /
metrix# wget -O - http://chevy.personaltelco.net/snmpd.tar.bz2 | tar xvjf -
metrix# remountro
metrix# /etc/init.d/snmpd restart

If this is the first time snmpd has been installed, you also need to do:

metrix# cd /var/lib
metrix# cp -a snmp/ /ro/var/lib
metrix# mv snmp/ /rw/var/lib
metrix# ln -s /rw/var/lib/snmp/ .

Get snmpd and assoc_count from another metrix, or from the wiki below...

naya$ scp snmpd.conf root@metrix-ed.mississippi:/etc/snmp
naya$ scp assoc_count root@metrix-ed.mississippi:/usr/local/bin

Then, finish up by:

  • Add the device to Cacti with the Metrix Box template.
  • Create the Associated Stations, ath0, ath1...athN graphs.
  • Add the device to the main graph tree.
  • Add the Assoc. STAs graph to the Assoc STAs page.

WGTs

The WGTs are using the ipkg repository

http://www.personaltelco.net/~russell/kamikaze/r3291/packages/

and have the snmpd package (with its dependencies) installed. They use the same snmpd.conf and assoc_count script as the metrixes, so they look pretty much the same to cacti.

Diagnostics

/usr/local/bin/assoc_count is a homebrew script. It reports the number of associations on ath0. It only works with madwifi-ng. snmpd.conf has the line

exec assoc_count /usr/local/bin/assoc_count

to enable it. This exports the association count on OID 1.3.6.1.4.1.2021.8.1.101.1. Note that this OID is the standard for external exec'ed scripts and a second exec would use the same OID, except ending with a .2. Other than that, everything is standard net-snmp exports. The assoc_count script, is quite simple, it looks like:

echo $((`wc -l < /proc/net/madwifi/ath0/associated_sta`/3))

You can check that this is working remotely like:

snmpget -c public -v 1 10.11.104.10 1.3.6.1.4.1.2021.8.1.101.1

TODO

  • Fancy graphs (uptime and combined associations)
  • A (remote) backup strategy for mysql tables

MississippiMonitoring (last edited 2007-11-23 18:02:36 by localhost)