Cisco CBWFQ monitoring
Moderators: Developers, Moderators
Please help
Hi All
I need your help with this. I am trying to monitor my QoS with this script and when i did my verbose query, this is the output it gives me.
+ Running data query [14].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_queries/cbwfq.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl /var/www/html/scripts/cbwfq.pl hostname commstring index'
+ Executing script query 'perl /var/www/html/scripts/cbwfq.pl cgl-cr38wsp-1b.bfnet.net t3nFBn1md40r query class'
+ Found data query XML file at '/var/www/html/resource/script_queries/cbwfq.xml'
+ Found data query XML file at '/var/www/html/resource/script_queries/cbwfq.xml'
+ Found data query XML file at '/var/www/html/resource/script_queries/cbwfq.xml'
The query returned 0 rows and 0 columns. Does this mean my QoS is not working bcos i know for a fact that i have applied different queus to my router. Why does it not return any values. Maybe i missed something that someone can point out to.
Any help will be greatly appreciated. Thank you.
I need your help with this. I am trying to monitor my QoS with this script and when i did my verbose query, this is the output it gives me.
+ Running data query [14].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_queries/cbwfq.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl /var/www/html/scripts/cbwfq.pl hostname commstring index'
+ Executing script query 'perl /var/www/html/scripts/cbwfq.pl cgl-cr38wsp-1b.bfnet.net t3nFBn1md40r query class'
+ Found data query XML file at '/var/www/html/resource/script_queries/cbwfq.xml'
+ Found data query XML file at '/var/www/html/resource/script_queries/cbwfq.xml'
+ Found data query XML file at '/var/www/html/resource/script_queries/cbwfq.xml'
The query returned 0 rows and 0 columns. Does this mean my QoS is not working bcos i know for a fact that i have applied different queus to my router. Why does it not return any values. Maybe i missed something that someone can point out to.
Any help will be greatly appreciated. Thank you.
I have created some diagrams using this template.
After deleting them (from graph management) cacti does not allow me to recreate them (the classes are grey and i cant select them)-> In the photo the 2nd, and the last 2 classes.
Is anyway to "force" cacti to enable the checboxes?
thx
After deleting them (from graph management) cacti does not allow me to recreate them (the classes are grey and i cant select them)-> In the photo the 2nd, and the last 2 classes.
Is anyway to "force" cacti to enable the checboxes?
thx
- Attachments
-
- class
- class.gif (5.14 KiB) Viewed 29886 times
cacti rulez!
Workaround to fix this
JJXJJX wrote:I have created some diagrams using this template.
After deleting them (from graph management) cacti does not allow me to recreate them (the classes are grey and i cant select them)-> In the photo the 2nd, and the last 2 classes.
Is anyway to "force" cacti to enable the checboxes?
thx
The only way I have found is to duplecate an existing graph item, then select it and change the data source to the correct rrd. I have had to do this a number of times. There is an issue with MYSQL and the PHP code that creates/deletes the entries
Re: Workaround to fix this
this is what i am doing, but as usually i was searching for a better wayfalco878 wrote:JJXJJX wrote:I have created some diagrams using this template.
After deleting them (from graph management) cacti does not allow me to recreate them (the classes are grey and i cant select them)-> In the photo the 2nd, and the last 2 classes.
Is anyway to "force" cacti to enable the checboxes?
thx
The only way I have found is to duplecate an existing graph item, then select it and change the data source to the correct rrd. I have had to do this a number of times. There is an issue with MYSQL and the PHP code that creates/deletes the entries
cacti rulez!
qospol.pl get error when running
we cannot see the graph, we are using fedora dan when run the perl qospol.pl get this error
Bareword found where operator expected at ./qospol.pl line 44, near "/usr/bin"
(Missing operator before bin?)
String found where operator expected at ./qospol.pl line 44, near "$snmpv"c""
(Missing operator before "c"?)
Scalar found where operator expected at ./qospol.pl line 44, near ""c" $node"
(Missing operator before $node?)
Number found where operator expected at ./qospol.pl line 44, near "$node 1.3.6.1.4.1.9.9.166.1.7.1.1.1"
(Missing operator before 1.3.6.1.4.1.9.9.166.1.7.1.1.1?)
Bareword found where operator expected at ./qospol.pl line 48, near "/usr/bin"
(Missing operator before bin?)
String found where operator expected at ./qospol.pl line 48, near "$snmpv"c""
(Missing operator before "c"?)
Scalar found where operator expected at ./qospol.pl line 48, near ""c" $node"
(Missing operator before $node?)
Number found where operator expected at ./qospol.pl line 48, near "$node 1.3.6.1.4.1.9.9.166.1.5.1.1.2"
(Missing operator before 1.3.6.1.4.1.9.9.166.1.5.1.1.2?)
Bareword found where operator expected at ./qospol.pl line 51, near "/usr/bin"
(Missing operator before bin?)
String found where operator expected at ./qospol.pl line 51, near "$snmpv"c""
(Missing operator before "c"?)
Scalar found where operator expected at ./qospol.pl line 51, near ""c" $node"
(Missing operator before $node?)
Number found where operator expected at ./qospol.pl line 51, near "$node 1.3.6.1.4.1.9.9.166.1.1.1.1.4"
(Missing operator before 1.3.6.1.4.1.9.9.166.1.1.1.1.4?)
Bareword found where operator expected at ./qospol.pl line 100, near "/usr/bin"
(Missing operator before bin?)
String found where operator expected at ./qospol.pl line 100, near "$snmpv"c""
(Missing operator before "c"?)
Scalar found where operator expected at ./qospol.pl line 100, near ""c" $node"
(Missing operator before $node?)
Number found where operator expected at ./qospol.pl line 100, near "$node 1.3.6.1.2.1.31.1.1.1.1"
(Missing operator before 1.3.6.1.2.1.31.1.1.1.1?)
"my" variable $intindex masks earlier declaration in same scope at ./qospol.pl line 108.
syntax error at ./qospol.pl line 44, near "/usr/bin"
syntax error at ./qospol.pl line 48, near "/usr/bin"
syntax error at ./qospol.pl line 51, near "/usr/bin"
syntax error at ./qospol.pl line 100, near "/usr/bin"
can any body help us ?
Bareword found where operator expected at ./qospol.pl line 44, near "/usr/bin"
(Missing operator before bin?)
String found where operator expected at ./qospol.pl line 44, near "$snmpv"c""
(Missing operator before "c"?)
Scalar found where operator expected at ./qospol.pl line 44, near ""c" $node"
(Missing operator before $node?)
Number found where operator expected at ./qospol.pl line 44, near "$node 1.3.6.1.4.1.9.9.166.1.7.1.1.1"
(Missing operator before 1.3.6.1.4.1.9.9.166.1.7.1.1.1?)
Bareword found where operator expected at ./qospol.pl line 48, near "/usr/bin"
(Missing operator before bin?)
String found where operator expected at ./qospol.pl line 48, near "$snmpv"c""
(Missing operator before "c"?)
Scalar found where operator expected at ./qospol.pl line 48, near ""c" $node"
(Missing operator before $node?)
Number found where operator expected at ./qospol.pl line 48, near "$node 1.3.6.1.4.1.9.9.166.1.5.1.1.2"
(Missing operator before 1.3.6.1.4.1.9.9.166.1.5.1.1.2?)
Bareword found where operator expected at ./qospol.pl line 51, near "/usr/bin"
(Missing operator before bin?)
String found where operator expected at ./qospol.pl line 51, near "$snmpv"c""
(Missing operator before "c"?)
Scalar found where operator expected at ./qospol.pl line 51, near ""c" $node"
(Missing operator before $node?)
Number found where operator expected at ./qospol.pl line 51, near "$node 1.3.6.1.4.1.9.9.166.1.1.1.1.4"
(Missing operator before 1.3.6.1.4.1.9.9.166.1.1.1.1.4?)
Bareword found where operator expected at ./qospol.pl line 100, near "/usr/bin"
(Missing operator before bin?)
String found where operator expected at ./qospol.pl line 100, near "$snmpv"c""
(Missing operator before "c"?)
Scalar found where operator expected at ./qospol.pl line 100, near ""c" $node"
(Missing operator before $node?)
Number found where operator expected at ./qospol.pl line 100, near "$node 1.3.6.1.2.1.31.1.1.1.1"
(Missing operator before 1.3.6.1.2.1.31.1.1.1.1?)
"my" variable $intindex masks earlier declaration in same scope at ./qospol.pl line 108.
syntax error at ./qospol.pl line 44, near "/usr/bin"
syntax error at ./qospol.pl line 48, near "/usr/bin"
syntax error at ./qospol.pl line 51, near "/usr/bin"
syntax error at ./qospol.pl line 100, near "/usr/bin"
can any body help us ?
Moonman's Script and templates
I finally got this working on the FreeBSD Cacti Applicance (http://www.vmware.com/vmtn/appliances/directory/310). CBWFQ is excellent once you get it working.
I think what I need was:
I think what I need was:
- cbwfq.zip from the post on 25 July 2005 (with cbwfq.pl v0.54)
copy cbwfq.pl to <cacti_path>/scripts
copy cbwfq.xml to <cacti_path>/resource/script_queries
change owner on these files (to "nobody" for appliance)
edit cbwfq.pl - change the order of "$node -c $comm" to "-c $comm $node" throughout the script
make sure the path for snmpget and snmpwalk are correct in cbwfq.pl (/opt/net-snmp/bin/snmpget and /opt/net-snmp/bin/snmpwalk for the appliance)
edit cbwfq.xml - I had to specify the full path to perl in the <script_path> (/usr/bin/perl)
import cacti_data_query_cisco_cbq_classmap.xml"
Define the "Data Input Method"
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Moving to scripts/templates.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
no rrd created
I have attempted to load the moonman script onto a W2K3. I have changed the xml and perl script files to point to my locations for snmpwalk, get, etc. I have imported the files (3 file from moonman post) and created the data source as found in this forum. When running against a router, I get get rows returned under the data queries section of device edit. When I create graphs for the host, I do see valid interfaces with the classes that are applied to them. If I select interfaces/classes and create the graph, it generates the data source with the name of Routerhostname - Bytes - |query_class| for all interfaces and does not begin to create the rrd files. I am attempting to run this against a Cisco 7609 with as much as 4000 subinterfaces, with several hundred that have policys applied to the subinterface. Is this attempting to run agains too big of a router? Anyone have some suggestions?
Graph Name
Hi All,
This may seem like a small thing, but my management team "need it" so that it is easy to read.
I have the graphs working with data, but the name on the graphs is not showing the full class name. When I run the full snmpwalk from a command line, I get the reply
"SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1029 = STRING: "ce_vpn_79900004_l2l", but on the graph the name is only showing as "ce_vpn_79900004". Is there anyway I can have the full name or even the last bit, which is the actual description.
Any assistance, is greatly appreciated.
This may seem like a small thing, but my management team "need it" so that it is easy to read.
I have the graphs working with data, but the name on the graphs is not showing the full class name. When I run the full snmpwalk from a command line, I get the reply
"SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1029 = STRING: "ce_vpn_79900004_l2l", but on the graph the name is only showing as "ce_vpn_79900004". Is there anyway I can have the full name or even the last bit, which is the actual description.
Any assistance, is greatly appreciated.
I have problem with CBWFQ.pl result.
Dear all,
Please help me aou this I met the problem the same with alot thing on forum But i have not gotten the clear way to solve it. I am newer caciti user.
The problem here
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'
and when I run from comandline
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
Thanks much.
Please help me aou this I met the problem the same with alot thing on forum But i have not gotten the clear way to solve it. I am newer caciti user.
The problem here
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'
and when I run from comandline
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
Thanks much.
Re: script by MOONMAN
Regarding MoonMan's script reading interfaces that contain a colon -
cbwfq.xml:
Change
<output_delimeter>:</output_delimeter>
To be
<output_delimeter>!</output_delimeter>
cbwfq.pl:
Change line 124 from
push @class_index , "$values[-2].$values[-1]:$class-$policy_name-$interface\n";
to
push @class_index , "$values[-2].$values[-1]!$class-$policy_name-$interface\n";
This will allow your data query to parse the class names correctly.
I hope that helps some of you still looking this.
Ok, so I know, it's like 3 years later, but this is what you want to change:starkie wrote:cool, where abouts on the cbwfq.pl do you change it.SergM wrote:If interface name contains ":", as in my case
Serial0/0/0:1
change in cbwfq.xml
<output_delimeter>:</output_delimeter>
at
<output_delimeter>!</output_delimeter>
and make corresponding changes in cbwfq.pl
thanks
cbwfq.xml:
Change
<output_delimeter>:</output_delimeter>
To be
<output_delimeter>!</output_delimeter>
cbwfq.pl:
Change line 124 from
push @class_index , "$values[-2].$values[-1]:$class-$policy_name-$interface\n";
to
push @class_index , "$values[-2].$values[-1]!$class-$policy_name-$interface\n";
This will allow your data query to parse the class names correctly.
I hope that helps some of you still looking this.
- Pete
How can I plot different class-map on the same graph ?
Thanks a lot to all, the template is working fine.
But I would like to plot different data coming from different matches on the same graph to have a global view ?
Any idea ?
Thanks
Crazy
But I would like to plot different data coming from different matches on the same graph to have a global view ?
Any idea ?
Thanks
Crazy
Does anyone know if this was ever solved? I see that this thread has been dead for a while, is there an updated version of these templates? Are people just using the OP's template vs. Moonman's? I'd really like to know if anyone has solved this |query_class| problem..GreenSkol wrote: 2) |query_class| problem
I'm currently having the same problem as many : Data Query works fine, but graphs aren't created correctly.
To find the bug, I installed pwozney files and just replaced the perl script by moonman's one :
- with pwozney's : everything is ok.
- with moonman's : query_class problem.
=> The only differences : index format (nnn vs nnn.nnn) and class field (short one vs long one with : and . chars)
Output from moonman's (2821 router, policy applied on 802.1q interface):
against output from pwozney's (same router):Code: Select all
1063.1065:CLASS1-POLICY1-FastEthernet0/0.5-802.1Q 1063.1071:class-default-POLICY1-FastEthernet0/0.5-802.1Q
Code: Select all
1029:CLASS1 1025:class-default
But on an older 2610 router (policy applied on Serial interface, moonman's script works !
Code: Select all
1053.1055:CLASS1-POLICY1-Serial0/0 1053.1067:class-default-POLICY1-Serial0/0
There must be a serious bug in cacti that can't find back data stored in it's cache! The php code for graph creation is too much of a mess to solve this problem this afternoon
I'll try to upgrade to 0.8.6h to see if it solves anything...
Thanks..
skatter
Has anyone been successful with Moonman's script using Cacti 0.8.7b? The script itself works fine via command line, but the data query is not returning any results in Cacti and Verbose Query just hangs to where I have to close the browser and re-open. Just wondering if this is a 0.8.7 issue or not.
Thanks.
Thanks.
Who is online
Users browsing this forum: No registered users and 2 guests