RRDtool and NaN data

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

Moderators: Developers, Moderators

Post Reply
straylight
Posts: 1
Joined: Sat Mar 12, 2005 1:42 pm

RRDtool and NaN data

Post by straylight »

Hi

I've just today started using Cacti and I'm having the same problem as a lot of people, it seems, and it's more a problem with RRDtool than with Cacti.

Basically, data that is sent to RRDtool isn't being added to the rra files and I can't figure out why.

The RRA files are created with:

rrdtool create data.rrd --step 300
DS:ifInOctets:COUNTER:6000:0:4294967296
DS:ifOutOctets:COUNTER:6000:0:4294967296
DS:ifRequests:COUNTER:6000:0:4294967296
RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797

and the data is passed to RRDtool using like this:

rrdtool update data.rrd --template ifInOctets:ifOutOctets:ifRequests 1110662859:0:8377243:7914
[etc; more lines were used in the test]

So, based on what I've read I can eliminate the following reasons for data not being stored:

1. Permissions on the files are ok; these tests were run as root
2. The heartbeat is significantly larger than the step
3. The values being entered into the RRDtool are within the acceptible range defined when the file was created.
4. The update commands are called at five-minute intervals

I have attempted to recompile the rrdtool software with #define DEBUG but the output it provides is completely useless, and I have not been able to find any reference to this output anywhere.

I have read the manuals, and all of the howtos that I could read.

Can anyone please explain why on earth this doesn't work?

Thanks!

j.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Poller.php is scheduled correct? Can you post your logfile in DEBUG for a few passes. Also, run poller.php from the command line one time. If you have been either running cmd.php or cactid for some time, there is a table that you will have to truncate called poller_output.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
le_renard
Posts: 3
Joined: Wed Apr 13, 2005 5:35 pm

having the same problem too ....

Post by le_renard »

Having the same problem, running this against two systems right now, one sun sparc system running net-snmp and one w2k server. completely new installation as of today. Get NaNs in all my RRAs, can get the data from snmpwalk.

running this on a Solaris host ...

cron entry:
0,5,10,15,20,25,30,35,40,45,50,55 \ * * /usr/local/apache2/htdocs/cacti/poller.php > /dev/null 2>&1

logs in debug attached
Attachments
cacti_debug_1.txt
cacti debug logs
(24.28 KiB) Downloaded 85 times
le_renard
Posts: 3
Joined: Wed Apr 13, 2005 5:35 pm

Post by le_renard »

oh, also using version 0.8.6c of cacti.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

le_renard: You need to find and fix all of the WARNING: Result from SNMP not valid. Partial Result for the OIDs in your log. Seems your rra files are getting properly updated though. Could always dump the contents and look at the xml file to verify that.
le_renard
Posts: 3
Joined: Wed Apr 13, 2005 5:35 pm

Post by le_renard »

thanks - that seemed a little secondary though, if I try to snmpwalk those . RRA files all have NaNs for every entry when I dump them. Do you want me to attach the xml conf for the host(s) ?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests