はじめての自宅サーバ構築 - Fedora/CentOS -
Last Update 2018/05/30
[ 更新履歴 ] [ サイト マップ ] [ 質問掲示板 ] [ 雑談掲示板 ] [ リンク ]
トップ >> 質問掲示板

 このスレッドはクローズされています。記事の閲覧のみとなります。

 MRTG エラー
日時: 2007/07/26 19:23
名前: げる

①不明点・障害内容:MRTGの実行すると下記エラーが出ます。

# /usr/local/mrtg/bin/mrtg /usr/local/mrtg/cfg/mrtg.cfg(3回目)
SNMP Error:
Received SNMP response with error code
 error status: noSuchName
 index 1 (OID: 1.3.6.1.2.1.2.2.1.10.1)
SNMPv1_Session (remote host: "192.168.1.3" [192.168.1.3].161)
         community: "public"
         request ID: 199841950
        PDU bufsize: 8000 bytes
          timeout: 2s
          retries: 5
          backoff: 1)
 at /usr/local/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 490
SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName on public@192.168.1.3::::::v4only
 at /usr/local/mrtg/bin/mrtg line 2150
2007-07-26 18:41:56: ERROR: Target[i00][_IN_] '".1.3.6.1.4.1.211.1.127.59.2.11.5.1.3.1":public@192.168.1.2' (warn): Array found where operator expected at (eval 16) line 1, at end of line
2007-07-26 18:41:56: ERROR: Target[i00][_OUT_] '".1.3.6.1.4.1.211.1.127.59.2.11.5.1.3.1":public@192.168.1.2' (warn): Array found where operator expected at (eval 17) line 1, at end of line
2007-07-26 18:41:56: ERROR: Target[i01][_IN_] '.1.3.6.1.4.1.211.1.127.59.2.11.5.1.3. $target->[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.) or string at (eval 4168) line 1.
2007-07-26 18:41:56: ERROR: Target[i01][_OUT_] '.1.3.6.1.4.1.211.1.127.59.2.11.5.1.3. $target->[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.) or string at (eval 4169) line 1.

設定ファイル
# vi mrtg.cfg

# Created by
# /usr/local/mrtg/bin/cfgmaker public@192.168.1.2 public@192
.168.1.3

### Global Config Options

# for UNIX
WorkDir: /usr/local/apache/htdocs/ipcom

# Created by
# /usr/local/mrtg/bin/cfgmaker public@192.168.1.2 public@192
.168.1.3

### Global Config Options

# for UNIX
WorkDir: /usr/local/apache/htdocs/ipcom

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the ri
ght
#Options[_]: growright, bits

EnableIPv6: no
Language: eucjp

Target[i00]: .1.3.6.1.4.1.211.1.127.59.2.11.5.1.3.1:public@192.168.1.2
Directory[i00]: cpu
MaxBytes[i00]: 100
WithPeak[i00]: dwmy
Options[i00]: gauge, absolute, growright, noinfo, noperc
ent
YLegend[i00]: Loadaverage (%)
LegendI[i00]: 1分間平均
LegendO[i00]: 5分間平均
ShortLegend[ipcom00]: %
Unscaled[ipcom00]: dwmy
Title[i00]: CPU使用率
PageTop[i00]: <h1>CPU使用率</h1>

Target[i01]: .1.3.6.1.4.1.211.1.127.59.2.11.5.1.3.1:public@192.168.1.3
Directory[i01]: cpu
MaxBytes[i01]: 100
WithPeak[i01]: dwmy
Options[i01]: gauge, absolute, growright, noinfo, noperc
ent
YLegend[i01]: Loadaverage (%)
LegendI[i01]: 1分間平均
LegendO[i01]: 5分間平均
ShortLegend[i01]: %
Unscaled[i01]: dwmy
Title[i01]: CPU使用率
PageTop[i01]: <h1>CPU使用率</h1 mrtg.cfg>

snmpwalkコマンドで、情報は取得できています。
どなたかご教授ください。
よろしくお願いいたします。
メンテ

Page:  [1]

■ コンテンツ関連情報

 Re: MRTG エラー ( No.1 )
日時: 2007/07/26 21:16
名前: タマ

>.1.3.6.1.4.1.211.1.127.59.2.11.5.1.3.1
このOIDって何?

ここが示すMIBツリーの値が取れないだけなんじゃないですか?

>snmpwalkコマンドで、情報は取得できています。
このときのツリー名って何でしたか?
メンテ

Page:  [1]

■ その他

ページ先頭へ

Copyright(©)2004-2018 First home server construction. All Right Reserved.