Getting absolutely nowhere with creating custom data queries

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

Moderators: Developers, Moderators

Post Reply
xlimitx
Posts: 12
Joined: Tue Jul 19, 2005 4:03 pm

Getting absolutely nowhere with creating custom data queries

Post by xlimitx »

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
Attachments
docsis.xml
This is the XML file that I created.
(982 Bytes) Downloaded 126 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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?
xlimitx
Posts: 12
Joined: Tue Jul 19, 2005 4:03 pm

Okay... One more thing.

Post by xlimitx »

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.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Looking over the script again, you'll want to change the docsIfSigQSignalNoise direction to output too.
xlimitx
Posts: 12
Joined: Tue Jul 19, 2005 4:03 pm

Thanks all.

Post by xlimitx »

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

Who is online

Users browsing this forum: No registered users and 1 guest