[SOLVED] Custom Data Query: No SNMP data returned.
Moderators: Developers, Moderators
[SOLVED] Custom Data Query: No SNMP data returned.
Hi all,
I'm just trying to get statistics data from vlan devices via iptables and I've got a "No SNMP data returned" error when cacti executes de query.
Client-side perl script to gathering data: cacti_ians_statistics.pl
Client-side snmpd config:
- exec .1.3.6.1.4.1.2021.50 iansstatistics /usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -i
- exec .1.3.6.1.4.1.2021.51 iansstatistics /usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -c
- exec .1.3.6.1.4.1.2021.52 iansstatistics /usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -v
- exec .1.3.6.1.4.1.2021.53 iansstatistics /usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -in
- exec .1.3.6.1.4.1.2021.54 iansstatistics /usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -out
- exec .1.3.6.1.4.1.2021.55 iansstatistics /usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -all
SNMP remote query execution:
GET INDEX:
# snmpwalk -v 2c -c xxxx x.x.x.x .1.3.6.1.4.1.2021.50
UCD-SNMP-MIB::ucdavis.50.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.50.2.1 = STRING: "iansstatistics"
UCD-SNMP-MIB::ucdavis.50.3.1 = STRING: "/usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -i"
UCD-SNMP-MIB::ucdavis.50.100.1 = INTEGER: 20
UCD-SNMP-MIB::ucdavis.50.101.1 = STRING: "1"
UCD-SNMP-MIB::ucdavis.50.101.2 = STRING: "2"
UCD-SNMP-MIB::ucdavis.50.101.3 = STRING: "3"
UCD-SNMP-MIB::ucdavis.50.101.4 = STRING: "4"
UCD-SNMP-MIB::ucdavis.50.101.5 = STRING: "5"
UCD-SNMP-MIB::ucdavis.50.101.6 = STRING: "6"
UCD-SNMP-MIB::ucdavis.50.101.7 = STRING: "7"
UCD-SNMP-MIB::ucdavis.50.101.8 = STRING: "8"
UCD-SNMP-MIB::ucdavis.50.101.9 = STRING: "9"
UCD-SNMP-MIB::ucdavis.50.101.10 = STRING: "10"
UCD-SNMP-MIB::ucdavis.50.101.11 = STRING: "11"
UCD-SNMP-MIB::ucdavis.50.101.12 = STRING: "12"
UCD-SNMP-MIB::ucdavis.50.101.13 = STRING: "13"
UCD-SNMP-MIB::ucdavis.50.101.14 = STRING: "14"
UCD-SNMP-MIB::ucdavis.50.101.15 = STRING: "15"
UCD-SNMP-MIB::ucdavis.50.101.16 = STRING: "16"
UCD-SNMP-MIB::ucdavis.50.101.17 = STRING: "17"
UCD-SNMP-MIB::ucdavis.50.101.18 = STRING: "18"
UCD-SNMP-MIB::ucdavis.50.101.19 = STRING: "19"
UCD-SNMP-MIB::ucdavis.50.101.20 = STRING: "20"
UCD-SNMP-MIB::ucdavis.50.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.50.103.1 = ""
GET CLIENTNAME:
# snmpwalk -v 2c -c xxxx x.x.x.x .1.3.6.1.4.1.2021.51
UCD-SNMP-MIB::ucdavis.51.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.51.2.1 = STRING: "iansstatistics"
UCD-SNMP-MIB::ucdavis.51.3.1 = STRING: "/usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -c"
UCD-SNMP-MIB::ucdavis.51.100.1 = INTEGER: 20
UCD-SNMP-MIB::ucdavis.51.101.1 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.2 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.3 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.4 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.5 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.6 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.7 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.8 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.9 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.10 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.11 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.12 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.13 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.14 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.15 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.16 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.17 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.18 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.19 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.20 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.51.103.1 = ""
GET VLAN DEV:
# snmpwalk -v 2c -c xxxx x.x.x.x .1.3.6.1.4.1.2021.52
UCD-SNMP-MIB::ucdavis.52.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.52.2.1 = STRING: "iansstatistics"
UCD-SNMP-MIB::ucdavis.52.3.1 = STRING: "/usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -v"
UCD-SNMP-MIB::ucdavis.52.100.1 = INTEGER: 20
UCD-SNMP-MIB::ucdavis.52.101.1 = STRING: "vlan210"
UCD-SNMP-MIB::ucdavis.52.101.2 = STRING: "vlan237"
UCD-SNMP-MIB::ucdavis.52.101.3 = STRING: "vlan231"
UCD-SNMP-MIB::ucdavis.52.101.4 = STRING: "vlan235"
UCD-SNMP-MIB::ucdavis.52.101.5 = STRING: "vlan218"
UCD-SNMP-MIB::ucdavis.52.101.6 = STRING: "vlan221"
UCD-SNMP-MIB::ucdavis.52.101.7 = STRING: "vlan223"
UCD-SNMP-MIB::ucdavis.52.101.8 = STRING: "vlan216"
UCD-SNMP-MIB::ucdavis.52.101.9 = STRING: "vlan215"
UCD-SNMP-MIB::ucdavis.52.101.10 = STRING: "vlan211"
UCD-SNMP-MIB::ucdavis.52.101.11 = STRING: "vlan212"
UCD-SNMP-MIB::ucdavis.52.101.12 = STRING: "vlan219"
UCD-SNMP-MIB::ucdavis.52.101.13 = STRING: "vlan213"
UCD-SNMP-MIB::ucdavis.52.101.14 = STRING: "vlan217"
UCD-SNMP-MIB::ucdavis.52.101.15 = STRING: "vlan220"
UCD-SNMP-MIB::ucdavis.52.101.16 = STRING: "vlan222"
UCD-SNMP-MIB::ucdavis.52.101.17 = STRING: "vlan233"
UCD-SNMP-MIB::ucdavis.52.101.18 = STRING: "vlan227"
UCD-SNMP-MIB::ucdavis.52.101.19 = STRING: "vlan225"
UCD-SNMP-MIB::ucdavis.52.101.20 = STRING: "vlan214"
UCD-SNMP-MIB::ucdavis.52.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.52.103.1 = ""
GET BYTES IN:
# snmpwalk -v 2c -c xxxx x.x.x.x .1.3.6.1.4.1.2021.53
UCD-SNMP-MIB::ucdavis.53.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.53.2.1 = STRING: "iansstatistics"
UCD-SNMP-MIB::ucdavis.53.3.1 = STRING: "/usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -in"
UCD-SNMP-MIB::ucdavis.53.100.1 = INTEGER: 20
UCD-SNMP-MIB::ucdavis.53.101.1 = STRING: "2294526"
UCD-SNMP-MIB::ucdavis.53.101.2 = STRING: "9263384237"
UCD-SNMP-MIB::ucdavis.53.101.3 = STRING: "4689555313"
UCD-SNMP-MIB::ucdavis.53.101.4 = STRING: "240300215929"
UCD-SNMP-MIB::ucdavis.53.101.5 = STRING: "63253709"
UCD-SNMP-MIB::ucdavis.53.101.6 = STRING: "216589620053"
UCD-SNMP-MIB::ucdavis.53.101.7 = STRING: "6930181764"
UCD-SNMP-MIB::ucdavis.53.101.8 = STRING: "1333068"
UCD-SNMP-MIB::ucdavis.53.101.9 = STRING: "7210452508"
UCD-SNMP-MIB::ucdavis.53.101.10 = STRING: "156700758901"
UCD-SNMP-MIB::ucdavis.53.101.11 = STRING: "1285447"
UCD-SNMP-MIB::ucdavis.53.101.12 = STRING: "3281445332"
UCD-SNMP-MIB::ucdavis.53.101.13 = STRING: "400185437521"
UCD-SNMP-MIB::ucdavis.53.101.14 = STRING: "4990756508"
UCD-SNMP-MIB::ucdavis.53.101.15 = STRING: "16931154"
UCD-SNMP-MIB::ucdavis.53.101.16 = STRING: "1563484225"
UCD-SNMP-MIB::ucdavis.53.101.17 = STRING: "736856692"
UCD-SNMP-MIB::ucdavis.53.101.18 = STRING: "1128320401"
UCD-SNMP-MIB::ucdavis.53.101.19 = STRING: "28269307013"
UCD-SNMP-MIB::ucdavis.53.101.20 = STRING: "511005"
UCD-SNMP-MIB::ucdavis.53.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.53.103.1 = ""
GET BYTES OUT:
# snmpwalk -v 2c -c xxxx x.x.x.x .1.3.6.1.4.1.2021.54
UCD-SNMP-MIB::ucdavis.54.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.54.2.1 = STRING: "iansstatistics"
UCD-SNMP-MIB::ucdavis.54.3.1 = STRING: "/usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -out"
UCD-SNMP-MIB::ucdavis.54.100.1 = INTEGER: 20
UCD-SNMP-MIB::ucdavis.54.101.1 = STRING: "13184966"
UCD-SNMP-MIB::ucdavis.54.101.2 = STRING: "24279566390"
UCD-SNMP-MIB::ucdavis.54.101.3 = STRING: "5568166633"
UCD-SNMP-MIB::ucdavis.54.101.4 = STRING: "76170012979"
UCD-SNMP-MIB::ucdavis.54.101.5 = STRING: "862365962"
UCD-SNMP-MIB::ucdavis.54.101.6 = STRING: "105975217313"
UCD-SNMP-MIB::ucdavis.54.101.7 = STRING: "132805312888"
UCD-SNMP-MIB::ucdavis.54.101.8 = STRING: "11551099"
UCD-SNMP-MIB::ucdavis.54.101.9 = STRING: "14983854831"
UCD-SNMP-MIB::ucdavis.54.101.10 = STRING: "881607443999"
UCD-SNMP-MIB::ucdavis.54.101.11 = STRING: "2235486"
UCD-SNMP-MIB::ucdavis.54.101.12 = STRING: "34706278121"
UCD-SNMP-MIB::ucdavis.54.101.13 = STRING: "152780084784"
UCD-SNMP-MIB::ucdavis.54.101.14 = STRING: "133028152775"
UCD-SNMP-MIB::ucdavis.54.101.15 = STRING: "8887856"
UCD-SNMP-MIB::ucdavis.54.101.16 = STRING: "5505950635"
UCD-SNMP-MIB::ucdavis.54.101.17 = STRING: "630135362"
UCD-SNMP-MIB::ucdavis.54.101.18 = STRING: "19162052936"
UCD-SNMP-MIB::ucdavis.54.101.19 = STRING: "7452463238"
UCD-SNMP-MIB::ucdavis.54.101.20 = STRING: "492524"
UCD-SNMP-MIB::ucdavis.54.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.54.103.1 = ""
SNMP XML Query: ians.xml
Data Query Debug Information
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.50.101'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
Can anybody help me? I suspect that problem is in perl client-side script. It returns the index as STRING in spite of INTEGER...
Thanks!
I'm just trying to get statistics data from vlan devices via iptables and I've got a "No SNMP data returned" error when cacti executes de query.
Client-side perl script to gathering data: cacti_ians_statistics.pl
Client-side snmpd config:
- exec .1.3.6.1.4.1.2021.50 iansstatistics /usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -i
- exec .1.3.6.1.4.1.2021.51 iansstatistics /usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -c
- exec .1.3.6.1.4.1.2021.52 iansstatistics /usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -v
- exec .1.3.6.1.4.1.2021.53 iansstatistics /usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -in
- exec .1.3.6.1.4.1.2021.54 iansstatistics /usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -out
- exec .1.3.6.1.4.1.2021.55 iansstatistics /usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -all
SNMP remote query execution:
GET INDEX:
# snmpwalk -v 2c -c xxxx x.x.x.x .1.3.6.1.4.1.2021.50
UCD-SNMP-MIB::ucdavis.50.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.50.2.1 = STRING: "iansstatistics"
UCD-SNMP-MIB::ucdavis.50.3.1 = STRING: "/usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -i"
UCD-SNMP-MIB::ucdavis.50.100.1 = INTEGER: 20
UCD-SNMP-MIB::ucdavis.50.101.1 = STRING: "1"
UCD-SNMP-MIB::ucdavis.50.101.2 = STRING: "2"
UCD-SNMP-MIB::ucdavis.50.101.3 = STRING: "3"
UCD-SNMP-MIB::ucdavis.50.101.4 = STRING: "4"
UCD-SNMP-MIB::ucdavis.50.101.5 = STRING: "5"
UCD-SNMP-MIB::ucdavis.50.101.6 = STRING: "6"
UCD-SNMP-MIB::ucdavis.50.101.7 = STRING: "7"
UCD-SNMP-MIB::ucdavis.50.101.8 = STRING: "8"
UCD-SNMP-MIB::ucdavis.50.101.9 = STRING: "9"
UCD-SNMP-MIB::ucdavis.50.101.10 = STRING: "10"
UCD-SNMP-MIB::ucdavis.50.101.11 = STRING: "11"
UCD-SNMP-MIB::ucdavis.50.101.12 = STRING: "12"
UCD-SNMP-MIB::ucdavis.50.101.13 = STRING: "13"
UCD-SNMP-MIB::ucdavis.50.101.14 = STRING: "14"
UCD-SNMP-MIB::ucdavis.50.101.15 = STRING: "15"
UCD-SNMP-MIB::ucdavis.50.101.16 = STRING: "16"
UCD-SNMP-MIB::ucdavis.50.101.17 = STRING: "17"
UCD-SNMP-MIB::ucdavis.50.101.18 = STRING: "18"
UCD-SNMP-MIB::ucdavis.50.101.19 = STRING: "19"
UCD-SNMP-MIB::ucdavis.50.101.20 = STRING: "20"
UCD-SNMP-MIB::ucdavis.50.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.50.103.1 = ""
GET CLIENTNAME:
# snmpwalk -v 2c -c xxxx x.x.x.x .1.3.6.1.4.1.2021.51
UCD-SNMP-MIB::ucdavis.51.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.51.2.1 = STRING: "iansstatistics"
UCD-SNMP-MIB::ucdavis.51.3.1 = STRING: "/usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -c"
UCD-SNMP-MIB::ucdavis.51.100.1 = INTEGER: 20
UCD-SNMP-MIB::ucdavis.51.101.1 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.2 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.3 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.4 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.5 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.6 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.7 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.8 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.9 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.10 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.11 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.12 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.13 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.14 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.15 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.16 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.17 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.18 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.19 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.101.20 = STRING: "NAME"
UCD-SNMP-MIB::ucdavis.51.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.51.103.1 = ""
GET VLAN DEV:
# snmpwalk -v 2c -c xxxx x.x.x.x .1.3.6.1.4.1.2021.52
UCD-SNMP-MIB::ucdavis.52.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.52.2.1 = STRING: "iansstatistics"
UCD-SNMP-MIB::ucdavis.52.3.1 = STRING: "/usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -v"
UCD-SNMP-MIB::ucdavis.52.100.1 = INTEGER: 20
UCD-SNMP-MIB::ucdavis.52.101.1 = STRING: "vlan210"
UCD-SNMP-MIB::ucdavis.52.101.2 = STRING: "vlan237"
UCD-SNMP-MIB::ucdavis.52.101.3 = STRING: "vlan231"
UCD-SNMP-MIB::ucdavis.52.101.4 = STRING: "vlan235"
UCD-SNMP-MIB::ucdavis.52.101.5 = STRING: "vlan218"
UCD-SNMP-MIB::ucdavis.52.101.6 = STRING: "vlan221"
UCD-SNMP-MIB::ucdavis.52.101.7 = STRING: "vlan223"
UCD-SNMP-MIB::ucdavis.52.101.8 = STRING: "vlan216"
UCD-SNMP-MIB::ucdavis.52.101.9 = STRING: "vlan215"
UCD-SNMP-MIB::ucdavis.52.101.10 = STRING: "vlan211"
UCD-SNMP-MIB::ucdavis.52.101.11 = STRING: "vlan212"
UCD-SNMP-MIB::ucdavis.52.101.12 = STRING: "vlan219"
UCD-SNMP-MIB::ucdavis.52.101.13 = STRING: "vlan213"
UCD-SNMP-MIB::ucdavis.52.101.14 = STRING: "vlan217"
UCD-SNMP-MIB::ucdavis.52.101.15 = STRING: "vlan220"
UCD-SNMP-MIB::ucdavis.52.101.16 = STRING: "vlan222"
UCD-SNMP-MIB::ucdavis.52.101.17 = STRING: "vlan233"
UCD-SNMP-MIB::ucdavis.52.101.18 = STRING: "vlan227"
UCD-SNMP-MIB::ucdavis.52.101.19 = STRING: "vlan225"
UCD-SNMP-MIB::ucdavis.52.101.20 = STRING: "vlan214"
UCD-SNMP-MIB::ucdavis.52.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.52.103.1 = ""
GET BYTES IN:
# snmpwalk -v 2c -c xxxx x.x.x.x .1.3.6.1.4.1.2021.53
UCD-SNMP-MIB::ucdavis.53.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.53.2.1 = STRING: "iansstatistics"
UCD-SNMP-MIB::ucdavis.53.3.1 = STRING: "/usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -in"
UCD-SNMP-MIB::ucdavis.53.100.1 = INTEGER: 20
UCD-SNMP-MIB::ucdavis.53.101.1 = STRING: "2294526"
UCD-SNMP-MIB::ucdavis.53.101.2 = STRING: "9263384237"
UCD-SNMP-MIB::ucdavis.53.101.3 = STRING: "4689555313"
UCD-SNMP-MIB::ucdavis.53.101.4 = STRING: "240300215929"
UCD-SNMP-MIB::ucdavis.53.101.5 = STRING: "63253709"
UCD-SNMP-MIB::ucdavis.53.101.6 = STRING: "216589620053"
UCD-SNMP-MIB::ucdavis.53.101.7 = STRING: "6930181764"
UCD-SNMP-MIB::ucdavis.53.101.8 = STRING: "1333068"
UCD-SNMP-MIB::ucdavis.53.101.9 = STRING: "7210452508"
UCD-SNMP-MIB::ucdavis.53.101.10 = STRING: "156700758901"
UCD-SNMP-MIB::ucdavis.53.101.11 = STRING: "1285447"
UCD-SNMP-MIB::ucdavis.53.101.12 = STRING: "3281445332"
UCD-SNMP-MIB::ucdavis.53.101.13 = STRING: "400185437521"
UCD-SNMP-MIB::ucdavis.53.101.14 = STRING: "4990756508"
UCD-SNMP-MIB::ucdavis.53.101.15 = STRING: "16931154"
UCD-SNMP-MIB::ucdavis.53.101.16 = STRING: "1563484225"
UCD-SNMP-MIB::ucdavis.53.101.17 = STRING: "736856692"
UCD-SNMP-MIB::ucdavis.53.101.18 = STRING: "1128320401"
UCD-SNMP-MIB::ucdavis.53.101.19 = STRING: "28269307013"
UCD-SNMP-MIB::ucdavis.53.101.20 = STRING: "511005"
UCD-SNMP-MIB::ucdavis.53.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.53.103.1 = ""
GET BYTES OUT:
# snmpwalk -v 2c -c xxxx x.x.x.x .1.3.6.1.4.1.2021.54
UCD-SNMP-MIB::ucdavis.54.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.54.2.1 = STRING: "iansstatistics"
UCD-SNMP-MIB::ucdavis.54.3.1 = STRING: "/usr/bin/perl /opt/scripts/cacti_ians_statistics.pl -out"
UCD-SNMP-MIB::ucdavis.54.100.1 = INTEGER: 20
UCD-SNMP-MIB::ucdavis.54.101.1 = STRING: "13184966"
UCD-SNMP-MIB::ucdavis.54.101.2 = STRING: "24279566390"
UCD-SNMP-MIB::ucdavis.54.101.3 = STRING: "5568166633"
UCD-SNMP-MIB::ucdavis.54.101.4 = STRING: "76170012979"
UCD-SNMP-MIB::ucdavis.54.101.5 = STRING: "862365962"
UCD-SNMP-MIB::ucdavis.54.101.6 = STRING: "105975217313"
UCD-SNMP-MIB::ucdavis.54.101.7 = STRING: "132805312888"
UCD-SNMP-MIB::ucdavis.54.101.8 = STRING: "11551099"
UCD-SNMP-MIB::ucdavis.54.101.9 = STRING: "14983854831"
UCD-SNMP-MIB::ucdavis.54.101.10 = STRING: "881607443999"
UCD-SNMP-MIB::ucdavis.54.101.11 = STRING: "2235486"
UCD-SNMP-MIB::ucdavis.54.101.12 = STRING: "34706278121"
UCD-SNMP-MIB::ucdavis.54.101.13 = STRING: "152780084784"
UCD-SNMP-MIB::ucdavis.54.101.14 = STRING: "133028152775"
UCD-SNMP-MIB::ucdavis.54.101.15 = STRING: "8887856"
UCD-SNMP-MIB::ucdavis.54.101.16 = STRING: "5505950635"
UCD-SNMP-MIB::ucdavis.54.101.17 = STRING: "630135362"
UCD-SNMP-MIB::ucdavis.54.101.18 = STRING: "19162052936"
UCD-SNMP-MIB::ucdavis.54.101.19 = STRING: "7452463238"
UCD-SNMP-MIB::ucdavis.54.101.20 = STRING: "492524"
UCD-SNMP-MIB::ucdavis.54.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.54.103.1 = ""
SNMP XML Query: ians.xml
Data Query Debug Information
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.50.101'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
Can anybody help me? I suspect that problem is in perl client-side script. It returns the index as STRING in spite of INTEGER...
Thanks!
- Attachments
-
- cacti_ians_statistics.pl
- (1.39 KiB) Downloaded 294 times
-
- ians.xml
- (1.28 KiB) Downloaded 131 times
-
- DataQueryDef.png (82.25 KiB) Viewed 3295 times
Last edited by Guillem on Fri Dec 28, 2007 8:11 am, edited 1 time in total.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please run and show the output
Reinhard
Code: Select all
snmpwalk -v 2c -c xxxx x.x.x.x .1.3.6.1.4.1.2021.50.101
Reinhard
Hi gandalf,
# snmpwalk -v 2c -c xxxx x.x.x.x .1.3.6.1.4.1.2021.50.101
UCD-SNMP-MIB::ucdavis.50.101.1 = STRING: "1"
UCD-SNMP-MIB::ucdavis.50.101.2 = STRING: "2"
UCD-SNMP-MIB::ucdavis.50.101.3 = STRING: "3"
UCD-SNMP-MIB::ucdavis.50.101.4 = STRING: "4"
UCD-SNMP-MIB::ucdavis.50.101.5 = STRING: "5"
UCD-SNMP-MIB::ucdavis.50.101.6 = STRING: "6"
UCD-SNMP-MIB::ucdavis.50.101.7 = STRING: "7"
UCD-SNMP-MIB::ucdavis.50.101.8 = STRING: "8"
UCD-SNMP-MIB::ucdavis.50.101.9 = STRING: "9"
UCD-SNMP-MIB::ucdavis.50.101.10 = STRING: "10"
UCD-SNMP-MIB::ucdavis.50.101.11 = STRING: "11"
UCD-SNMP-MIB::ucdavis.50.101.12 = STRING: "12"
UCD-SNMP-MIB::ucdavis.50.101.13 = STRING: "13"
UCD-SNMP-MIB::ucdavis.50.101.14 = STRING: "14"
UCD-SNMP-MIB::ucdavis.50.101.15 = STRING: "15"
UCD-SNMP-MIB::ucdavis.50.101.16 = STRING: "16"
UCD-SNMP-MIB::ucdavis.50.101.17 = STRING: "17"
UCD-SNMP-MIB::ucdavis.50.101.18 = STRING: "18"
UCD-SNMP-MIB::ucdavis.50.101.19 = STRING: "19"
UCD-SNMP-MIB::ucdavis.50.101.20 = STRING: "20"
Thanks!
# snmpwalk -v 2c -c xxxx x.x.x.x .1.3.6.1.4.1.2021.50.101
UCD-SNMP-MIB::ucdavis.50.101.1 = STRING: "1"
UCD-SNMP-MIB::ucdavis.50.101.2 = STRING: "2"
UCD-SNMP-MIB::ucdavis.50.101.3 = STRING: "3"
UCD-SNMP-MIB::ucdavis.50.101.4 = STRING: "4"
UCD-SNMP-MIB::ucdavis.50.101.5 = STRING: "5"
UCD-SNMP-MIB::ucdavis.50.101.6 = STRING: "6"
UCD-SNMP-MIB::ucdavis.50.101.7 = STRING: "7"
UCD-SNMP-MIB::ucdavis.50.101.8 = STRING: "8"
UCD-SNMP-MIB::ucdavis.50.101.9 = STRING: "9"
UCD-SNMP-MIB::ucdavis.50.101.10 = STRING: "10"
UCD-SNMP-MIB::ucdavis.50.101.11 = STRING: "11"
UCD-SNMP-MIB::ucdavis.50.101.12 = STRING: "12"
UCD-SNMP-MIB::ucdavis.50.101.13 = STRING: "13"
UCD-SNMP-MIB::ucdavis.50.101.14 = STRING: "14"
UCD-SNMP-MIB::ucdavis.50.101.15 = STRING: "15"
UCD-SNMP-MIB::ucdavis.50.101.16 = STRING: "16"
UCD-SNMP-MIB::ucdavis.50.101.17 = STRING: "17"
UCD-SNMP-MIB::ucdavis.50.101.18 = STRING: "18"
UCD-SNMP-MIB::ucdavis.50.101.19 = STRING: "19"
UCD-SNMP-MIB::ucdavis.50.101.20 = STRING: "20"
Thanks!
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.50.101'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.50.101'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please try this stripped down XML file and rerun Verbose Query
Reinhard
Code: Select all
<interface>
<name>Get SNMP Ians Interfaces</name>
<description>Queries a host for a list of monitorable ians interfaces</description>
<oid_index>.1.3.6.1.4.1.2021.50.101</oid_index>
<fields>
<ifIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2021.50.101</oid>
</ifIndex>
</fields>
</interface>
Nothing happens...
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.50.101'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.50.101'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/ians.xml'
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Definately Wireshark is the way to go on this one. The snmp walking routine cleans up just about everything.
Also please advise, are you using the php_snmp or leveraging net-snmp binaries to data collection?
TheWitness
Also please advise, are you using the php_snmp or leveraging net-snmp binaries to data collection?
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Hi,
What information about Wireshark do you need? I've got to maintain client's privacy.
I've got PHP SNMP Support enabled, although I've got NET-SNMP installed too (and configured into Cacti's path settings). So, I don't know which one is really using cacti...
Thanks!
Edited 28/12/2007:
I get the following information from "Console -> Utilities -> Technical Support":
General Information
Date Fri, 28 Dec 2007 08:40:57 +0100
Cacti Version 0.8.7a
Cacti OS unix
SNMP Version net-snmp
RRDTool Version RRDTool 1.2.x
Hosts 28
Graphs 1977
Data Sources Script/Command: 5
SNMP: 22
SNMP Query: 1952
Total: 1979
So I suppose I'm using net-snmp...
What information about Wireshark do you need? I've got to maintain client's privacy.
I've got PHP SNMP Support enabled, although I've got NET-SNMP installed too (and configured into Cacti's path settings). So, I don't know which one is really using cacti...
Thanks!
Edited 28/12/2007:
I get the following information from "Console -> Utilities -> Technical Support":
General Information
Date Fri, 28 Dec 2007 08:40:57 +0100
Cacti Version 0.8.7a
Cacti OS unix
SNMP Version net-snmp
RRDTool Version RRDTool 1.2.x
Hosts 28
Graphs 1977
Data Sources Script/Command: 5
SNMP: 22
SNMP Query: 1952
Total: 1979
So I suppose I'm using net-snmp...
Who is online
Users browsing this forum: No registered users and 2 guests