New QoS not showing up

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Enjanced
Posts: 37
Joined: Mon Jul 14, 2014 1:51 pm
Location: Buenos Aires - Argentina

New QoS not showing up

Post by Enjanced »

Hi guys. I'm in a bit of trouble and thought you might point me in the right direction.
A few days ago I replaced an interface with another. In order to assure that I can roll back, I didn't move the QoS configuracion, but rather created a new one with the same access lists.

Code: Select all

interface GigabitEthernet3/0/0.17 (new interface)
service-policy output qos-BAtoLATAM-mpls-policy-out (new policy)

interface GigabitEthernet5/2.17 (old interface)
service-policy output qos-BAtoLATAM-mpls-police-out (old policy)
The thing is that the cbwfq.pl script is not finding the new policy.
If I do a verbose query this is what I get:

Code: Select all

+ Running data query [11].
+ 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 num of indexes 'perl /var/www/html/scripts/cbwfq.pl 10.161.247.235 ***** num_indexes'
+ Found number of indexes: usage:
+ Found number of indexes: 
+ Found number of indexes: ./nmiscbwfq.pl IP COMMUNITY index
+ Found number of indexes: ./nmiscbwfq.pl IP COMMUNITY query
+ Found number of indexes: ./nmiscbwfq.pl IP COMMUNITY get {bytes|drops} index_oid
+ Executing script for list of indexes 'perl /var/www/html/scripts/cbwfq.pl 10.161.247.235 ***** index' Index Count: 23
+ Found index: 768.345233
+ Found index: 768.5941409
+ Found index: 768.7289937
+ Found index: 2530.2626529
+ Found index: 2530.3610865
+ Found index: 2530.13896209
+ Found index: 2562.3109857
+ Found index: 2562.3585009
+ Found index: 2562.4065761
+ Found index: 2562.5528929
+ Found index: 2562.6542113
+ Found index: 2562.8539601
+ Found index: 2562.9021489
+ Found index: 3266.111777
+ Found index: 3266.2064545
+ Found index: 3266.2528353
+ Found index: 3266.5028209
+ Found index: 3266.5437153
+ Found index: 3266.5823793
+ Found index: 3266.8694689
+ Found index: 3266.9890881
+ Found index: 3266.12644785
+ Found index: 3266.15864129
+ Executing script query 'perl /var/www/html/scripts/cbwfq.pl 10.161.247.235 ***** query class'
+ Found item [class='broadcast-videorunner-broadcast-traffic-marking-GigabitEthernet1/48'] index: 768.345233
+ Found item [class='pathfire-electronic-delivery-orbital-broadcast-traffic-marking-GigabitEthernet1/48'] index: 768.5941409
+ Found item [class='class-default-broadcast-traffic-marking-GigabitEthernet1/48'] index: 768.7289937
+ Found item [class='class-default-qos-BA-GC-Mia-Cloud-GigabitEthernet5/2.16'] index: 2530.2626529
+ Found item [class='broadcast-video-BAtoMIA-qos-BA-GC-Mia-Cloud-GigabitEthernet5/2.16'] index: 2530.3610865
+ Found item [class='qos-management-BAtoMIA-qos-BA-GC-Mia-Cloud-GigabitEthernet5/2.16'] index: 2530.13896209
+ Found item [class='class-default-qos-BAtoLATAM-mpls-police-out-GigabitEthernet5/2.17'] index: 2562.3109857
+ Found item [class='Server-to_LATAM_mpls-class-out-qos-BAtoLATAM-mpls-police-out-GigabitEthernet5/2.17'] index: 2562.3585009
+ Found item [class='FileTransfer-to_LATAM_mpls-class-out-qos-BAtoLATAM-mpls-police-out-GigabitEthernet5/2.17'] index: 2562.4065761
+ Found item [class='VC-to_LATAM_mpls-class-out-qos-BAtoLATAM-mpls-police-out-GigabitEthernet5/2.17'] index: 2562.5528929
+ Found item [class='Streaming-to_LATAM_mpls-class-out-qos-BAtoLATAM-mpls-police-out-GigabitEthernet5/2.17'] index: 2562.6542113
+ Found item [class='Mgt-to_LATAM_mpls-class-out-qos-BAtoLATAM-mpls-police-out-GigabitEthernet5/2.17'] index: 2562.8539601
+ Found item [class='VoIP-to_LATAM_mpls-class-out-qos-BAtoLATAM-mpls-police-out-GigabitEthernet5/2.17'] index: 2562.9021489
+ Found item [class='video-teleconferencing-rt-bawan-a-police-traffic-ATM2/0/0.1-aal5'] index: 3266.111777
+ Found item [class='voip-trunks-rt-bawan-a-police-traffic-ATM2/0/0.1-aal5'] index: 3266.2064545
+ Found item [class='aspera-traffic-rt-bawan-a-police-traffic-ATM2/0/0.1-aal5'] index: 3266.2528353
+ Found item [class='Signiant-rt-bawan-a-police-traffic-ATM2/0/0.1-aal5'] index: 3266.5028209
+ Found item [class='broadcast-videorunner-rt-bawan-a-police-traffic-ATM2/0/0.1-aal5'] index: 3266.5437153
+ Found item [class='LA-Video-rt-bawan-a-police-traffic-ATM2/0/0.1-aal5'] index: 3266.5823793
+ Found item [class='corporate-servers-mirroring-rt-bawan-a-police-traffic-ATM2/0/0.1-aal5'] index: 3266.8694689
+ Found item [class='class-default-rt-bawan-a-police-traffic-ATM2/0/0.1-aal5'] index: 3266.9890881
+ Found item [class='Aleph-Citrix-rt-bawan-a-police-traffic-ATM2/0/0.1-aal5'] index: 3266.12644785
+ Found item [class='management-rt-bawan-a-police-traffic-ATM2/0/0.1-aal5'] index: 3266.15864129
Now I did some snmpwalk from shell and I can find the new policy.

