ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Peter S. Voronov" <peter@fds.cr.avalbank.com>
To: sisyphus@altlinux.ru
Subject: [sisyphus] [Q] snmp ?
Date: Wed, 10 Dec 2003 13:02:42 +0200
Message-ID: <1219664271.20031210130242@fds.cr.avalbank.com> (raw)

Добрый день.
Дико извиняюсь за не совсем Сизифный вопрос, ограничен
в возможностях где спросить :-(

Имеется - Линукс, 2.2.21-alt3.p4-custom (хотя машинка исходно RH 6)
на ней мультипортовка, на которй 2 выделенки и 3 dial-ip модема.

Необходимо  мониторить  (mrtg)  выделенки. Проблема - номер интерфейса
может плавать.
при попытке задать mrtg мониторинг по Ip адресам - возникает следующее
сообщение :
* got 'Received SNMP response with error code
      error status: noSuchName
      index 1 (OID: 1.3.6.1.2.1.2.2.1.10.909)
просмотр snmpwalk дает :
IF-MIB::ifNumber.0 = INTEGER: 8
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: dsn0
IF-MIB::ifDescr.3 = STRING: eth0
IF-MIB::ifDescr.4 = STRING: eth1
IF-MIB::ifDescr.5 = STRING: ppp3
IF-MIB::ifDescr.6 = STRING: ppp2
IF-MIB::ifDescr.7 = STRING: ppp1
IF-MIB::ifDescr.8 = STRING: ppp0

IP-MIB::ipAdEntAddr.10.16.19.59 = IpAddress: 10.16.19.59
IP-MIB::ipAdEntAddr.10.16.19.69 = IpAddress: 10.16.19.69
IP-MIB::ipAdEntAddr.10.16.19.190 = IpAddress: 10.16.19.190
IP-MIB::ipAdEntAddr.10.16.19.254 = IpAddress: 10.16.19.254
IP-MIB::ipAdEntAddr.10.16.21.254 = IpAddress: 10.16.21.254
IP-MIB::ipAdEntAddr.127.0.0.1 = IpAddress: 127.0.0.1
IP-MIB::ipAdEntIfIndex.10.16.19.59 = INTEGER: 909
IP-MIB::ipAdEntIfIndex.10.16.19.69 = INTEGER: 913
IP-MIB::ipAdEntIfIndex.10.16.19.190 = INTEGER: 2
IP-MIB::ipAdEntIfIndex.10.16.19.254 = INTEGER: 3
IP-MIB::ipAdEntIfIndex.10.16.21.254 = INTEGER: 4
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1

в тоже время ifconfig показывает
ppp2      Link encap:Point-to-Point Protocol
          inet addr:10.16.19.59  P-t-P:10.16.19.60  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1064  Metric:1
          RX packets:2929 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3037 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10

и по логике
должно быть
IP-MIB::ipAdEntIfIndex.10.16.19.59 = INTEGER: 6 а не 909

net-snmp-5.0.9-4
mrtg-2.9.17-1

может кто осмысленно куда пошлет ??????????????
-- 
Best regards,
 Peter S. Voronov
 




                 reply	other threads:[~2003-12-10 11:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1219664271.20031210130242@fds.cr.avalbank.com \
    --to=peter@fds.cr.avalbank.com \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git