Creating Data Queries

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

Moderators: Developers, Moderators

Post Reply
un1ucky
Posts: 2
Joined: Wed Mar 04, 2009 9:04 am

Creating Data Queries

Post by un1ucky »

Hi, cacti users and developers:)
I creating my first cacti graph, and trying create custom xml data query for my router, cpu frequency.
This my snmpwalk output:
snmpwalk -c xx -v1 ipaddress .1.3.6.1.4.1.3942.1.1.3.6.0
SNMPv2-SMI::enterprises.3942.1.1.3.6.0 = Gauge32: 39

trying creating data query:

Code: Select all

<interface>
        <name>Get RVR Processor Information</name>
        <oid_index>.1.3.6.1.4.1.3942.1.1.3.6</oid_index>
        <index_order>nwhrProcessorNum:nwhrProcessorIndex</index_order>
        <index_order_type>numeric</index_order_type>
        <index_title_format>CPU#|chosen_order_field|</index_title_format>

        <fields>
                <nwhrProcessorIndex>
                        <name>Index</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.3942.1.1.3.6.0</oid>
                </nwhrProcessorIndex>
        </fields>
</interface>
this don't work
can you help me?
User avatar
TheWitness
Developer
Posts: 17064
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Where is this in the XML file? After that, there are several setup steps that if you don't post images, etc. We can't be of more help.

nwhrProcessorNum

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?
un1ucky
Posts: 2
Joined: Wed Mar 04, 2009 9:04 am

Post by un1ucky »

thx for answer
TheWitness wrote:Where is this in the XML file?
this is my full single XML file. im trying creating it:)


After that, there are several setup steps that if you don't post images, etc. We can't be of more help.

nwhrProcessorNum
[/quote]
im copy default netware_cpu.xml and try edit.
Attachments
1.png
1.png (57.8 KiB) Viewed 1050 times
2.png
2.png (17.29 KiB) Viewed 1050 times
3.png
3.png (51.55 KiB) Viewed 1050 times
User avatar
TheWitness
Developer
Posts: 17064
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Why do you have an OID in your data template. That is invalid. Past the verbose quey information.

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?
User avatar
TheWitness
Developer
Posts: 17064
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Plus the Data Input method on the Data Template is WRONG. You need to RTM!!!

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests