RRD not being created when adding a data source.

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
ianbeyer
Posts: 3
Joined: Wed May 05, 2010 5:27 pm
Location: Overland Park, KS

RRD not being created when adding a data source.

Post by ianbeyer »

When adding a data source (in this particular case, ethernet traffic), it populates the data source path correctly, but does not create the RRD file in the requisite directory. Naturally, the graphing portion of the show has a problem with this.

Is there any way to debug this so that I can see why this file isn't being created?

Running on Debian Squeeze.
ianbeyer
Posts: 3
Joined: Wed May 05, 2010 5:27 pm
Location: Overland Park, KS

Re: RRD not being created when adding a data source.

Post by ianbeyer »

Looked into the debug mode, and it's putting a trailing slash at the end of the RRD creation script. Manually created the file and set the permissions, but now poller doesn't seem to want to poll that one for SNMP, despite SNMP looking great in the debug mode in all the data source and device pages. It's polling other devices for SNMP just fine, and polling that particular device just fine on some JMX queries, but SNMP isn't showing up in the logs.
dexx
Posts: 28
Joined: Thu Jan 13, 2011 12:45 am

Re: RRD not being created when adding a data source.

Post by dexx »

Ive having the same issue running 088a on Centos 6.0. When i add a new graph it complains that it cant create the rrd file. If i turn debug on data sources i see the same trailing slash as you mentioned. If i manually enter the rrdtool create command it creates the file as expected. However graphs always show data values of -nan as the file isnt being written to by the poller. Permissions on the rrd files and directories appear to be correct and there are no suspicious messages in cacti.log.

Working through the debugging guide, if i look for applicable entries in the poller cache i see none. Even if i rebuild the poller cache, my new sources are not included.
Jiby
Posts: 6
Joined: Fri Aug 17, 2012 7:56 am

Re: RRD not being created when adding a data source.

Post by Jiby »

I've got the exact same problem as you two (sorry about saying "me too"), more info : it occurs only on a custom SNMP data query I created, other graphs look fine.
I'm running cacti-0.8.7e and can't really try a lot of deleting and reinstalling (lots of other important graphs I can't afford loosing)

Tried the Downed Host Detection for the host, switched it from "SNMP" to "Ping or SNMP" and every other settings, didn't help, actually I ran through the whole debugging section on gandalf's sig ;)

I still believe it's XML related for me, even though the verbose query shows every data correctly (I put all output fields in input except one to try, and reloading query shows the counters correctly)

I'd be happy to present any info that can help
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: RRD not being created when adding a data source.

Post by gandalf »

ianbeyer wrote:When adding a data source (in this particular case, ethernet traffic), it populates the data source path correctly, but does not create the RRD file in the requisite directory. Naturally, the graphing portion of the show has a problem with this.

Is there any way to debug this so that I can see why this file isn't being created?

Running on Debian Squeeze.
The actual rrd file will be created during polling cycle:
- when host is NOT detected as down
- when there is a polling entry related to that rrd file in the poller command table
- when the polling of that entry actually occurs and delivers any result
Cacti will then try to store data into rrd file. It will check, whether that rrd file exists and create it if not. Hope this helps
R.
Jiby
Posts: 6
Joined: Fri Aug 17, 2012 7:56 am

Re: RRD not being created when adding a data source.

Post by Jiby »

gandalf wrote: The actual rrd file will be created during polling cycle:
- when host is NOT detected as down
- when there is a polling entry related to that rrd file in the poller command table
- when the polling of that entry actually occurs and delivers any result
In my case it does help, since the file is not created, it means one of the steps fails :

My host is definitely UP (other graphs are OK plus no sign of "host down" in the logs)
No polling entry in the poller table (I guess it's the poller cache ? and no sign of my graph there)
which could be because the "polling (doesn't) deliver any result" :I tried to do a rrdtool fetch for this rrd (the one that I created manually and doesn't get updated) and it gets ALL nan ==> my query is wrong then ?

In case i'm right (about me being wrong ^^) I attached the related xml file and verbose answer for anyone who wants a look at it (although it is worth mentioning I tried turning every output source (except one) to input and the query showed my counters fine, and the SNMPwalk works fine as well)

Thank you gandalf (never thought I'd say that in my life)
Attachments
Verbose_answer.txt
Sanitized result of verbose query
(112.54 KiB) Downloaded 269 times
test_OID.xml
faulty SNMP query XML ?
(2.49 KiB) Downloaded 244 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: RRD not being created when adding a data source.

Post by gandalf »

Wow, that's a quite "tricky" XML query. The results look pretty. But as long as there's no data in the poller cache, cacti won't even try to poll that OID. Now the question arises: why is the poller entry missing. And honestly, from remote I can't see a reason for this. Sorry
R.
georkings
Posts: 9
Joined: Thu Apr 04, 2013 12:57 pm

Re: RRD not being created when adding a data source.

Post by georkings »

I'm pretty sure you all missed the "checkbox" in your Data Query section "Associated Data Templates". It took me 2 days to realize that. I'm posting only for the records, if anyone see this post searching on google can have an idea...
randalk
Posts: 1
Joined: Sun Apr 22, 2018 7:00 pm

Re: RRD not being created when adding a data source.

Post by randalk »

I'm pretty sure you all missed the "checkbox" in your Data Query section "Associated Data Templates". It took me 2 days to realize that. I'm posting only for the records, if anyone see this post searching on google can have an idea...
My. God. Could have found this earlier and saved 2-3 hours of poking around. Yes, there is a checkbox WAAAAAY to the right in the Data Query section of the associated data templates. If you do not tick the box, then cacti will not poll the oids. Also, the oids and entries will not get entered into the poller table either. Also it will not create the rrd files.

So, if your cacti is not making the rrd files for your new template, and you have looked and SNMP oids are not being queried, it may very well be because of this missing tickbox. Man alive.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest