Tuesday, January 17, 2006

note

on snmpd.conf:

###############################
Syslocation kodjoe
syscontact aat@sipanggaron.com
rocommunity lappet
###############################

save it :

and from shell restart snpd,

[root@sahat root]# /etc/init.d/snmpd restart
-
cfgmaker lappet@192.168.0.1 > mrtg.cfg(set the directory)
edit mrtg.cfg
and change WorkDir
to a place where you want the graphs saved
make sure the user running MRTG has write access to that directory

run this: mrtg mrtg.cfg

next step is optional:

[root@sahat root]# mrtg /etc/mrtg/mrtg.cfg (if u take the mrtg.cfg on this)
[root@sahat root]# cd /var/www/html/mrtg
[root@sahat mrtg]# mv index.html index.html.old
[root@sahat mrtg]# ln -s r1.html index.html

No comments: