Hi all,
I've been working on getting a single custom data query to work in Cacti for some time now(2 days) and I'm absolutely getting nowhere with it. My regular graphing works fine with regards to traffic, CPU and any other supplied data queries. However, I'm attempting to add a custom query that will grab the Signal:Noise on the upstreams on a CMTS. I've created the XML file(docsis.xml) as follows.
- <interface>
<name>DOCSIS Queries</name>
<description>Set of DOCSIS Queries</description>
<oid_index>1.3.6.1.2.1.2.2.1.1</oid_index>
- <fields>
- <ifIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>1.3.6.1.2.1.2.2.1.1</oid>
</ifIndex>
- <ifName>
<name>Name (IF-MIB)</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.31.1.1.1.1</oid>
</ifName>
- <docsIfSigQSignalNoise>
<name>Upstream SNR</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>1.3.6.1.2.1.10.127.1.1.4.1.5</oid>
</docsIfSigQSignalNoise>
</fields>
</interface>
If I go into the devices menu and select the data template that I created using this xml file I can see values if I poll them via the verbose query and everything looks fine.
The hole in my implementation seems to be the bridge between getting the data, which is working, and getting the graphs displayed.
I've looked through the STICKY thread in the HOWTO guide on how to create new data query and that still didn't work. The data template portion of the HOWTO worked great but then again I could not get the graphs to work. Any help would be greatly appreciated!
Thanks.
James
Getting absolutely nowhere with creating custom data queries
Moderators: Developers, Moderators
Getting absolutely nowhere with creating custom data queries
- Attachments
-
- docsis.xml
- This is the XML file that I created.
- (982 Bytes) Downloaded 126 times
1) Have you looked in your cacti log file to see if you truly are collecting valid data? Turn the polling level in cacti to debug for one cycle and paste the output of the log file. If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.
I eventually gave up with the whole script thing for querying my cable modem. Just created a new data source for each thing I wanted to graph. Then used 2 graph templates to pull together all the same type of data.
2) In the graph template you created, you're using the proper data source names from your data script query?
I eventually gave up with the whole script thing for querying my cable modem. Just created a new data source for each thing I wanted to graph. Then used 2 graph templates to pull together all the same type of data.
2) In the graph template you created, you're using the proper data source names from your data script query?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Okay... One more thing.
Could it be the fact that I don't have what I want to graph set to input in my XML file?
Other than that, I'll get you the output from the log tomorrow since I don't have access to my server at this point in time.
Thanks in advance.
Other than that, I'll get you the output from the log tomorrow since I don't have access to my server at this point in time.
Thanks in advance.
Looking over the script again, you'll want to change the docsIfSigQSignalNoise direction to output too.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Thanks all.
I finally got this up and running.
It ended up being that I did not have the OID that I wanted graphed set to output. I changed it over and was able to graph pretty quickly.
It ended up being that I did not have the OID that I wanted graphed set to output. I changed it over and was able to graph pretty quickly.
Who is online
Users browsing this forum: No registered users and 1 guest