(PM) MRTG Modem Traffic

Alan L. Wendt (alan@ezlink.com)
Fri, 7 Nov 1997 05:54:22 -0700

ftp://ftp.ezlink.com/pub/software/linux/mrtg_modems

Description:

This is a kit to install mrtg and code to monitor the amount
of traffic through individual modems on a Livingston PM2.
It uses mrtg, but instead of snmp calls which only monitor
transient interfaces, it uses expect to telnet into the PM2
and do "show all" to get serial port statistics.

It includes the following:

* The distributed source in usr/src/network/snmp/mrtg-2.4.1.

* A cron script in usr/spool/cron/crontabs/root.

* Local mods to mrtg and some additional scripts and config files in
usr/local/adm. Primarily, provisions in the mrtg Perl script
and configuration language for writing several different graphs
into one html file, an expect script to talk to the PM2, a shell
script to help construct the .cfg file.

Installation:

Install expect and perl.
Copy this hierarachy into position and
cat usr/spool/cron/crontabs/root.new >> usr/spool/cron/crontabs.root
Make local mods to usr/local/adm/get-pm-stats.exp,
usr/local/adm/get-modem-bytes,
usr/local/adm/get-interface-kbytes,
usr/local/adm/get-user-count, and usr/local/adm/make_cfg.
Run /usr/local/adm/make_cfg to generate mrtg.cfg entries
for your modems.
cd to /usr/local/adm and run 'mrtg mrtg.cfg' by hand a couple of times
to verify operation.

Author:
Alan Wendt (alan@ezlink.com)
EZLink Internet Access and the authors of
expect, mrtg, Linux, COMOS, etc.

-
To unsubscribe, email 'majordomo@livingston.com' with
'unsubscribe portmaster-users' in the body of the message.