Code: Select all

[root@cacti-corp ~]# snmpwalk -Os -c **** -v 2c 10.161.247.235 1.3.6.1.4.1.9.9.166 | grep police
enterprises.9.9.166.1.6.1.1.1.3417424 = STRING: "qos-BAtoLATAM-mpls-police-out"
enterprises.9.9.166.1.6.1.1.1.10534544 = STRING: "rt-bawan-a-police-traffic"
Router is a cisco WS-C6506-E w/SUP720-3BXL running IOS 12.2(33)SXI3

Any ideas?... thank you!
Last edited by Enjanced on Mon May 11, 2015 7:48 am, edited 1 time in total.

Code: Select all

Corporate Cacti
CactiEZ 0.7 (upgraded to 0.0.8h) - Spine 0.8.8h - RRDTool 1.4.7 - Apache 2.2.15 - Settings	0.71 - Maint 0.3	- Thold0.5	- Errorimage 0.2	 - Webmin 0.1
Watermark 0.2 - Monitor 1.3 - Realtime	0.5 - 	Nectar 0.35a - Fix64bit 0.4 - Autom8 0.36 - Quicktree 0.2

Code: Select all

Business Cacti
CactiEZ 0.7 - Spine 0.8.8b - RRDTool 1.3.8 - Apache 2.2.15 - Settings	0.71 - Maint 0.3	- Thold0.5	- Errorimage 0.2	 - Jqueryskin 0.1
Webmin 0.1 - Watermark 0.2 - Monitor 1.3 - Realtime	0.5 - 	Nectar 0.35a - Fix64bit 0.4 - Autom8 0.36 - Quicktree 0.2 - Syslog 1.22
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: New QoS not shouing up

Post by BSOD2600 »

if you click the green circle (forced reindex) next to that data query, does the verbose query show the updated interface?
Enjanced
Posts: 37
Joined: Mon Jul 14, 2014 1:51 pm
Location: Buenos Aires - Argentina

Re: New QoS not shouing up

Post by Enjanced »

No sir. Also, if call for a verbose query the output will not show it.

Code: Select all

Corporate Cacti
CactiEZ 0.7 (upgraded to 0.0.8h) - Spine 0.8.8h - RRDTool 1.4.7 - Apache 2.2.15 - Settings	0.71 - Maint 0.3	- Thold0.5	- Errorimage 0.2	 - Webmin 0.1
Watermark 0.2 - Monitor 1.3 - Realtime	0.5 - 	Nectar 0.35a - Fix64bit 0.4 - Autom8 0.36 - Quicktree 0.2

Code: Select all

Business Cacti
CactiEZ 0.7 - Spine 0.8.8b - RRDTool 1.3.8 - Apache 2.2.15 - Settings	0.71 - Maint 0.3	- Thold0.5	- Errorimage 0.2	 - Jqueryskin 0.1
Webmin 0.1 - Watermark 0.2 - Monitor 1.3 - Realtime	0.5 - 	Nectar 0.35a - Fix64bit 0.4 - Autom8 0.36 - Quicktree 0.2 - Syslog 1.22
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: New QoS not shouing up

Post by BSOD2600 »

If manually running the cbwfq.pl script doesnt return the new interface(s)... then that script needs to be debugged to investigate why its failing.
Enjanced
Posts: 37
Joined: Mon Jul 14, 2014 1:51 pm
Location: Buenos Aires - Argentina

Re: New QoS not shouing up

Post by Enjanced »

I don't know how to do that.
Could the fact that both policies use the same classes make any difference?
Also... the interfaces are returned (by the interface script) it's the QoS that is not retrieved.

EDIT: I'm thinking maybe this is not a cacti/script error, but maybe it's the router that is not adding the new policy to the index.

Code: Select all

Corporate Cacti
CactiEZ 0.7 (upgraded to 0.0.8h) - Spine 0.8.8h - RRDTool 1.4.7 - Apache 2.2.15 - Settings	0.71 - Maint 0.3	- Thold0.5	- Errorimage 0.2	 - Webmin 0.1
Watermark 0.2 - Monitor 1.3 - Realtime	0.5 - 	Nectar 0.35a - Fix64bit 0.4 - Autom8 0.36 - Quicktree 0.2

Code: Select all

Business Cacti
CactiEZ 0.7 - Spine 0.8.8b - RRDTool 1.3.8 - Apache 2.2.15 - Settings	0.71 - Maint 0.3	- Thold0.5	- Errorimage 0.2	 - Jqueryskin 0.1
Webmin 0.1 - Watermark 0.2 - Monitor 1.3 - Realtime	0.5 - 	Nectar 0.35a - Fix64bit 0.4 - Autom8 0.36 - Quicktree 0.2 - Syslog 1.22
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: New QoS not shouing up

Post by BSOD2600 »

Enjanced wrote:I don't know how to do that.
Run the same command Cacti is running (and displayed in the verbose output): perl /var/www/html/scripts/cbwfq.pl 10.161.247.235 ***** query class

and/or open the script and figure out how its obtaining the information and manually run those queries to figure out where the data retrieval process is breaking. Post this problem on the thread where you obtained this script yet?
Enjanced
Posts: 37
Joined: Mon Jul 14, 2014 1:51 pm
Location: Buenos Aires - Argentina

Re: New QoS not shouing up

Post by Enjanced »

It's hard work to debug something... specially when I'm not a programmer. I've a VERY basic notion, so I made my way (I think)

Did find one thing, that I don't know if it is related. The script_query is calling methods that are not implemented in the perl script.
Eg

Code: Select all

 Executing script for num of indexes 'perl /var/www/html/scripts/cbwfq.pl 10.161.247.235 <comunity> num_index'
+ Found number of indexes: usage:
+ Found number of indexes: 
+ Found number of indexes: ./nmiscbwfq.pl IP COMMUNITY index
+ Found number of indexes: ./nmiscbwfq.pl IP COMMUNITY query
+ Found number of indexes: ./nmiscbwfq.pl IP COMMUNITY get {bytes|drops} index_oid
I mean the "num_index". also the "query class" method is not implemented. It does not show an error because "query" alone is a valid option. I guess I could write a "num_index" method, which I ASSUME returns an integer (again, not sure if this would fix something).
Even better (if I can find it) is to get the correct scrip_query or the correct template for this version of the pl script.

Regarding your question about posting it @ the original plugin post: no I did not. I found this in other related posts. If you (or anyone) happen to have a link to that post, it would be awesome.

Code: Select all

Corporate Cacti
CactiEZ 0.7 (upgraded to 0.0.8h) - Spine 0.8.8h - RRDTool 1.4.7 - Apache 2.2.15 - Settings	0.71 - Maint 0.3	- Thold0.5	- Errorimage 0.2	 - Webmin 0.1
Watermark 0.2 - Monitor 1.3 - Realtime	0.5 - 	Nectar 0.35a - Fix64bit 0.4 - Autom8 0.36 - Quicktree 0.2

Code: Select all

Business Cacti
CactiEZ 0.7 - Spine 0.8.8b - RRDTool 1.3.8 - Apache 2.2.15 - Settings	0.71 - Maint 0.3	- Thold0.5	- Errorimage 0.2	 - Jqueryskin 0.1
Webmin 0.1 - Watermark 0.2 - Monitor 1.3 - Realtime	0.5 - 	Nectar 0.35a - Fix64bit 0.4 - Autom8 0.36 - Quicktree 0.2 - Syslog 1.22
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests