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.
RRDtool and NaN data
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
having the same problem too ....
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
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: 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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 2 guests