◆cacti構築
トラフィックとかリソース使用量をグラフで表示してくれます
xoopsと一緒でapache+phpとmysqlを使用するのですが、
xoopsと共存させても問題ないかわからずそのまま構築。
[root@localhost ~]# yum -y install net-snmp-utils
Loaded plugins: downloadonly, fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: ftp.riken.jp
* updates: ftp.riken.jp
fedora | 2.8 kB 00:00
updates | 3.4 kB 00:00
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package net-snmp-utils.i386 1:5.4.2.1-4.fc10 set to be updated
--> Processing Dependency: net-snmp-libs = 1:5.4.2.1-4.fc10 for package: 1:net-snmp-utils-5.4.2.1-4.fc10.i386
--> Running transaction check
--> Processing Dependency: net-snmp-libs = 1:5.4.2.1-3.fc10 for package: 1:net-snmp-5.4.2.1-3.fc10.i386
---> Package net-snmp-libs.i386 1:5.4.2.1-4.fc10 set to be updated
--> Running transaction check
---> Package net-snmp.i386 1:5.4.2.1-4.fc10 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================
Package Arch Version Repository Size
=========================================================================================
Installing:
net-snmp-utils i386 1:5.4.2.1-4.fc10 updates 170 k
Updating for dependencies:
net-snmp i386 1:5.4.2.1-4.fc10 updates 302 k
net-snmp-libs i386 1:5.4.2.1-4.fc10 updates 1.5 M
Transaction Summary
=========================================================================================
Install 1 Package(s)
Update 2 Package(s)
Remove 0 Package(s)
Total download size: 1.9 M
Downloading Packages:
(1/3): net-snmp-5.4.2.1-4.fc10.i386.rpm | 302 kB 00:01
(2/3): net-snmp-libs-5.4.2.1-4.fc10.i386.rpm | 1.5 MB --:--
(3/3): net-snmp-utils-5.4.2.1-4.fc10.i386.rpm | 170 kB 00:00
-----------------------------------------------------------------------------------------
Total -243585.9 B/s | 1.9 MB --:--
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : 1:net-snmp-libs-5.4.2.1-4.fc10.i386 1/5
Installing : 1:net-snmp-utils-5.4.2.1-4.fc10.i386 2/5
Updating : 1:net-snmp-5.4.2.1-4.fc10.i386 3/5
Cleanup : 1:net-snmp-5.4.2.1-3.fc10.i386 4/5
Cleanup : 1:net-snmp-libs-5.4.2.1-3.fc10.i386 5/5
Installed:
net-snmp-utils.i386 1:5.4.2.1-4.fc10
Dependency Updated:
net-snmp.i386 1:5.4.2.1-4.fc10 net-snmp-libs.i386 1:5.4.2.1-4.fc10
Complete!
[root@localhost ~]# yum -y install net-snmp
Loaded plugins: downloadonly, fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: ftp.riken.jp
* updates: ftp.riken.jp
Setting up Install Process
Package 1:net-snmp-5.4.2.1-4.fc10.i386 already installed and latest version
Nothing to do
[root@localhost ~]# cp -p /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org
[root@localhost ~]# vi /etc/snmp/snmpd.conf
変更箇所
[root@localhost ~]# diff /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org
41,43c41
< #com2sec notConfigUser default public
< com2sec local localhost private
< com2sec mynetwork 192.168.11.0/24 public
---
> com2sec notConfigUser default public
49,54c47,48
< #group notConfigGroup v1 notConfigUser
< #group notConfigGroup v2c notConfigUser
< group MyROGroup v1 local
< group MyROGroup v2c local
< group MyROGroup v1 mynetwork
< group MyROGroup v2c mynetwork
---
> group notConfigGroup v1 notConfigUser
> group notConfigGroup v2c notConfigUser
61,63c55,56
< #view systemview included .1.3.6.1.2.1.1
< #view systemview included .1.3.6.1.2.1.25.1.1
< view all included .1 80
---
> view systemview included .1.3.6.1.2.1.1
> view systemview included .1.3.6.1.2.1.25.1.1
69,71c62
< #access notConfigGroup "" any noauth exact systemview none none
< access MyROGroup "" any noauth exact all none none
< access MyRWGroup "" any noauth exact all all none
---
> access notConfigGroup "" any noauth exact systemview none none
323d313
< disk / 10000
[root@localhost ~]# /etc/rc.d/init.d/snmpd start
snmpd を起動中: [ OK ]
[root@localhost ~]# chkconfig snmpd on
[root@localhost ~]# chkconfig --list snmpd
snmpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@localhost ~]# yum -y install rrdtool
Loaded plugins: downloadonly, fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: ftp.riken.jp
* updates: ftp.riken.jp
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package rrdtool.i386 0:1.3.8-1.fc10 set to be updated
--> Processing Dependency: dejavu-lgc-fonts for package: rrdtool-1.3.8-1.fc10.i386
--> Running transaction check
---> Package dejavu-lgc-fonts.noarch 0:2.26-2.fc10 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================
Package Arch Version Repository Size
=========================================================================================
Installing:
rrdtool i386 1.3.8-1.fc10 updates 397 k
Installing for dependencies:
dejavu-lgc-fonts noarch 2.26-2.fc10 fedora 3.5 M
Transaction Summary
=========================================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 3.9 M
Downloading Packages:
(1/2): dejavu-lgc-fonts-2.26-2.fc10.noarch.rpm | 3.5 MB 00:18
(2/2): rrdtool-1.3.8-1.fc10.i386.rpm | 397 kB 00:02
-----------------------------------------------------------------------------------------
Total 181 kB/s | 3.9 MB 00:22
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : dejavu-lgc-fonts-2.26-2.fc10.noarch 1/2
Installing : rrdtool-1.3.8-1.fc10.i386 2/2
Installed:
rrdtool.i386 0:1.3.8-1.fc10
Dependency Installed:
dejavu-lgc-fonts.noarch 0:2.26-2.fc10
Complete!
とりあえずrrdtoolを入れたところまでです。
これからもう少しがんばります。