Problem with SNMP - Interface Statistics and cacti 1.2.5

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

Moderators: Moderators, Developers

Author
Message
praxtoneitor
Posts: 21
Joined: Mon Dec 21, 2009 7:57 am

Problem with SNMP - Interface Statistics and cacti 1.2.5

#1 Post by praxtoneitor » Thu Jul 04, 2019 3:17 pm

Sorry for my bad English. After having installed cacti 1.2.5, everything works perfectly, everything except the SNMP - interface statistics that always gives 0 items on any device in the network. Can anybody help me??. Thank you

netniV
Cacti Guru User
Posts: 2868
Joined: Sun Aug 27, 2017 12:05 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#2 Post by netniV » Thu Jul 04, 2019 3:40 pm

If the devices you are attempting to communicate with are linux boxes, then the chances are your snmp configuration is not configured to allow polling of those interfaces. Use SNMPWALK to verify this.

praxtoneitor
Posts: 21
Joined: Mon Dec 21, 2009 7:57 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#3 Post by praxtoneitor » Fri Jul 05, 2019 2:00 am

it is a problem of understanding between cacti and AirOS devices, the same procedure with a switch if it detects the interfaces by snmp, but with Air0S it shows 0 items.

praxtoneitor
Posts: 21
Joined: Mon Dec 21, 2009 7:57 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#4 Post by praxtoneitor » Fri Jul 05, 2019 11:40 am

And the solution??

netniV
Cacti Guru User
Posts: 2868
Joined: Sun Aug 27, 2017 12:05 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#5 Post by netniV » Fri Jul 05, 2019 12:01 pm

Does AirOS actually provide interface details via the standard SNMP OID's for interfaces? If not, you'd need a custom template to handle the differences.

praxtoneitor
Posts: 21
Joined: Mon Dec 21, 2009 7:57 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#6 Post by praxtoneitor » Fri Jul 05, 2019 1:56 pm

If that provides them, in fact in cacti 0.8.8a works perfectly, or in other platforms like zabbx.
In fact, if you execute a verbose query, the following result is displayed

Total: 0.000000, Delta: 0.000000, Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
Total: 0.000000, Delta: 0.000000, Running Data Query [4].
Total: 0.000000, Delta: 0.000000, Found Type = '3' [SNMP Query].
Total: 0.000000, Delta: 0.000000, XML file parsed ok.
Total: 0.010000, Delta: 0.000000, Executing SNMP get for num of indexes @ '.1.3.6.1.2.1.2.1.0' Index Count: 6
Total: 0.050000, Delta: 0.040000, Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' Index Count: 6
Total: 0.050000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.1' value: '1'
Total: 0.050000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.2' value: '2'
Total: 0.050000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.3' value: '3'
Total: 0.050000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.4' value: '4'
Total: 0.050000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.5' value: '5'
Total: 0.050000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.6' value: '6'

User avatar
Osiris
Cacti Pro User
Posts: 858
Joined: Mon Jan 05, 2015 10:10 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#7 Post by Osiris » Fri Jul 05, 2019 2:26 pm

Are you sure you are running develop? That output is not complete, like you are not running 1.2.5, but something older or half merged.
Before history, there was a paradise, now dust.

netniV
Cacti Guru User
Posts: 2868
Joined: Sun Aug 27, 2017 12:05 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#8 Post by netniV » Fri Jul 05, 2019 2:27 pm

I see you posted a partial from the verbose query. Can you post a full output of the verbose query showing all parts (there is a copy to clipboard icon)

User avatar
Osiris
Cacti Pro User
Posts: 858
Joined: Mon Jan 05, 2015 10:10 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#9 Post by Osiris » Fri Jul 05, 2019 2:29 pm

