Jnos snmpd

Autoexec.nos

start snmpd
snmp ro pd9q 192.168.79.

sudo apt-get install mrtg
mkdir /var/www/html/mrtg/jnos
cd /var/www/html/mrtg/jnos
sudo nano mrtg.cfg

Mrtg.cfg

#
WorkDir: /var/www/html/mrtg/jnos
#
options[_]: noinfo,nobanner,growright,logscale
XSize[_]: 300
YSize[_]: 100
#
EnableIPv6: no
NoMib2: yes
#
# JNOS tun0 (3) interface
#
Target[tun0]: 3:pd9q@192.168.79.110:
MaxBytes[tun0]: 1000000
PNGTitle[tun0]: Internet and some LAN traffic
Title[tun0]: tun0
#
# JNOS axu0 (2) interface
#
Target[axu0]: 2:pd9q@192.168.79.110:
MaxBytes[axu0]: 1000000
PNGTitle[axu0]: axu0
Title[axu0]: axu0
#
# JNOS hf (1) interface
#
Target[ax0]: 1:pd9q@192.168.79.110:
MaxBytes[ax0]: 50
PNGTitle[ax0]: 144.850Mhz @ 1200 Baud
Title[ax0]: ax0
#
# JNOS netrom (0) interface
#
Target[netrom]: 0:pd9q@192.168.79.110:
MaxBytes[netrom]: 50
PNGTitle[netrom]: Netrom (excluding RIF frames)
Title[netrom]: netrom
#
sudo indexmaker --output index.html -section=title --show=day --columns=1 mrtg.cfg

sudo nano /etc/cron.d/mrtg

*/5 *   * * *   root    if [ -x /usr/bin/mrtg ] && [ -r /var/www/html/mrtg/jnos/mrtg.cfg ] && [ -d "$(grep '^[[:space:]]*[^#]*[[:space:]]*W$

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.