PVC query broken

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
Dragos
Posts: 48
Joined: Sat Mar 19, 2005 6:54 am
Contact:

PVC query broken

Post by Dragos »

Hi,
I have made an xml script to query snmp index for pvc values. It worked fine in cacti v8.6.c. After upgrading to v8.6.g anf then to 8.6.f, the query was messed up.
Here is the script that worked before:

Code: Select all

<interface> 
        <name>Get Harris Usage per VCC</name> 
        <description>Queries a Harris Base Station for ATM usage per terminal</description> 
        <oid_index>.1.3.6.1.4.1.290.3.3.600.3.4.3.1</oid_index>
        <oid_index_parse>OID/REGEXP:.*\.([0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4})$</oid_index_parse> 
        <fields> 
                <VCCin> 
                        <name>PVCin</name> 
                        <method>walk</method> 
                        <source>OID/REGEXP:.*\.([0-9]{1,4}\.[0-9]{1,4})$</source> 
                        <direction>input</direction> 
                        <oid>.1.3.6.1.4.1.290.3.3.600.3.4.3.1.5</oid> 
                </VCCin>
                <usageup>
                        <name>PVCup</name> 
                        <method>walk</method> 
                        <source>value</source> 
                        <direction>output</direction> 
                        <oid>.1.3.6.1.4.1.290.3.3.600.3.4.3.1.5</oid> 
                </usageup>
				<VCCout> 
                        <name>PVCout</name> 
                        <method>walk</method>
						<source>OID/REGEXP:.*\.([0-9]{1,4}\.[0-9]{1,4})$</source> 
                        <direction>input</direction> 
                        <oid>.1.3.6.1.4.1.290.3.3.600.3.4.3.1.8</oid> 
                </VCCout>
				<usagedown> 
                        <name>PVCdown</name> 
                        <method>walk</method> 
                        <source>value</source> 
                        <direction>output</direction> 
                        <oid>.1.3.6.1.4.1.290.3.3.600.3.4.3.1.8</oid> 
                </usagedown>
        </fields> 
</interface>
Attachments
The pvc-s for up and down are not correctly associated.
The pvc-s for up and down are not correctly associated.
pvc.jpg (32.23 KiB) Viewed 7955 times
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please try the lib/snmp.php in BRANCH_0_8_6 of SVN. The link is below:
After the new file is applied, reindex the host.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Dragos
Posts: 48
Joined: Sat Mar 19, 2005 6:54 am
Contact:

Post by Dragos »

I have reindexed the host and the values for input and output for the pvcs found are splited between in and out values(there is no associaton).
Attachments
pvc2.jpg
pvc2.jpg (26.57 KiB) Viewed 7947 times
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Are you using php_snmp or net-snmp binaries?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Dragos
Posts: 48
Joined: Sat Mar 19, 2005 6:54 am
Contact:

Post by Dragos »

I am using net-snmp package, or at least I think I am.
/usr/local/net-snmp/bin/snmpwalk, snmpget, and so on are the path.

But I have no problems with cisco interface graphs, and I have alot of them.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What output do you get with a "Verbose Query". Click the link.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Dragos
Posts: 48
Joined: Sat Mar 19, 2005 6:54 am
Contact:

Post by Dragos »

Here it is:

Code: Select all

Data Query Debug Information 
 
+ Running data query [23].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/apache2/htdocs/graph/resource/snmp_queries/harris.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.290.3.3.600.3.4.3.1'
+ Located input field 'VCCin' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.290.3.3.600.3.4.3.1.5'
+ Found item [VCCin='0.32'] index: 532144 [from regexp oid parse]
+ Found item [VCCin='0.33'] index: 22099146 [from regexp oid parse]
+ Found item [VCCin='0.34'] index: 6988007 [from regexp oid parse]
+ Found item [VCCin='0.35'] index: 4184431 [from regexp oid parse]
+ Found item [VCCin='0.36'] index: 12494344 [from regexp oid parse]
+ Found item [VCCin='0.37'] index: 3436195 [from regexp oid parse]
+ Found item [VCCin='0.38'] index: 2750175 [from regexp oid parse]
+ Found item [VCCin='0.39'] index: 2987961 [from regexp oid parse]
+ Found item [VCCin='0.40'] index: 16155325 [from regexp oid parse]
+ Found item [VCCin='0.41'] index: 5883381 [from regexp oid parse]
+ Found item [VCCin='0.42'] index: 2953499 [from regexp oid parse]
+ Found item [VCCin='0.43'] index: 3739232 [from regexp oid parse]
+ Located input field 'VCCout' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.290.3.3.600.3.4.3.1.8'
+ Found item [VCCout='0.32'] index: 1 [from regexp oid parse]
+ Found item [VCCout='0.33'] index: 56564654 [from regexp oid parse]
+ Found item [VCCout='0.34'] index: 39827146 [from regexp oid parse]
+ Found item [VCCout='0.35'] index: 3750231 [from regexp oid parse]
+ Found item [VCCout='0.36'] index: 52234479 [from regexp oid parse]
+ Found item [VCCout='0.37'] index: 9127021 [from regexp oid parse]
+ Found item [VCCout='0.38'] index: 8855601 [from regexp oid parse]
+ Found item [VCCout='0.39'] index: 8781148 [from regexp oid parse]
+ Found item [VCCout='0.40'] index: 13509701 [from regexp oid parse]
+ Found item [VCCout='0.41'] index: 11942044 [from regexp oid parse]
+ Found item [VCCout='0.42'] index: 8714091 [from regexp oid parse]
+ Found item [VCCout='0.43'] index: 9779455 [from regexp oid parse]
+ Found data query XML file at '/usr/local/apache2/htdocs/graph/resource/snmp_queries/harris.xml'
+ Found data query XML file at '/usr/local/apache2/htdocs/graph/resource/snmp_queries/harris.xml'
+ Found data query XML file at '/usr/local/apache2/htdocs/graph/resource/snmp_queries/harris.xml' 
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Did you say that this was working before. Because the indexes are the values to the right of "0.32", etc. and they do not align between In and Out. Seems to me that the OID_INDEX_PARSE is working correctly.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Dragos
Posts: 48
Joined: Sat Mar 19, 2005 6:54 am
Contact:

Post by Dragos »

I do not have the harris mib files, I only found this to oid's to represent traffic: 1.3.6.1.4.1.290.3.3.600.3.4.3.1.5 and 1.3.6.1.4.1.290.3.3.600.3.4.3.1.8, the pvcs looking like: 1.3.6.1.4.1.290.3.3.600.3.4.3.1.5.0.35 & 1.3.6.1.4.1.290.3.3.600.3.4.3.1.8.0.35, 0/35 being the vci/vpi values set on equipement
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Dragos, getting the harris mib files can be a challange. It has been done though. I seem to remember having worked with a user on this. Without additional information, it will be impossible to help you further.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Dragos
Posts: 48
Joined: Sat Mar 19, 2005 6:54 am
Contact:

Post by Dragos »

Hi TheWitness,
I have sent you the mib files by email.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests