No Data query from CBWFQ.pl script

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
engduong
Posts: 2
Joined: Wed Apr 16, 2008 7:33 am
Contact:

No Data query from CBWFQ.pl script

Post by engduong »

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!
steagu
Posts: 37
Joined: Thu Nov 15, 2007 12:15 pm
Location: Manchester, United Kingdom

Post by steagu »

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
flipflap
Cacti User
Posts: 142
Joined: Sat Jul 09, 2005 3:13 pm

Post by flipflap »

hi,

edit the cbwfq.pl file

change the $snmppath = to reflect the path of your snmpwalk file or go to cacti console --> settings --> paths tab and check the value of "snmpwalk Binary Path"

then do the following

my $snmppath = "snmpwalk Binary Path";
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests