Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
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.
+ 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.
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.
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?
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.