RRD not being created when adding a data source.
Moderators: Developers, Moderators
RRD not being created when adding a data source.
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.
Is there any way to debug this so that I can see why this file isn't being created?
Running on Debian Squeeze.
Re: RRD not being created when adding a data source.
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.
Re: RRD not being created when adding a data source.
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.
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.
Re: RRD not being created when adding a data source.
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
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
- 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.
The actual rrd file will be created during polling cycle: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.
- 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.
Re: RRD not being created when adding a data source.
In my case it does help, since the file is not created, it means one of the steps fails :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
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
- 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.
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.
R.
Re: RRD not being created when adding a data source.
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...
Re: RRD not being created when adding a data source.
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.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...
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.
Who is online
Users browsing this forum: No registered users and 0 guests