rrd not getting created

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

Moderators: Developers, Moderators

Post Reply
msab
Posts: 35
Joined: Fri Apr 29, 2005 4:46 pm
Location: New Jersey

rrd not getting created

Post by msab »

So I am trying to create a new data source and graph it. I created the graph template, data template and data query. I created something on the lines of the interface data query.

When I look to graph one of my rows in the table it discovers it looks like it works but does not create the rrd file and it does not set the data source path.

Could I get a list of reasons why my rrd would not get created? Did I miss something?

I am able to create RRDs for other metrics that are 'out of the box' cacti graphs but I dont understand why the rrd's are not created for the new data collection I created.

The poller is polling the data but not sure what it is doing with it once it collects it.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The generic help can be found at the 2nd link of my sig.
You will find a walkthrough for creating a Data Query at the 1st link of my sig
R.
msab
Posts: 35
Joined: Fri Apr 29, 2005 4:46 pm
Location: New Jersey

Post by msab »

Disregard this till I do some debugging.

Thanks !

So I am trying to look at this a bit more but cannot figure out why my data source path does not get populated when I create a new graph against one of my devices.

The RRD's are not being created. permissions are ok as I can create other rrds in that directory.

I am not sure where to look to see if it is having problems creating the RRD.

Any ideas are appreciated or if you need more information please tell me.

Mike
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The rrd file is created at polling time if and only if the target device responds. So both issues share the same root cause.
R.
msab
Posts: 35
Joined: Fri Apr 29, 2005 4:46 pm
Location: New Jersey

Post by msab »

After reading the documentation my problem is with the data source. I just dont know where yet. I have to keep looking at this.

Thanks
Mike
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please walk through the debuuging hints step by step and tell us the results. This way we may help you
R.
msab
Posts: 35
Joined: Fri Apr 29, 2005 4:46 pm
Location: New Jersey

Post by msab »

Here goes. Following the debugging instructions:

Cacti log files does not have any snmp timeouts for the device i am monitoring.

The poller is working as I am collecting data on alot of other devices. New RRDs are created for out of the box reporting. I believe the problem is my custom data query and graph.

Ownership is all cactiuser:cactiuser

I cannot check the rrd file number because the rrd's do not get created even though the graph is instantiated and it points to an RRD.

RRDTool graph statement check:
RRDTool Command:

/usr/local/rrdtool-1.3.8/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="NYKLON111111 - latency" \
--base=0 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="usec" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/isg24-test_avg_174.rrd":avg:LAST \
DEF:b="/var/www/html/rra/isg24-test_avg_174.rrd":max:LAST \
DEF:c="/var/www/html/rra/isg24-test_avg_174.rrd":min:LAST \
LINE1:a#FF0000FF:"" \
AREA:b#FFF200FF:"" \
LINE1:c#FF00FFFF:""

RRDTool Says:

ERROR: the only sensible value for base apart from 1000 is 1024
-----------------------------------------------------------------------------
The rrd isg24-test_avg_174.rrd does not exist.

I attached a picture of the data query. I think the problem is with the Associated Graph Templates showing nothing in the dropdowns but not sure how to fix it.
Attachments
dataQuery.JPG
dataQuery.JPG (102.76 KiB) Viewed 5976 times
msab
Posts: 35
Joined: Fri Apr 29, 2005 4:46 pm
Location: New Jersey

Post by msab »

<y1731-twowayLatency>
<name>Get SNMP y1731 two way latency</name>
<description>Queries a host for a list of monitorable interfaces</description>
<oid_index>.1.3.6.1.4.1.22420.2.7.1.1.1.1.3</oid_index>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<Index>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.22420.2.7.1.1.1.1.3</oid>
</Index>
<acdCfmResultTwoWayDelayAvgValue>
<name>avg</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.22420.2.7.1.1.4.1.10</oid>
</acdCfmResultTwoWayDelayAvgValue>
<acdCfmResultTwoWayDelayMaxValue>
<name>max</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.22420.2.7.1.1.4.1.9</oid>
</acdCfmResultTwoWayDelayMaxValue>
<acdCfmResultTwoWayDelayMinValue>
<name>min</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.22420.2.7.1.1.4.1.8</oid>
</acdCfmResultTwoWayDelayMinValue>
</fields>
</y1731-twowayLatency>
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

msab wrote:Here goes. Following the debugging instructions:
The graph templates ties together the Data Query and the Data Template. Soo it is important to know, whether the Graph Templates has the correct Data Template items
R.
msab
Posts: 35
Joined: Fri Apr 29, 2005 4:46 pm
Location: New Jersey

Post by msab »

Do the names in the resource/snmp_queries/*xml need to match anywhere in the data template?

does min below need to match the name of the data template - data source?
Example:
<min>
<name>min</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.22420.2.7.1.1.4.1.8</oid>
</min>
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

No match by name is required. This relationship is built by the image of your first post. It would tie the names of the XML to the data sources used by the graph template and hence to the data template(s) used
R.
msab
Posts: 35
Joined: Fri Apr 29, 2005 4:46 pm
Location: New Jersey

Post by msab »

Does the Associated Data Template have to tie to a mib value from the snmp_query/xml file.

I think my problem is that the avg,min,max do not have associated values in the drop down list to the right of it.

Thanks
Mike
Attachments
cacti-dataQuery.JPG
cacti-dataQuery.JPG (48.05 KiB) Viewed 5716 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

We are not getting anywhere this way.
Either an online session, IM or phone call is required or we play ping-pong until the End Of All Days
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest