Problem with SNMP - Interface Statistics and cacti 1.2.5

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

Moderators: Developers, Moderators

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

Problem with SNMP - Interface Statistics and cacti 1.2.5

Post by praxtoneitor »

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: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
praxtoneitor
Posts: 21
Joined: Mon Dec 21, 2009 7:57 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

Post by praxtoneitor »

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

Post by praxtoneitor »

And the solution??
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
praxtoneitor
Posts: 21
Joined: Mon Dec 21, 2009 7:57 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

Post by praxtoneitor »

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 Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

Post by Osiris »

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: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

Post by netniV »

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)
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

Post by Osiris »

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

Post by praxtoneitor »

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

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

Post by praxtoneitor »

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: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

Post by netniV »

So the problem would appear to be that the device in question isn't returning a ifName and that is causing an issue.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
praxtoneitor
Posts: 21
Joined: Mon Dec 21, 2009 7:57 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

Post by praxtoneitor »

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: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
praxtoneitor
Posts: 21
Joined: Mon Dec 21, 2009 7:57 am

Re: Problem with SNMP - Interface Statistics and cacti 1.2.5

Post by praxtoneitor »

I would be very grateful, thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests