net-snmpd インストール手順(RedHatLinux) | Since: | 2003.11.22 | |
Last: | 2004.03.10 | ||
■環境情報 | |
OS: | Redhat Linux 7.3 |
net-snmpd: | 5.0.8 |
■入手先 | |
net-snmpd 配布元: | http://net-snmp.sourceforge.net/ |
■インストール手順 | |
以下の手順にてnet-snmpdのインストールを行う。 |
tar xfvz net-snmp-5.0.8.tar.gz cd net-snmp-5.0.8 ./configure |
configureを実行すると以下の項目が質問される。 |
--------------------------------------- ************** Configuration Section ************** -Press return to continue- 設定セクションの開始 --------------------------------------- *** Default SNMP Version: Default version of SNMP to use (3): 初期状態で使用するSNMPのバージョンを指定[選択肢:1・2c・3] --------------------------------------- *** System Contact Information: System Contact Information (root@): システム管理者の連絡先を設定 --------------------------------------- *** System Location: System Location (Unknown): システムの設置場所情報を入力 --------------------------------------- *** Logfile location: Location to write logfile (/var/log/snmpd.log): ログファイルの出力先とログファイル名を指定 --------------------------------------- *** snmpd persistent storage location: Location to write persistent information (/var/net-snmp): snmpdが保持する管理情報の保管場所を設定 --------------------------------------- |
configureの完了後、コンパイルする。 |
make make install |
自動起動の設定を行う |
cp ./dist/snmpd-init.d /etc/rc.d/init.d/snmpd cd /etc/rc.d/rc3.d/ ln -s ../init.d/snmpd S91snmpd cd ../rc5.d/ ln -s ../init.d/snmpd S91snmpd |
■設定ファイル作成 | |
標準添付のEXAMPLE.confを所定位置に移動させる。 設定内容は「net-snmpd基礎設定手順」参照。 |
cp /usr/local/src/net-snmp-5.0.8/EXAMPLE.conf /usr/local/share/snmp/snmpd.conf |
戻る |