If running 'develop' which is the unreleased 1.2.5, you should get something like this:
Data Query Debug Information
Total: 0.000000, Delta: 0.000000, Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
Total: 0.000000, Delta: 0.000000, Running Data Query [4].
Total: 0.000000, Delta: 0.000000, Found Type = '3' [SNMP Query].
Total: 0.000000, Delta: 0.000000, XML file parsed ok.
Total: 0.000000, Delta: 0.000000, Executing SNMP get for num of indexes @ '.1.3.6.1.2.1.2.1.0' Index Count: 4
Total: 0.000000, Delta: 0.000000, Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' Index Count: 4
Total: 0.000000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.1' value: '1'
Total: 0.000000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.2' value: '2'
Total: 0.000000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.3' value: '3'
Total: 0.000000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.4' value: '4'
Click to show Data Query output for field 'ifIndex'
Total: 0.000000, Delta: 0.000000, Located input field 'ifIndex' [walk]
Total: 0.010000, Delta: 0.000000, 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]
Click to show Data Query output for field 'ifOperStatus'
Total: 0.010000, Delta: 0.000000, Located input field 'ifOperStatus' [walk]
Total: 0.010000, Delta: 0.000000, 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='Down'] index: 3 [from value]
Found item [ifOperStatus='Down'] index: 4 [from value]
Click to show Data Query output for field 'ifAdminStatus'
Total: 0.010000, Delta: 0.000000, Located input field 'ifAdminStatus' [walk]
Total: 0.010000, Delta: 0.000000, Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.7'
Found item [ifAdminStatus='Up'] index: 1 [from value]
Found item [ifAdminStatus='Up'] index: 2 [from value]
Found item [ifAdminStatus='Up'] index: 3 [from value]
Found item [ifAdminStatus='Down'] index: 4 [from value]
Click to show Data Query output for field 'ifDescr'
Total: 0.010000, Delta: 0.000000, Located input field 'ifDescr' [walk]
Total: 0.010000, Delta: 0.000000, Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
Found item [ifDescr='lo'] index: 1 [from value]
Found item [ifDescr='eno1'] index: 2 [from value]
Found item [ifDescr='virbr0'] index: 3 [from value]
Found item [ifDescr='virbr0-nic'] index: 4 [from value]
Click to show Data Query output for field 'ifName'
Total: 0.010000, Delta: 0.000000, Located input field 'ifName' [walk]
Total: 0.010000, Delta: 0.000000, Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
Found item [ifName='lo'] index: 1 [from value]
Found item [ifName='eno1'] index: 2 [from value]
Found item [ifName='virbr0'] index: 3 [from value]
Found item [ifName='virbr0-nic'] index: 4 [from value]
Click to show Data Query output for field 'ifAlias'
Total: 0.010000, Delta: 0.000000, Located input field 'ifAlias' [walk]
Total: 0.030000, Delta: 0.020000, Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
Found item [ifAlias=''] index: 1 [from value]
Found item [ifAlias=''] index: 2 [from value]
Found item [ifAlias=''] index: 3 [from value]
Found item [ifAlias=''] index: 4 [from value]
Click to show Data Query output for field 'ifType'
Total: 0.030000, Delta: 0.000000, Located input field 'ifType' [walk]
Total: 0.070000, Delta: 0.030000, Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
Found item [ifType='softwareLoopback'] index: 1 [from value]
Found item [ifType='ethernetCsmacd'] index: 2 [from value]
Found item [ifType='ethernetCsmacd'] index: 3 [from value]
Found item [ifType='ethernetCsmacd'] index: 4 [from value]
Click to show Data Query output for field 'ifSpeed'
Total: 0.070000, Delta: 0.000000, Located input field 'ifSpeed' [walk]
Total: 0.070000, Delta: 0.000000, 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='0'] index: 3 [from value]
Found item [ifSpeed='10000000'] index: 4 [from value]
Click to show Data Query output for field 'ifHighSpeed'
Total: 0.070000, Delta: 0.000000, Located input field 'ifHighSpeed' [walk]
Total: 0.070000, Delta: 0.000000, Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.15'
Found item [ifHighSpeed='10'] index: 1 [from value]
Found item [ifHighSpeed='1000'] index: 2 [from value]
Found item [ifHighSpeed='0'] index: 3 [from value]
Found item [ifHighSpeed='10'] index: 4 [from value]
Click to show Data Query output for field 'ifHwAddr'
Total: 0.070000, Delta: 0.000000, Located input field 'ifHwAddr' [walk]
Total: 0.100000, Delta: 0.030000, 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='ff:ff:ff:ff:ff:ff'] index: 2 [from value]
Found item [ifHwAddr='52:54:0:ec:6e:bf'] index: 3 [from value]
Found item [ifHwAddr='52:54:0:ec:6e:bf'] index: 4 [from value]
Click to show Data Query output for field 'ifIP'
Total: 0.100000, Delta: 0.000000, Located input field 'ifIP' [walk]
Total: 0.100000, Delta: 0.000000, Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]
Found item [ifIP='X.X.X.X'] index: 2 [from regexp oid parse]
Found item [ifIP='Y.Y.Y.Y'] index: 3 [from regexp oid parse]
Total: 0.120000, Delta: 0.010000, Checking for Sort Field change. No changes detected.
Total: 0.120000, Delta: 0.000000, Update Data Query Sort Cache complete
Total: 0.210000, Delta: 0.090000, Index Association with Local Data complete
Total: 0.210000, Delta: 0.000000, No Index Changes Detected, Skipping Re-Index and Poller Cache Re-population
Total: 0.210000, Delta: 0.010000, Automation Executing for Data Query complete
Total: 0.210000, Delta: 0.000000, Plugin hooks complete
Before history, there was a paradise, now dust.

praxtoneitor
Posts: 21
Joined: Mon Dec 21, 2009 7:57 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#10 Post by praxtoneitor » Fri Jul 05, 2019 2:35 pm


praxtoneitor
Posts: 21
Joined: Mon Dec 21, 2009 7:57 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#11 Post by praxtoneitor » Fri Jul 05, 2019 2:45 pm

Data Query Debug Information
Total: 0.000000, Delta: 0.000000, Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
Total: 0.000000, Delta: 0.000000, Running Data Query [4].
Total: 0.000000, Delta: 0.000000, Found Type = '3' [SNMP Query].
Total: 0.000000, Delta: 0.000000, XML file parsed ok.
Total: 0.020000, Delta: 0.020000, Executing SNMP get for num of indexes @ '.1.3.6.1.2.1.2.1.0' Index Count: 6
Total: 0.080000, Delta: 0.060000, Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' Index Count: 6
Total: 0.080000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.1' value: '1'
Total: 0.080000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.2' value: '2'
Total: 0.080000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.3' value: '3'
Total: 0.080000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.4' value: '4'
Total: 0.080000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.5' value: '5'
Total: 0.080000, Delta: 0.000000, Index found at OID: '.1.3.6.1.2.1.2.2.1.1.6' value: '6'
Click to show Data Query output for field 'ifIndex'

Total: 0.080000, Delta: 0.000000, Located input field 'ifIndex' [walk]
Total: 0.130000, Delta: 0.050000, 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]

Click to show Data Query output for field 'ifOperStatus'

Total: 0.130000, Delta: 0.000000, Located input field 'ifOperStatus' [walk]
Total: 0.180000, Delta: 0.040000, 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='Down'] index: 3 [from value]
Found item [ifOperStatus='Up'] index: 4 [from value]
Found item [ifOperStatus='Up'] index: 5 [from value]
Found item [ifOperStatus='Up'] index: 6 [from value]

Click to show Data Query output for field 'ifAdminStatus'

Total: 0.180000, Delta: 0.000000, Located input field 'ifAdminStatus' [walk]
Total: 0.230000, Delta: 0.050000, Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.7'
Found item [ifAdminStatus='Up'] index: 1 [from value]
Found item [ifAdminStatus='Up'] index: 2 [from value]
Found item [ifAdminStatus='Down'] index: 3 [from value]
Found item [ifAdminStatus='Up'] index: 4 [from value]
Found item [ifAdminStatus='Up'] index: 5 [from value]
Found item [ifAdminStatus='Up'] index: 6 [from value]

Click to show Data Query output for field 'ifDescr'

Total: 0.230000, Delta: 0.000000, Located input field 'ifDescr' [walk]
Total: 0.290000, Delta: 0.060000, Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
Found item [ifDescr='lo'] index: 1 [from value]
Found item [ifDescr='eth0'] index: 2 [from value]
Found item [ifDescr='eth1'] index: 3 [from value]
Found item [ifDescr='wifi0'] index: 4 [from value]
Found item [ifDescr='ath0'] index: 5 [from value]
Found item [ifDescr='br0'] index: 6 [from value]

Click to show Data Query output for field 'ifName'

Total: 0.290000, Delta: 0.000000, Located input field 'ifName' [walk]
Total: 0.310000, Delta: 0.020000, Sort field returned not data. Can not continue Re-Index for OID[.1.3.6.1.2.1.31.1.1.1.1]
Associated Graph Templates
No associated graph templates.
Add Graph Template

Associated Data Queries
1) SNMP - Interface Statistics
Success [0 Items, 0 Rows]
Add Data Query
Re-Index Method

netniV
Cacti Guru User
Posts: 2868
Joined: Sun Aug 27, 2017 12:05 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#12 Post by netniV » Fri Jul 05, 2019 4:03 pm

So the problem would appear to be that the device in question isn't returning a ifName and that is causing an issue.

praxtoneitor
Posts: 21
Joined: Mon Dec 21, 2009 7:57 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#13 Post by praxtoneitor » Fri Jul 05, 2019 4:35 pm

then the problem is this version of cacti, since in other versions if the same device works correctly. A pity that I can not use it for this great inconvenience. thank you very much for your attention, you have been very kind

netniV
Cacti Guru User
Posts: 2868
Joined: Sun Aug 27, 2017 12:05 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#14 Post by netniV » Fri Jul 05, 2019 6:25 pm

We are discussing why this is a problem since if the ifName isn't available it should then use one of the others, such as ifDescr or ifAlias (I forget which without looking at the resource file).

There was a change to use ifName because it was found that ifAlias was unreliable but now it would appear to be a problem for you so we will have to run a test to make sure it 's not broken.

praxtoneitor
Posts: 21
Joined: Mon Dec 21, 2009 7:57 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

#15 Post by praxtoneitor » Fri Jul 05, 2019 6:35 pm

I would be very grateful, thank you

Post Reply