snmp index change?????

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
SvAdmin_jp
Posts: 4
Joined: Fri Feb 15, 2008 1:02 am

snmp index change?????

Post by SvAdmin_jp »

I'd like to make a graph of index2,3,4 like a picture,
when a Create button is pressed including a check in a check box,
for some reason, it's index160,161,162.
How can a graph normally be made?

OS:CentOS 5
Cacti 0.8.7b
spine 0.8.7b

Code: Select all

Data Query Debug Information 
 
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Found item [ifIndex='5'] index: 5 [from value]
+ Found item [ifIndex='6'] index: 6 [from value]
+ Found item [ifIndex='7'] index: 7 [from value]
+ Found item [ifIndex='160'] index: 160 [from value]
+ Found item [ifIndex='161'] index: 161 [from value]
+ Found item [ifIndex='162'] index: 162 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Up'] index: 2 [from value]
+ Found item [ifOperStatus='Up'] index: 3 [from value]
+ Found item [ifOperStatus='Up'] index: 4 [from value]
+ Found item [ifOperStatus='Down'] index: 5 [from value]
+ Found item [ifOperStatus='Down'] index: 6 [from value]
+ Found item [ifOperStatus='Down'] index: 7 [from value]
+ Found item [ifOperStatus='Up'] index: 160 [from value]
+ Found item [ifOperStatus='Up'] index: 161 [from value]
+ Found item [ifOperStatus='Up'] index: 162 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='LoopBack'] index: 1 [from value]
+ Found item [ifDescr='LAN0'] index: 2 [from value]
+ Found item [ifDescr='LAN1'] index: 3 [from value]
+ Found item [ifDescr='LAN2'] index: 4 [from value]
+ Found item [ifDescr='LAN3'] index: 5 [from value]
+ Found item [ifDescr='LAN4'] index: 6 [from value]
+ Found item [ifDescr='LAN5'] index: 7 [from value]
+ Found item [ifDescr='lan0'] index: 160 [from value]
+ Found item [ifDescr='lan1'] index: 161 [from value]
+ Found item [ifDescr='lan2'] index: 162 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='softwareLoopback(24)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 3 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 4 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 5 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 6 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 7 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 160 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 161 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 162 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='1000000000'] index: 2 [from value]
+ Found item [ifSpeed='1000000000'] index: 3 [from value]
+ Found item [ifSpeed='1000000000'] index: 4 [from value]
+ Found item [ifSpeed='0'] index: 5 [from value]
+ Found item [ifSpeed='0'] index: 6 [from value]
+ Found item [ifSpeed='0'] index: 7 [from value]
+ Found item [ifSpeed='10000000'] index: 160 [from value]
+ Found item [ifSpeed='10000000'] index: 161 [from value]
+ Found item [ifSpeed='10000000'] index: 162 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr='00:02:0B:5D:F7:02:40'] index: 2 [from value]
+ Found item [ifHwAddr='00:02:0B:5D:F7:02:3E'] index: 3 [from value]
+ Found item [ifHwAddr='00:02:0B:5D:F7:02:3C'] index: 4 [from value]
+ Found item [ifHwAddr='00:02:0B:5D:F7:02:3D'] index: 5 [from value]
+ Found item [ifHwAddr='00:00:E0:00:ED:31:AE'] index: 6 [from value]
+ Found item [ifHwAddr='00:00:E0:00:ED:31:AF'] index: 7 [from value]
+ Found item [ifHwAddr='00:00:0B:5D:F7:02:40'] index: 160 [from value]
+ Found item [ifHwAddr='00:00:0B:5D:F7:02:3E'] index: 161 [from value]
+ Found item [ifHwAddr='00:00:0B:5D:F7:02:3C'] index: 162 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='122.209.252.2'] index: 161 [from regexp oid parse]
+ Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]
+ Found item [ifIP='172.16.21.16'] index: 162 [from regexp oid parse]
+ Found item [ifIP='210.167.158.98'] index: 160 [from regexp oid parse]
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml' 
Attachments
7_162.jpg
7_162.jpg (27.55 KiB) Viewed 1716 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That's a bit strange. The output repeats the values for index 2,3,4 at 160,161,162. Which type of device is this?
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr='00:02:0B:5D:F7:02:40'] index: 2 [from value]
+ Found item [ifHwAddr='00:02:0B:5D:F7:02:3E'] index: 3 [from value]
+ Found item [ifHwAddr='00:02:0B:5D:F7:02:3C'] index: 4 [from value]
+ Found item [ifHwAddr='00:02:0B:5D:F7:02:3D'] index: 5 [from value]
+ Found item [ifHwAddr='00:00:E0:00:ED:31:AE'] index: 6 [from value]
+ Found item [ifHwAddr='00:00:E0:00:ED:31:AF'] index: 7 [from value]
+ Found item [ifHwAddr='00:00:0B:5D:F7:02:40'] index: 160 [from value]
+ Found item [ifHwAddr='00:00:0B:5D:F7:02:3E'] index: 161 [from value]
+ Found item [ifHwAddr='00:00:0B:5D:F7:02:3C'] index: 162 [from value]
Reinhard
SvAdmin_jp
Posts: 4
Joined: Fri Feb 15, 2008 1:02 am

Post by SvAdmin_jp »

Excuse me, it became late that it's written.
This device is a router.
I think that I can normally make a graph at tried place and Cacti ver0.8.6i.

http://primeserver.fujitsu.com/ipcom/pr ... s1400.html
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Is index 160 (lan0), 161 (lan1) and 162(lan2) different from index 2(LAN0), index 3(LAN1) and index 4 (LAN2) ?

Did you manually create the logical lan0-2 things in the router? The fact report the same MAC addresses as another set of Indexes, makes me think they're the same...
SvAdmin_jp
Posts: 4
Joined: Fri Feb 15, 2008 1:02 am

Post by SvAdmin_jp »

I'm not creating logical lan0-2.
Manually, I should be able to change the one cacti made in index 160 to index 2 class....
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Possibly.

Does that router consider LAN0-2 the same as lan0-2?
SvAdmin_jp
Posts: 4
Joined: Fri Feb 15, 2008 1:02 am

Post by SvAdmin_jp »

The router has only seven ports.
There is a possibility that a virtual port is internally built
possibly.
However, it is only LAN0-2 to be able to acquire data.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests