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

От: Vladimir A. Butenko <CGatePro_at_mx_ru>
Дата: Tue 01 May 2007 - 23:34:20 MSD

  snmpwalk xxxxx.stalker.com pubpub .1.3

system.sysDescr.0 = CommuniGate Pro v5.1.9o, OSNAME
system.sysObjectID.0 = OID: enterprises.5678.2
system.sysUpTime.0 = Timeticks: (2757300) 7:39:33.00
[....]

1.3.6.1.4.1.5678.2.1.1.1.2.10.0 - это неправильно. Это неполный путь.

snmpget node9.stalker.com pubpub 1.3.6.1.4.1.5678.2.1.1.1.2.10 system.sysUpTime.6.1.4.1.5678.2.1.1.1.2.10 = No Such Object available on this agent

.1.3.6.1.4.1.5678.2.1.1.1.2.10.0 - правильно.

snmpget node9.stalker.com pubpub .1.3.6.1.4.1.5678.2.1.1.1.2.10 enterprises.5678.2.1.1.1.2.10 = Counter64: 0

Если же он действительно посылает правильно, то вместо того, чтобы разбираться с этими фриварными выдачами - поставьте полный уровень логов в CGatePro SNMP, убедитесь, что порт в SNMP Listener поставлен (в 161), что никакой "системный" SNMP агент не работает на том же сервере на том же порту, и пробуйте еще раз, и смотрите логи CGatePro.

On Tue, 1 May 2007 19:47:16 +0400
  "Alexander Anisimov" <CGatePro@mx.ru> wrote:
> Здравствуйте!

> 
> Решил согласно этого руководства 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 ?
> 
> И что значат эти сообщения об ошибках и как их можно побороть ?
> 
> С Уважением
> Александр 
> 


Sincerely,
Vladimir Получено Tue May 01 19:34:02 2007

Этот архив был сгенерирован hypermail 2.1.8 : Wed 02 May 2007 - 00:13:30 MSD