Updated on 18 Jan, 2006 by SuSE 10.0
Multi Router Traffic Grapher|
# |
|
gw(config)#snmp-server community public RO |
|
# snmpwalk -v 1 192.168.1.100 -c public | less |
|
# rpm -ihv mrtg-2.12.2-2.i586.rpm |
|
# mkdir /srv/www/htdocs/mrtg |
|
#!/bin/bash |
|
#!/bin/bash |
|
... |
|
Order deny,allow |
|
# This section creates CPU Load monitoring |
|
#!/usr/bin/perl |
|
# chmod 755 df.pl |
|
service df |
|
df 9047/tcp # df |
|
# /etc/init.d/xinetd restart |
|
# /usr/bin/netcat localhost df |
|
# Disk usage monitoring |
|
#!/usr/bin/perl |
|
# chmod 755 memory.pl |
|
service memory |
|
memory 9057/tcp # memory |
|
# /etc/init.d/xinetd restart |
|
# /usr/bin/netcat localhost memory |
|
# Memory usage monitoring |
|
#!/usr/bin/perl |
|
# chmod 755 swap.pl |
|
service swap |
|
swap 9058/tcp # swap |
|
# /etc/init.d/xinetd restart |
|
# /usr/bin/netcat localhost swap |
|
# Swap usage monitoring |
|
# rpm -ihv mtr-0.69-4.i586.rpm |
|
#!/usr/bin/perl |
|
# chmod 755 ping.pl |
|
# Network Availability |
Copyright © [- SroNey / JohN -]. All rights reserved