Professional Documents
Culture Documents
[ OK ]
[ OK ]
[ OK ]
[ OK ]
[ OK ]
[ OK ]
# Third, create a view for us to let the group have rights to:
# Make at least snmpwalk -v 1 localhost -c public system fast again.
#
name
incl/excl subtree
mask(optional)
#view systemview included .1.3.6.1.2.1.1
#view systemview included .1.3.6.1.2.1.25.1.1
view all include .1 80
####
# Finally, grant the group read-only access to the systemview view.
#
group
context sec.model sec.level prefix read write notif
#access notConfigGroup "" any
noauth exact systemview none none
access switch1 "" any
noauth exact all all none
**********************************************************************
(7) [root@test ~]# snmpwalk -v 2c -c jiit 172.16.120.65 IP-MIB::ipAdEntIfIndex
IP-MIB::ipAdEntIfIndex.172.16.120.65 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.172.16.124.1 = INTEGER: 10
IP-MIB::ipAdEntIfIndex.172.16.128.1 = INTEGER: 20
IP-MIB::ipAdEntIfIndex.172.16.132.1 = INTEGER: 30
IP-MIB::ipAdEntIfIndex.172.16.136.1 = INTEGER: 40
IP-MIB::ipAdEntIfIndex.172.16.140.1 = INTEGER: 50
IP-MIB::ipAdEntIfIndex.172.16.144.1 = INTEGER: 60
IP-MIB::ipAdEntIfIndex.172.16.148.1 = INTEGER: 70
IP-MIB::ipAdEntIfIndex.172.16.152.1 = INTEGER: 80
IP-MIB::ipAdEntIfIndex.172.16.156.1 = INTEGER: 90
IP-MIB::ipAdEntIfIndex.172.16.160.1 = INTEGER: 100
IP-MIB::ipAdEntIfIndex.172.16.164.1 = INTEGER: 110
IP-MIB::ipAdEntIfIndex.172.16.168.1 = INTEGER: 120
Configure MRTG
CFGMAKER COMMAND TO CREATES /ETC/MRTG/MRTG.CFG FILE
(8)[root@test ~]# cfgmaker --global 'WorkDir: /var/www/mrtg' --output /etc/mrtg/mrtg.cfg
jiit@172.16.120.65
INDEXMAKER TO CREATE WEB PAGES WHICH DISPLAY THE STATUS OF AN ARRAY OF MRTG
(9)[root@test ~]# indexmaker --output=/var/www/mrtg/index.html /etc/mrtg/mrtg.cfg
(10)[root@test ~]# cat /etc/cron.d/mrtg
*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l
--confcache-file /var/lib/mrtg/mrtg.ok