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.
Your XMP file looks a bit strange to me. You've listed completely different OIDs for your index and for your 5minute connections. The index should normally be on the same branch of the OID tree as the variables that you want to graph.
Take another look at the OIDs and ensure that they are the ones that you want to use.
Hi
I have followed the instructions mentioned by you. After the step6 i.e After adding the graph template to the data query . When I checked the data associated templates.
There was a warning message
"variable passed to each () is not an array or object in /var/www/html/cacti/data queries.php"
When I try to add device selecting the device I created it gives me the
same error.
I wrote this today to better document the steps I had to take to create (and understand) a Data Query and the subsequent objects. This is for my company, so that others can do it without having to unravel the steps. I did it for an Alteon AceDirector, which is the other reason I'm posting it - there seems to be an absence of Alteon information up here.
My thanks to Lux for the original How-To, and to whomever wrote the Cacti Manual for the snippets I jacked from there.
I have a question similar to one that was previously asked. I am trying to monitor a Novell proxy server. Specifically, I need to monitor the variable proxyStatsConnectActiveConnections. Seeing as this is a general service on the machine, there is no indexing - the index is always zero. Is there a way that I can just define the <oid_index> to be zero, and then put the oid that I need to poll?
Use "Get SNMP Data" as your Data Query Method instead of "Get SNMP Data (Indexed)" and put in the OID. You should be able to do this without writing a whole gnarly script and XML template.
Adrian Goins - President / CEO
Arces Network, LLC
http://www.arces.net
Is there a HOWTO for adding a data source that will only poll a specific OID. I tried adding a data source named "Get SNMP Data" instead of "Get SNMP Data (indexed)" but all that shows up in the drop down is Get SNMP Data (indexed)"
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.
Adrian Goins - President / CEO
Arces Network, LLC
http://www.arces.net