[HOWTO] Add new MIB Variables to Cacti
Moderators: Developers, Moderators
No graph ??
After doing the following below to creat one OID, there is no graph. I mean don't we have to enter a data in there? I follow the instruction below but I don't see any DATA.. I see the GRAPH but no data is being collected, what am i doing wrong??
Also. ANyone know how to graph two data on one graph.? I was thinking to do current connection & max connection on one graph. how would i go about doing that??
thanks in advance.. for all your great help!!
Also. ANyone know how to graph two data on one graph.? I was thinking to do current connection & max connection on one graph. how would i go about doing that??
thanks in advance.. for all your great help!!
monachus wrote:Data Template
1. Create a Data template for proxyStatsConnectActiveConnections. Call it "Proxy DT - Active Connections"
2. Set the Name to "|host_description| - Active Connections"
3. Set the Data Input Method to "Get SNMP Data"
4. Set the Internal Data Source Name to "num_conns"
5. Give it a Max of 200000 (or whatever)
6. Make it a Gauge
7. Save
8. After saving, you'll have new options. Enter your OID into the OID field
9. Click Save
Graph Template
1. Create a Graph Template. Call it "Proxy GT - Active Connections"
2. Set the Name to "|host_description| - Active Connections"
3. Save
4. In the screen that follows, select "Add" from Graph Template Items in the top right.
5. In the next screen, choose your DT from above.
6. Add some colors and stuff for the graph output
7. Save
If you have a Host Template for this type of device, you can add the GT you just created to the Host Template and it will always appear. Alternatively, just go to your device and add the GT to the Device Information screen. When you go to "Create Graphs for this Host," you should have the Graph Template there. Check it and save.
Ta Da!
It should be noted that I'm _not_ a Cacti expert. I get my information from looking at the scripts that have been provided and figuring out the rest. It's not that difficult, and I encourage everyone to spend a few hours looking over what already works. It helps to name your templates with a name that says what they are (GT, DT, HT), so that it clarifies which your adding to what.
Not sure what you mean by "adding a data" to the graph. The data is retrieved from the host based on the OID you tell it to query. You should be able to query that OID manually using snmpget or snmpwalk and get data. If you don't, then Cacti won't be able to get the data either.
It is possible to graph more than one data point on a graph. For an example of this, look at the Data Template for "Unix - Load Average" where you'll find multiple data sources.
For your application, if you add multiple items to the Data Template you create, then those items will be available in the Graph Template for you to use when creating your graphs.
It is possible to graph more than one data point on a graph. For an example of this, look at the Data Template for "Unix - Load Average" where you'll find multiple data sources.
For your application, if you add multiple items to the Data Template you create, then those items will be available in the Graph Template for you to use when creating your graphs.
Adrian Goins - President / CEO
Arces Network, LLC
http://www.arces.net
Arces Network, LLC
http://www.arces.net
thank you
thank you for your help. Best thing to do is to create a .xml file and just create everything that associate with it. that worked!!.
One problems
When I go to graph i see the following items.
Index Port Server
37 80 parking
38 65535 admin00
39 80 admin00
36 65535 parking
35 25 www-clstr06
34 443 www-clstr06
33 80 www-clstr06
32 65535 www-clstr06
31 25 www-clstr05
I tried using Current Sessions - |ifNames| |query_ifNames| Nothing show up. should i try like |port| |Server| like that? or |query_Server| or |query_port| anyone know the right syntax for this??
But when I graph it and set it up. the name doesn't come out like that? any reason for it?
Is this the right.
the naming for this when graphed showed up like this
ServerIron Current Sessions - |query_ifNames|
How do i make it to disply their name and port?
One problems
When I go to graph i see the following items.
Index Port Server
37 80 parking
38 65535 admin00
39 80 admin00
36 65535 parking
35 25 www-clstr06
34 443 www-clstr06
33 80 www-clstr06
32 65535 www-clstr06
31 25 www-clstr05
I tried using Current Sessions - |ifNames| |query_ifNames| Nothing show up. should i try like |port| |Server| like that? or |query_Server| or |query_port| anyone know the right syntax for this??
But when I graph it and set it up. the name doesn't come out like that? any reason for it?
Is this the right.
the naming for this when graphed showed up like this
ServerIron Current Sessions - |query_ifNames|
How do i make it to disply their name and port?
Re: thank you
If you created an XML file, you created tags for the various fields that you're querying, with a Name and an OID for each. You want to put in the tag name. For example, if your XML SNMP Query has a tag called "port" then you would put "|query_port|" in the Graph Template.aboyz wrote: I tried using Current Sessions - |ifNames| |query_ifNames| Nothing show up. should i try like |port| |Server| like that? or |query_Server| or |query_port| anyone know the right syntax for this??
Adrian Goins - President / CEO
Arces Network, LLC
http://www.arces.net
Arces Network, LLC
http://www.arces.net
Here is my xml file
<interface>
<name>Get Current Port Connections</name>
<description>Queries a host for a list of monitorable ports</description>
<oid_index>.1.3.6.1.4.1.1991.1.1.4.9.1.1.1</oid_index>
<fields>
<ifIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.9.1.1.1</oid>
</ifIndex>
<ifPort>
<name>Port</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.9.1.1.2</oid>
</ifPort>
<ifName>
<name>Server</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.9.1.1.3</oid>
</ifName>
<ifConns>
<name>Current Connections</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.9.1.1.4</oid>
</ifConns>
<ifConns2>
<name>Current Connections</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.9.1.1.5</oid>
</ifConns2>
</fields>
</interface>
what query do i need?
<name>Get Current Port Connections</name>
<description>Queries a host for a list of monitorable ports</description>
<oid_index>.1.3.6.1.4.1.1991.1.1.4.9.1.1.1</oid_index>
<fields>
<ifIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.9.1.1.1</oid>
</ifIndex>
<ifPort>
<name>Port</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.9.1.1.2</oid>
</ifPort>
<ifName>
<name>Server</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.9.1.1.3</oid>
</ifName>
<ifConns>
<name>Current Connections</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.9.1.1.4</oid>
</ifConns>
<ifConns2>
<name>Current Connections</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.1991.1.1.4.9.1.1.5</oid>
</ifConns2>
</fields>
</interface>
what query do i need?
thanks for the reply1!
thanks for the reply..
but i'm looking for names.. so it should be
|query_ifName|
Where do i change that at? can you point me to the right direction..
thanks
but i'm looking for names.. so it should be
|query_ifName|
Where do i change that at? can you point me to the right direction..
thanks
Re: thanks for the reply1!
Name field on your Data Template.aboyz wrote: but i'm looking for names.. so it should be
|query_ifName|
Where do i change that at? can you point me to the right direction..
Adrian Goins - President / CEO
Arces Network, LLC
http://www.arces.net
Arces Network, LLC
http://www.arces.net
I did that..
Hi,
I did that.
under data template. i choose the template then i edit this.
|host_description| - |query_ifPort| - |query_ifName|
That should do it.
then i go to graph management and click on the one i want then hit reapply name and hit ok.
the name doesn't change it still show this
|host_description| - |Names| - |query_ifNames|
Why doesn't it change any reason for this??
I did that.
under data template. i choose the template then i edit this.
|host_description| - |query_ifPort| - |query_ifName|
That should do it.
then i go to graph management and click on the one i want then hit reapply name and hit ok.
the name doesn't change it still show this
|host_description| - |Names| - |query_ifNames|
Why doesn't it change any reason for this??
I will try to clarify what I´m looking for ; )
the thing is that I have an script running and I can use only one index by script, no problem there. But, now I have get information from 2 indexes, and I have no idea of what I have to write into the script. I hope that you understand my point.
thanks in advance,
Tafi ROL
the thing is that I have an script running and I can use only one index by script, no problem there. But, now I have get information from 2 indexes, and I have no idea of what I have to write into the script. I hope that you understand my point.
thanks in advance,
Tafi ROL
Who is online
Users browsing this forum: No registered users and 0 guests