2007年6月16日土曜日

perl

Perlやらないと。

いんすとーる

snmpの設定はできなかった。

$ svn mkdir svn+ssh://kaz@localhost/home/kaz/svn-repos/snmpd
$ svn co svn+ssh://kaz@localhost/home/kaz/svn-repos/snmpd
$ cp /etc/snmp/snmpd.conf /home/kaz/svn_work/snmpd/
$ svn ci
com2sec mynetwork  192.168.1.0/24  xxxxxxxx
group MyROGroup  any        mynetwork
view all    included  .1
access MyROGroup ""    any    noauth   0    all  none  none
syslocation xxxxxxxx
syscontact Root 
disk / 1000000
disk /home 10000000
load 3 5 5
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat

mrtgの設定は、network, disk, cpuまで。

Target[192.168.1.5_2]: 2:xxxxxxxx@192.168.1.5:
Target[192.168.1.5_disk]: 1.3.6.1.4.1.2021.9.1.9.1&1.3.6.1.4.1.2021.9.1.9.2:xxxxxxxx@192.168.1.5:
Target[192.168.1.5_cpu_use]: 1.3.6.1.4.1.2021.11.50.0&1.3.6.1.4.1.2021.11.52.0:xxxxxxxx@192.168.1.5:

0 件のコメント: