Graph title is showing|query_ifDescr|/|query_ifIndex|

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

Moderators: Developers, Moderators

floattent
Posts: 13
Joined: Fri Nov 09, 2012 2:42 pm

Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by floattent »

Hi all,

I'm using cacti-0.8.8a on a Linux machine and using the standard "interface.xml" file and the standard "Interface - Traffic (bytes/sec)" graph template to collect some traffic stats on a Ciena 61xx device.

But the graph title is not showing correctly as it is supposed to be. Please see the screen shot attached. It didn't parse the " |query_ifDescr|/|query_ifIndex|" value. snmpwalk on the "ifDescr" & "ifIndex" had no problems.

IF-MIB::ifDescr.1 = STRING: Port_SDH-4-1-6-1
IF-MIB::ifDescr.2 = STRING: Port_SDH-4-1-6-2
IF-MIB::ifDescr.3 = STRING:
IF-MIB::ifDescr.4 = STRING:
IF-MIB::ifDescr.5 = STRING: Port_Eth-100-1-5-1
IF-MIB::ifDescr.6 = STRING: Port_Eth-100-1-5-2
IF-MIB::ifDescr.7 = STRING: Port_Eth-100-1-5-3
IF-MIB::ifDescr.8 = STRING: Port_Eth-100-1-5-4

IF-MIB::ifIndex.1 = INTEGER: 106001
IF-MIB::ifIndex.2 = INTEGER: 106002
IF-MIB::ifIndex.3 = INTEGER: 0
IF-MIB::ifIndex.4 = INTEGER: 0
IF-MIB::ifIndex.5 = INTEGER: 105001
IF-MIB::ifIndex.6 = INTEGER: 105002
IF-MIB::ifIndex.7 = INTEGER: 105003
IF-MIB::ifIndex.8 = INTEGER: 105004

Any ideas? Thank you very much for your help.
Attachments
screen shot
screen shot
2013-06-23 01_05_04-Console -_ Graph Management.png (14 KiB) Viewed 3607 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by BSOD2600 »

did you try using the 'reapply suggested graph names' action?
floattent
Posts: 13
Joined: Fri Nov 09, 2012 2:42 pm

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by floattent »

Thank you very much for your reply. I modified the sequence of the suggested values, and ran the "Reapply Suggested Names" command from the GUI, it didn't change anythingl. It looks to me that "query_ifXXXX" command is not working for the graph title. Any other place to take a look? Thank you very much for your help.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by BSOD2600 »

Give \cacti\cli\poller_graphs_reapply_names.php a try. The problem is often the data is missing from the poller cache.
floattent
Posts: 13
Joined: Fri Nov 09, 2012 2:42 pm

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by floattent »

Thanks very much for the suggestions. However, it didn't help.

[root@cav-clwr-vm-misc-1 cli]# php poller_graphs_reapply_names.php -id=15
No log handling enabled - turning on stderr logging
Expected LAST-UPDATED (SMI): At line 36 in /usr/share/snmp/mibs//SNMPv2-SMI.my
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs//IP-MIB.txt)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs//DISMAN-EVENT-MIB.txt)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs//DISMAN-SCHEDULE-MIB.txt)
Did not find 'hrMIBAdminInfo' in module HOST-RESOURCES-MIB (/usr/share/snmp/mibs//HOST-RESOURCES-TYPES.txt)
Unlinked OID in HOST-RESOURCES-TYPES: hostResourcesTypesModule ::= { hrMIBAdminInfo 4 }
Undefined identifier: hrMIBAdminInfo near line 7 of /usr/share/snmp/mibs//HOST-RESOURCES-TYPES.txt
Cannot adopt OID in HOST-RESOURCES-TYPES: hostResourcesTypesModule ::= { hrMIBAdminInfo 4 }
WARNING: Do not interrupt this script. Interrupting during rename can cause issues
.....................................[root@cav-clwr-vm-misc-1 cli]#

I also deleted the device and re-added it, then created the new graphs, it's still no good.

To simplified the queries, I created a new xml file as follows:

# more test.xml
<interface>
<name>Get SNMP Interfaces</name>
<description>Queries a host for a list of monitorable interfaces</description>
<oid_index>.1.3.6.1.2.1.2.2.1.1</oid_index>
<index_order_type>numeric</index_order_type>

<fields>
<ifIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.2.2.1.1</oid>
</ifIndex>
<ifDescr>
<name>Description</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.2.2.1.2</oid>
</ifDescr>
<ifType>
<name>Type</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.2.2.1.3</oid>
</ifType>
<ifInOctets>
<name>Bytes In</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.2.2.1.10</oid>
</ifInOctets>
<ifOutOctets>
<name>Bytes Out</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.2.2.1.16</oid>
</ifOutOctets>
<ifIP>
<name>IP Address</name>
<method>walk</method>
<source>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})$</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.4.20.1.2</oid>
</ifIP>
</fields>
</interface>

See the screen shots of the graph template as below:
Attachments
Graph template
Graph template
2013-06-24 23_17_01-Console -_ Graph Templates -_ (Edit).jpg (113.5 KiB) Viewed 3580 times
Data Query
Data Query
2013-06-24 23_19_06-Console -_ Data Queries -_ (Edit) -_ Associated Graph Templates.jpg (69.33 KiB) Viewed 3580 times
floattent
Posts: 13
Joined: Fri Nov 09, 2012 2:42 pm

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by floattent »

The interesting thing is that I was able to see some interface name in the graph title. See the screen shot below.
Attachments
2013-06-24 23_20_31-Console -_ Graph Management.jpg
2013-06-24 23_20_31-Console -_ Graph Management.jpg (88.16 KiB) Viewed 3580 times
floattent
Posts: 13
Joined: Fri Nov 09, 2012 2:42 pm

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by floattent »

I selected all the interfaces from this page, but only first 4 interfaces presented their name in the graph title. Why is that?
Attachments
2013-06-24 23_28_34-Console -_ Create New Graphs.jpg
2013-06-24 23_28_34-Console -_ Create New Graphs.jpg (80.39 KiB) Viewed 3580 times
floattent
Posts: 13
Joined: Fri Nov 09, 2012 2:42 pm

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by floattent »

snmpwalk from the cacti server returns all the info for the ifDescr correctly.

# snmpwalk -c public -v2c <device_ip> .1.3.6.1.2.1.2.2.1.2
Expected LAST-UPDATED (SMI): At line 36 in /usr/share/snmp/mibs//SNMPv2-SMI.my
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs//IP-MIB.txt)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs//DISMAN-EVENT-MIB.txt)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs//DISMAN-SCHEDULE-MIB.txt)
Did not find 'hrMIBAdminInfo' in module HOST-RESOURCES-MIB (/usr/share/snmp/mibs//HOST-RESOURCES-TYPES.txt)
Unlinked OID in HOST-RESOURCES-TYPES: hostResourcesTypesModule ::= { hrMIBAdminInfo 4 }
Undefined identifier: hrMIBAdminInfo near line 7 of /usr/share/snmp/mibs//HOST-RESOURCES-TYPES.txt
Cannot adopt OID in HOST-RESOURCES-TYPES: hostResourcesTypesModule ::= { hrMIBAdminInfo 4 }
IF-MIB::ifDescr.1 = STRING: Port_SDH-0-1-6-1
IF-MIB::ifDescr.2 = STRING: Port_SDH-0-1-7-1
IF-MIB::ifDescr.3 = STRING:
IF-MIB::ifDescr.4 = STRING:
IF-MIB::ifDescr.5 = STRING: Port_SDH-4-1-5-1
IF-MIB::ifDescr.6 = STRING: Port_SDH-1-1-5-5
IF-MIB::ifDescr.7 = STRING: Port_SDH-1-1-5-6
IF-MIB::ifDescr.8 = STRING: Port_SDH-1-1-5-7
IF-MIB::ifDescr.9 = STRING: Port_SDH-1-1-5-8
IF-MIB::ifDescr.10 = STRING: Port_Eth-100-1-4-1
IF-MIB::ifDescr.11 = STRING: Port_Eth-100-1-4-2
IF-MIB::ifDescr.12 = STRING: Port_Eth-100-1-4-3
IF-MIB::ifDescr.13 = STRING: Port_Eth-100-1-4-4
IF-MIB::ifDescr.14 = STRING: Port_Eth-100-1-4-5
IF-MIB::ifDescr.15 = STRING: Port_Eth-100-1-4-6
IF-MIB::ifDescr.16 = STRING: Port_Eth-100-1-4-7
IF-MIB::ifDescr.17 = STRING: Port_Eth-100-1-4-8
IF-MIB::ifDescr.18 = STRING: Port_Eth-1000-1-4-9
IF-MIB::ifDescr.19 = STRING: Port_Eth-1000-1-4-10
IF-MIB::ifDescr.20 = STRING: VCG-1-4-101
IF-MIB::ifDescr.21 = STRING: VCG-1-4-102
IF-MIB::ifDescr.22 = STRING: VCG-1-4-103
IF-MIB::ifDescr.23 = STRING: VCG-1-4-104
IF-MIB::ifDescr.24 = STRING: VCG-1-4-105
IF-MIB::ifDescr.25 = STRING: VCG-1-4-106
IF-MIB::ifDescr.26 = STRING: VCG-1-4-109
IF-MIB::ifDescr.27 = STRING: VCG-1-4-110
IF-MIB::ifDescr.28 = STRING: Port_Eth-100-1-8-1
IF-MIB::ifDescr.29 = STRING: Port_Eth-100-1-8-2
IF-MIB::ifDescr.30 = STRING: Port_Eth-100-1-8-3
IF-MIB::ifDescr.31 = STRING: Port_Eth-100-1-8-4
IF-MIB::ifDescr.32 = STRING: Port_Eth-100-1-8-5
IF-MIB::ifDescr.33 = STRING: Port_Eth-100-1-8-6
IF-MIB::ifDescr.34 = STRING: Port_Eth-100-1-8-7
IF-MIB::ifDescr.35 = STRING: Port_Eth-100-1-8-8
IF-MIB::ifDescr.36 = STRING: Port_Eth-1000-1-8-9
IF-MIB::ifDescr.37 = STRING: Port_Eth-1000-1-8-10
IF-MIB::ifDescr.38 = STRING: VCG-1-8-101
IF-MIB::ifDescr.39 = STRING: VCG-1-8-102
IF-MIB::ifDescr.40 = STRING: VCG-1-8-103
IF-MIB::ifDescr.41 = STRING: VCG-1-8-104
IF-MIB::ifDescr.42 = STRING: VCG-1-8-105
IF-MIB::ifDescr.43 = STRING: VCG-1-8-106
IF-MIB::ifDescr.44 = STRING: VCG-1-8-107
IF-MIB::ifDescr.45 = STRING: VCG-1-8-108
IF-MIB::ifDescr.46 = STRING: VCG-1-8-109
IF-MIB::ifDescr.47 = STRING: VCG-1-8-110
IF-MIB::ifDescr.48 = STRING:
floattent
Posts: 13
Joined: Fri Nov 09, 2012 2:42 pm

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by floattent »

I just realized that the interface can get the interface name parsed correctly all have an IP address attached to it. But for my most of the Ethernet interfaces, they don't have an IP address attached to them. I have removed the ifIP from the xml file, but it didn't help.

Any suggestion is highly appreciated. Thanks!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by BSOD2600 »

you're taking the hard route on this by re-creating templates/scripts, etc. I'd suggest you remove them and go back to the stock template/script.

1) does a snmpwalk show ifDescr as you desire? it would appear so. good. means not a problem with the vendors implementation.
2) does a verbose output of the [SNMP - Interface Statistics] data query show the ifDescr. It would appear so. means cacti is able to properly query the device.
3) After using the 'create graphs for this host' screen, selecting the various interfaces, clicking on Create. Did Cacti use the correct ifDescr for all interfaces?
floattent
Posts: 13
Joined: Fri Nov 09, 2012 2:42 pm

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by floattent »

Hi BSOD2600,

Thank you very much for helping me on this one.

To answer your questions:
1) does a snmpwalk show ifDescr as you desire? it would appear so. good. means not a problem with the vendors implementation. -> Yes
2) does a verbose output of the [SNMP - Interface Statistics] data query show the ifDescr. It would appear so. means cacti is able to properly query the device. -> Yes
3) After using the 'create graphs for this host' screen, selecting the various interfaces, clicking on Create. Did Cacti use the correct ifDescr for all interfaces? -> No. It didn't show the ifDescr in the graph title at all for all the interfaces.

I have re-installed the cacti but still no luck. I have tried to create different graph types within the SNMP Interface Statistics template, it appeared to have the same issue. I'm totally lost. It shouldn't be that hard. Please help. Thanks very much!
floattent
Posts: 13
Joined: Fri Nov 09, 2012 2:42 pm

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by floattent »

Is that because there is some empty string in the "ifDescr" table? Can someone please confirm if this is the root cause of this issue? Thanks very much for your help.

IF-MIB::ifDescr.1 = STRING: Port_SDH-0-1-6-1
IF-MIB::ifDescr.2 = STRING: Port_SDH-0-1-7-1
IF-MIB::ifDescr.3 = STRING:
IF-MIB::ifDescr.4 = STRING:
IF-MIB::ifDescr.5 = STRING: Port_SDH-4-1-5-1
IF-MIB::ifDescr.6 = STRING: Port_SDH-1-1-5-5
IF-MIB::ifDescr.7 = STRING: Port_SDH-1-1-5-6
IF-MIB::ifDescr.8 = STRING: Port_SDH-1-1-5-7
IF-MIB::ifDescr.9 = STRING: Port_SDH-1-1-5-8
IF-MIB::ifDescr.10 = STRING: Port_Eth-100-1-4-1
IF-MIB::ifDescr.11 = STRING: Port_Eth-100-1-4-2
IF-MIB::ifDescr.12 = STRING: Port_Eth-100-1-4-3
IF-MIB::ifDescr.13 = STRING: Port_Eth-100-1-4-4
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by BSOD2600 »

Could be a bug I suppose... before diving into the code, what happens if you set a description for iface 3 and 4? Does it change Cacti's behavior?
floattent
Posts: 13
Joined: Fri Nov 09, 2012 2:42 pm

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by floattent »

I have very limited knowledge on the device, and I don't have time to learn how to set the ifDesc on those interfaces. I came across this old post, it looks like someone has already addressed a similar issue.

SNMP Query - ignore blank indexes
http://forums.cacti.net/viewtopic.php?f=21&t=43134

I do have some ifIndex with 0. See the screen show attached. Do you think it's the same issue?

I applied two patches that mentioned in that post. But when I tried to create the graphs again, I had same issue. How to verify the patches were actually applied? I had some issues when I applied the patch. Please advise. Thank you very much for your help.
Attachments
2013-06-26 10_56_18-Console -_ Create New Graphs.jpg
2013-06-26 10_56_18-Console -_ Create New Graphs.jpg (19.97 KiB) Viewed 3543 times
floattent
Posts: 13
Joined: Fri Nov 09, 2012 2:42 pm

Re: Graph title is showing|query_ifDescr|/|query_ifIndex|

Post by floattent »

I don't think this patch would work for me. Because I need to drop the entry that the ifIndex output is 0.

[root@pcardqw102 snmp_queries]# snmpwalk -c public -v2c 47.114.244.102 ifIndex
IF-MIB::ifIndex.1 = INTEGER: 106001
IF-MIB::ifIndex.2 = INTEGER: 106002
IF-MIB::ifIndex.3 = INTEGER: 0
IF-MIB::ifIndex.4 = INTEGER: 0
IF-MIB::ifIndex.5 = INTEGER: 105001
IF-MIB::ifIndex.6 = INTEGER: 105002
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest