NewBie: One Graph for multible indexed SNMP-Values

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
Enrie
Posts: 3
Joined: Mon Feb 06, 2006 10:54 am
Location: Germany

NewBie: One Graph for multible indexed SNMP-Values

Post by Enrie »

Hello,
we search the forum and documentation but we can’t find any information:

We have indexed SNMP-Data which we would like to combine in one graph.
This is the XML- Data query definition:

<query>
<name>Get Netapp Volumes</name>
<description>Queries a NetApp-Filer for volume information</description>
<oid_index>.1.3.6.1.4.1.789.1.5.4.1</oid_index>
<index_order>dfMountedOn:dfFileSys</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>

<fields>
<dfMountedOn>
<name>Mounted On</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.789.1.5.4.1.10</oid>
</dfMountedOn>
<dfFileSys>
<name>File System</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.789.1.5.4.1.2</oid>
</dfFileSys>
<dfKBytesTotal>
<name>Total (Kbytes)</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.789.1.5.4.1.3</oid>
</dfKBytesTotal>
<dfKBytesUsed>
<name>Used (Kbytes)</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.789.1.5.4.1.4</oid>
</dfKBytesUsed>
<dfKBytesAvail>
<name>Avail (Kbytes)</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.789.1.5.4.1.5</oid>
</dfKBytesAvail>
</fields>
</query>

e. g. We would like to combine the lines of “KByteTotal” (and “KBytesUsed”) for all “FileSys” (= 8 Volumes)
into one Graph with different colors and the GPRINT_values for MIN and MAX in the legend.
One Graph for each “FileSys” we have prepared very well.

Where we can find a “HowTo”? (Did you need further information?)
Thanks for your assistance.
    User avatar
    gandalf
    Developer
    Posts: 22383
    Joined: Thu Dec 02, 2004 2:46 am
    Location: Muenster, Germany
    Contact:

    Post by gandalf »

    There is a solution, but not a generic one.
    First, you have to create "simple" Graphs for each "Index". Those will create the needed data sources.
    Then, please goto Graph Management and Add. Select the Device in question and Create, leaving the Graph Template to NONE. Now you may define the Graph defaults as usual and you may add Graph Items. You will have the choice to select all Data Sources for that host, so you may add your 8 data sources and the wanted GPRINTS for the legend (using the "virtual" Graph Item Type = LEGEND is a real time saver!).
    That's it. But if the Index grows from 8 to 9, there's no automatism; you will have to extend that Graph manually ...
    Reinhard
    Post Reply

    Who is online

    Users browsing this forum: No registered users and 0 guests