Статистика с CGP при помощи MRTG...

От: Alexander Anisimov <CGatePro_at_mx_ru>
Дата: Tue 01 May 2007 - 19:47:16 MSD


Здравствуйте!

Решил согласно этого руководства http://www.stalker.com/CGMRTG/ с cgp всякую красивую статистику посмотреть в виде графиков. Все сделал, как там написано. Но на самих графиках ничего нет. Т.е. везде нулевые значения. И такие ошибки постоянно лезут:

SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.4.1.5678.2.1.1.1.2.10.0)

SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "superpublic"
                 request ID: 51592947
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490 SNMPGET Problem for 1.3.6.1.4.1.5678.2.1.1.1.1.10.0
.1.3.6.1.4.1.5678.2.1.1.1.2.10.0 sysUptime sysName on
superpublic@localhost::::::v4only
 at /usr/bin/mrtg line 1922
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.4.1.5678.2.1.1.1.2.11.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "superpublic"
                 request ID: 51592948
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490 SNMPGET Problem for 1.3.6.1.4.1.5678.2.1.1.1.1.11.0
.1.3.6.1.4.1.5678.2.1.1.1.2.11.0 sysUptime sysName on
superpublic@localhost::::::v4only
 at /usr/bin/mrtg line 1922
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.4.1.5678.2.1.1.1.2.1.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "superpublic"
                 request ID: 51592949
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490 SNMPGET Problem for 1.3.6.1.4.1.5678.2.1.1.1.1.1.0
.1.3.6.1.4.1.5678.2.1.1.1.2.1.0 sysUptime sysName on
superpublic@localhost::::::v4only
 at /usr/bin/mrtg line 1922
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.4.1.5678.2.1.1.1.2.3.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "superpublic"
                 request ID: 51592950
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490 SNMPGET Problem for 1.3.6.1.4.1.5678.2.1.1.1.1.3.0
.1.3.6.1.4.1.5678.2.1.1.1.2.3.0 sysUptime sysName on
superpublic@localhost::::::v4only
 at /usr/bin/mrtg line 1922
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.4.1.5678.2.1.1.4.12.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "superpublic"
                 request ID: 51592951
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490 SNMPGET Problem for 1.3.6.1.4.1.5678.2.1.1.3.10.0
.1.3.6.1.4.1.5678.2.1.1.4.12.0 sysUptime sysName on
superpublic@localhost::::::v4only
 at /usr/bin/mrtg line 1922
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.4.1.5678.2.1.1.3.14.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "superpublic"
                 request ID: 51592952
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490 SNMPGET Problem for 1.3.6.1.4.1.5678.2.1.1.3.14.0
.1.3.6.1.4.1.5678.2.1.1.3.14.0 sysUptime sysName on
superpublic@localhost::::::v4only
 at /usr/bin/mrtg line 1922
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.4.1.5678.2.1.1.4.1.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "superpublic"
                 request ID: 51592953
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490 SNMPGET Problem for 1.3.6.1.4.1.5678.2.1.1.3.1.0
.1.3.6.1.4.1.5678.2.1.1.4.1.0 sysUptime sysName on
superpublic@localhost::::::v4only
 at /usr/bin/mrtg line 1922
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.4.1.5678.2.1.2.6.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "superpublic"
                 request ID: 51592954
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490 SNMPGET Problem for 1.3.6.1.4.1.5678.2.1.2.1.0 .1.3.6.1.4.1.5678.2.1.2.6.0 sysUptime sysName on superpublic@localhost::::::v4only  at /usr/bin/mrtg line 1922
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.4.1.5678.2.1.2.3.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "superpublic"
                 request ID: 51592955
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490 SNMPGET Problem for 1.3.6.1.4.1.5678.2.1.2.3.0 .1.3.6.1.4.1.5678.2.1.2.3.0 sysUptime sysName on superpublic@localhost::::::v4only  at /usr/bin/mrtg line 1922
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.4.1.5678.2.1.2.20.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "superpublic"
                 request ID: 51592956
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490 SNMPGET Problem for 1.3.6.1.4.1.5678.2.1.2.22.0 .1.3.6.1.4.1.5678.2.1.2.20.0 sysUptime sysName on superpublic@localhost::::::v4only  at /usr/bin/mrtg line 1922
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.4.1.5678.2.1.4.2.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "superpublic"
                 request ID: 51592957
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)

 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490 SNMPGET Problem for 1.3.6.1.4.1.5678.2.1.3.1.0 .1.3.6.1.4.1.5678.2.1.4.2.0 sysUptime sysName on superpublic@localhost::::::v4only  at /usr/bin/mrtg line 1922
ERROR: Target[smtp-messages][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
ERROR: Target[smtp-messages][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
ERROR: Target[smtp-bytes][_IN_] ' $target->[1]{$mode} ' did not eval into defined data
ERROR: Target[smtp-bytes][_OUT_] ' $target->[1]{$mode} ' did not eval into defined data
ERROR: Target[smtp-active][_IN_] ' $target->[2]{$mode} ' did not eval into defined data
ERROR: Target[smtp-active][_OUT_] ' $target->[2]{$mode} ' did not eval into defined data
ERROR: Target[smtp-jobs][_IN_] ' $target->[3]{$mode} ' did not eval into defined data
ERROR: Target[smtp-jobs][_OUT_] ' $target->[3]{$mode} ' did not eval into defined data
ERROR: Target[pop-messages][_IN_] ' $target->[4]{$mode} ' did not eval into defined data
ERROR: Target[pop-messages][_OUT_] ' $target->[4]{$mode} ' did not eval into defined data
ERROR: Target[pop-bytes][_IN_] ' $target->[5]{$mode} ' did not eval into defined data
ERROR: Target[pop-bytes][_OUT_] ' $target->[5]{$mode} ' did not eval into defined data
ERROR: Target[pop-jobs][_IN_] ' $target->[6]{$mode} ' did not eval into defined data
ERROR: Target[pop-jobs][_OUT_] ' $target->[6]{$mode} ' did not eval into defined data
ERROR: Target[queued-messages][_IN_] ' $target->[7]{$mode} ' did not eval into defined data
ERROR: Target[queued-messages][_OUT_] ' $target->[7]{$mode} ' did not eval into defined data
ERROR: Target[submitted-messages][_IN_] ' $target->[8]{$mode} ' did not eval into defined data
ERROR: Target[submitted-messages][_OUT_] ' $target->[8]{$mode} ' did not eval into defined data
ERROR: Target[delivered-messages][_IN_] ' $target->[9]{$mode} ' did not eval into defined data
ERROR: Target[delivered-messages][_OUT_] ' $target->[9]{$mode} ' did not eval into defined data
ERROR: Target[web-open][_IN_] ' $target->[10]{$mode} ' did not eval into defined data
ERROR: Target[web-open][_OUT_] ' $target->[10]{$mode} ' did not eval into defined data

Само snmp работает нормально. Т.к. к примеру мониторинг cacti по snmp работает прекрасно.
Пароль snmp, rocommunity - superpublic.
В файле mrtg.cfg все эти записи <community>@<ip> я заменил на superpublic@localhost
И в настройках cgp. Установки--->Услуги--->SNMP я там везде задал пароль superpublic.

Что еще попытался сделать... Взял отсуда http://local.lan:8010/CGatePro-MIB.txt файлик и поместил его сюда /usr/share/snmp/mibs . Snmp перезапустил. Но это тоже не помогло.

Быть может есть какие команды типа snmpget или snmpwalk. С помощью которых можно было бы проверить берутся ли данные snmp от cgp ?

И что значат эти сообщения об ошибках и как их можно побороть ?

С Уважением
Александр Получено Tue May 01 15:47:02 2007

Этот архив был сгенерирован hypermail 2.1.8 : Tue 01 May 2007 - 20:13:41 MSD