Dear all,
I have problem when i get no result from Data Query Debug Information:
+ Running data query [10].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/cbwfq.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl /var/www/html/cacti/scripts/cbwfq.pl <My IP> <My community string>index'
+ Executing script query 'perl /var/www/html/cacti/scripts/cbwfq.pl 172.16.48.1 Tickle3lmo query class'
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/cbwfq.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/cbwfq.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/cbwfq.xml'
What is wrong with me?
And when i run from comanline I get perl /var/www/html/cacti/scripts/cbwfq.pl 172.16.48.1 query class
usage:
./nmiscbwfq.pl IP COMMUNITY index
./nmiscbwfq.pl IP COMMUNITY query {bytes|class}
./nmiscbwfq.pl IP COMMUNITY get {bytes} CLASS
I am new cacti user. Please help me.
Thanks so much!
No Data query from CBWFQ.pl script
Moderators: Developers, Moderators
Hi,
For the script to work, the device that you are trying to monitor must "support" the OID that you are trying to graph. To begin with try running this from a command line:
snmpwalk -v 2c -c YOURCOMMUNITYNAME IPOFDEVICE 1.3.6.1.4.1.9.9.166.1.7.1.1.1
It should give you something along the lines of this:
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1025 = STRING: "class-default"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1029 = STRING: "ibm-director"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1035 = STRING: "citrix"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1041 = STRING: "ftp"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1047 = STRING: "snmp"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1053 = STRING: "telnet"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1059 = STRING: "qedd"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1065 = STRING: "rdp"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1071 = STRING: "ssh"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1077 = STRING: "lotus"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1105 = STRING: "SDM-Transactional-1"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1117 = STRING: "SDM-Signaling-1"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1125 = STRING: "SDM-Routing-1"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1131 = STRING: "SDM-Voice-1"
if you get "SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1 = No Such Object available on this agent at this OID" try upgrading the IOS of the device your trying to monitor to the latest version.
Hope that helps.
steve
For the script to work, the device that you are trying to monitor must "support" the OID that you are trying to graph. To begin with try running this from a command line:
snmpwalk -v 2c -c YOURCOMMUNITYNAME IPOFDEVICE 1.3.6.1.4.1.9.9.166.1.7.1.1.1
It should give you something along the lines of this:
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1025 = STRING: "class-default"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1029 = STRING: "ibm-director"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1035 = STRING: "citrix"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1041 = STRING: "ftp"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1047 = STRING: "snmp"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1053 = STRING: "telnet"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1059 = STRING: "qedd"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1065 = STRING: "rdp"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1071 = STRING: "ssh"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1077 = STRING: "lotus"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1105 = STRING: "SDM-Transactional-1"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1117 = STRING: "SDM-Signaling-1"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1125 = STRING: "SDM-Routing-1"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1131 = STRING: "SDM-Voice-1"
if you get "SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1 = No Such Object available on this agent at this OID" try upgrading the IOS of the device your trying to monitor to the latest version.
Hope that helps.
steve
Who is online
Users browsing this forum: No registered users and 3 guests