Cacti Interface polling, Cactiwalk index=0

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
sreehari
Posts: 6
Joined: Thu Mar 18, 2021 5:16 am

Cacti Interface polling, Cactiwalk index=0

Post by sreehari »

HI
Facing issue in polling interfaces of Nokia (Formely Alcatel SR7750) interfaces. Cacti not polling any new interfaces . Pld help
-----------------------------------------------------------------------------------------------------------------------
Cacti verbose output (No SNMP walk index count=0, No SNMP data)

+ Running data query [1].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP get for num of indexes @ '.1.3.6.1.2.1.2.1.0' Index Count: 60
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' Index Count: 0
+ No SNMP data returned

---------------------------------------------------------------------------------------------------------------------------------
Direct SNMPWalk command from the server, given favourable output


[cactiuser@l2cacti ~]$ snmpwalk -v2c -c t7t7m1tr01 <device name> .1.3.6.1.2.1.2.2.1.1
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
-------------------------------------------------------------------------------------------------------------------------------------
Script

<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>
<oid_num_indexes>.1.3.6.1.2.1.2.1.0</oid_num_indexes>
<index_order>ifDescr:ifName:ifIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<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>
<ifOperStatus>
<name>Status</name>
<method>walk</method>
<source>VALUE/REGEXP:[a-zA-Z]{​​​​​​​1,}​​​​​​​\(([1-]{​​​​​​​1}​​​​​​​)+\)$</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.2.2.1.8</oid>
</ifOperStatus>
<ifOperStat>
<name>Stat</name>
<method>walk</method>
<source>VALUE/REGEXP:[a-zA-Z]{​​​​​​​1,}​​​​​​​\(([1-]{​​​​​​​1}​​​​​​​)+\)$</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.2.2.1.8</oid>
</ifOperStat>
<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>
<ifName>
<name>Name (IF-MIB)</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.31.1.1.1.1</oid>
"interface.xml" 223L, 6
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Cacti Interface polling, Cactiwalk index=0

Post by macan »

sreehari wrote: Thu Mar 18, 2021 5:45 am HI
Facing issue in polling interfaces of Nokia (Formely Alcatel SR7750) interfaces. Cacti not polling any new interfaces . Pld help
-----------------------------------------------------------------------------------------------------------------------
Cacti verbose output (No SNMP walk index count=0, No SNMP data)

+ Running data query [1].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP get for num of indexes @ '.1.3.6.1.2.1.2.1.0' Index Count: 60
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' Index Count: 0
+ No SNMP data returned

---------------------------------------------------------------------------------------------------------------------------------
Direct SNMPWalk command from the server, given favourable output


[cactiuser@l2cacti ~]$ snmpwalk -v2c -c t7t7m1tr01 <device name> .1.3.6.1.2.1.2.2.1.1
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
-------------------------------------------------------------------------------------------------------------------------------------
Script

<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>
<oid_num_indexes>.1.3.6.1.2.1.2.1.0</oid_num_indexes>
<index_order>ifDescr:ifName:ifIndex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<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>
<ifOperStatus>
<name>Status</name>
<method>walk</method>
<source>VALUE/REGEXP:[a-zA-Z]{​​​​​​​1,}​​​​​​​\(([1-]{​​​​​​​1}​​​​​​​)+\)$</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.2.2.1.8</oid>
</ifOperStatus>
<ifOperStat>
<name>Stat</name>
<method>walk</method>
<source>VALUE/REGEXP:[a-zA-Z]{​​​​​​​1,}​​​​​​​\(([1-]{​​​​​​​1}​​​​​​​)+\)$</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.2.2.1.8</oid>
</ifOperStat>
<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>
<ifName>
<name>Name (IF-MIB)</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.31.1.1.1.1</oid>
"interface.xml" 223L, 6
Restart Nokia or its snmp service? I have met system which needs restart if interface number changed
Let the Cacti grow!
drenny
Posts: 15
Joined: Thu Dec 01, 2011 5:09 am

Re: Cacti Interface polling, Cactiwalk index=0

Post by drenny »

did you find another solution? i have the same problem with SAS and IXRs from Nokia.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest