Differences between revisions 7 and 13 (spanning 6 versions)
Revision 7 as of 2006-01-07 00:33:04
Size: 1473
Comment: Cleanup
Revision 13 as of 2007-01-12 12:50:08
Size: 2028
Comment: add guts of assoc_count script
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
{{{mississippi}}} is running Cacti, and monitoring all of the deployed metrixes and ciscos. The graphs are available at http://buick.personaltelco.net/cacti/graph_view.php {{{chevy}}} is running Cacti, and monitoring all of the deployed metrixes and ciscos. The graphs are available at http://chevy.personaltelco.net/cacti/graph_view.php

Management interface at (self-signed cert, CN=baker.personaltelco.net needs to be updated to PTP-signed, CN=chevy.personaltelco.net)
https://chevy.personaltelco.net/cacti/
Line 5: Line 8:

== Metrix ==
Line 16: Line 22:
mississippi$ scp snmpd.conf root@metrix-ed.mississippi:/etc/snmp
mississippi$ scp assoc_count root@metrix-ed.mississippi:/usr/local/bin
naya$ scp snmpd.conf root@metrix-ed.mississippi:/etc/snmp
naya$ scp assoc_count root@metrix-ed.mississippi:/usr/local/bin
Line 28: Line 34:
== 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.
Line 33: Line 47:
to enable it. This exports the association count on OID {{{1.3.6.1.4.1.2021.8.1.101.1}}}. Other than that, everything is standard net-snmp exports. to enable it. This exports the association count on OID {{{1.3.6.1.4.1.2021.8.1.101.1}}}. Other than that, everything is standard net-snmp exports. The assoc_count script, is quite simple, it looks like:
{{{
#!/bin/ash
echo $((`wc -l < /proc/net/madwifi/ath0/associated_sta`/3))
}}}
Line 36: Line 54:
 * These need SVN access, so I can edit httpd.conf and snmpd.conf
  * Fix the kludge on httpd.conf I did.
  * Fix the similar kludge on snmpd.conf
 * Get a PTP signed cert for chevy, so we don't warnings on https.

Status

chevy is running Cacti, and monitoring all of the deployed metrixes and ciscos. The graphs are available at http://chevy.personaltelco.net/cacti/graph_view.php

Management interface at (self-signed cert, CN=baker.personaltelco.net needs to be updated to PTP-signed, CN=chevy.personaltelco.net) https://chevy.personaltelco.net/cacti/

Set up

Metrix

To set up a metrix box for monitoring:

metrix# remountrw
metrix# apt-get install snmpd ash
metrix# vi /etc/default/snmpd # set TRAPDRUN=no
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
naya$ scp snmpd.conf root@metrix-ed.mississippi:/etc/snmp
naya$ scp assoc_count root@metrix-ed.mississippi:/usr/local/bin

metrix# /etc/init.d/snmpd restart
metrix# remountro
  • 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. 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))

TODO

  • Get a PTP signed cert for chevy, so we don't warnings on https.

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