Log shows RRD Updates, but RRD Not Updated

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

Moderators: Developers, Moderators

lankienen
Cacti User
Posts: 60
Joined: Fri Feb 06, 2009 3:15 am
Location: Dublin

Post by lankienen »

Hi fred!

Could your already solve this problem?

I have mentioned today exact the same problem of 1 of my 12 cacti servers.
But i dont have a clue whats wrong with it.

My graphs are going to be updated, but the log still shows the error message.

Here is the last part of my log:
05/22/2009 07:15:23 PM - UPTIME: Poller[0] Checking Uptime
05/22/2009 07:15:23 PM - WEATHERMAP: Poller[0] Weathermap 0.95b run complete - 0 maps were run in 0 seconds
: Poller[0] Weathermap 0.95b starting - Normal logging mode. Turn on DEBUG in Cacti for more information
05/22/2009 07:15:23 PM - WEATHERMAP
05/22/2009 07:15:23 PM - SYSTEM THOLD STATS: Time:0.0929 Tholds:24 Hosts:0
05/22/2009 07:15:23 PM - SYSTEM STATS: Time:21.4202 Method:spine Processes:1 Threads:15 Hosts:46 HostsPerProcess:46 DataSources:13534 RRDsProcessed:4710
05/22/2009 07:15:23 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write
05/22/2009 07:15:23 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write
05/22/2009 07:15:23 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write
05/22/2009 07:15:23 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write


my host info:
Cacti Version - 0.8.7d
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux 2.6.16.60-0.21-smp
Web Server - Apache/2.2.3 (Linux/SUSE)
PHP - 5.2.5
PHP Extensions - libxml, xml, session, pcre, SimpleXML, SPL, standard, Reflection, filter, date, apache2handler, bcmath, bz2, calendar, ctype, curl, dba, dbase, dom, exif, ftp, gd, gettext, gmp, iconv, imap, json, ldap, mbstring, mcrypt, mhash, mysql, mysqli, ncurses, odbc, openssl, pcntl, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, shmop, snmp, soap, sockets, SQLite, suhosin, sysvmsg, sysvsem, sysvshm, timezonedb, tokenizer, wddx, xmlreader, xmlrpc, xsl, zlib
MySQL - 5.0.26-Max
RRDTool - 1.2.12
SNMP - 5.3.0.1
Plugins
  • Global Plugin Settings (settings - v0.5)
    Thresholds (thold - v0.4.1)
    Device Monitoring (monitor - v0.8.2)
    Network Discovery (discovery - v0.8.4)
    Host Info (hostinfo - v0.2)
    Change password (passwd - v0.1)
    rddclean
    Device Tracking (mactrack - v1.1)
    Network Tools (tools - v0.3)
    Read-only Devices Tab (devices - v0.4)
    PHP Network Weathermap (weathermap - v0.95b)
    Cacti-ReportIt (reportit - v0.6.1)
    SSL Redirector (ssl - v0.1)
    Uptime (uptime - v0.3)
I dont think its the version of rrdtool, because all my other 11 cacti servers run with exact the same settings just fine.

lankienen
lankienen
Cacti User
Posts: 60
Joined: Fri Feb 06, 2009 3:15 am
Location: Dublin

Post by lankienen »

Have any other updates about this issue?

Thanks!
lankienen
Cacti User
Posts: 60
Joined: Fri Feb 06, 2009 3:15 am
Location: Dublin

Post by lankienen »

Push

I didn't find any useful solution for this error.

Anyone an idea to solve this?

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

Post by gandalf »

RRDTool 1.2.12 is way old and know to be buggy. Sticking to 1.2 flavours of rrdtool, you should upgrade to 1.2.27 or higher.
Reinhard
lankienen
Cacti User
Posts: 60
Joined: Fri Feb 06, 2009 3:15 am
Location: Dublin

Post by lankienen »

Hi Reinhard!

Thanks for your help!
I've never upgraded rddtool before!
Are there any issues about it, cause this error occours at one of my live servers?
I could not found any documentation or mirror about it.

Thanks!
lankienen
Cacti User
Posts: 60
Joined: Fri Feb 06, 2009 3:15 am
Location: Dublin

Post by lankienen »

sorry for doublepost [this reply can be deleted]
gabojm
Posts: 1
Joined: Thu Sep 17, 2009 8:45 am

rrd.php fails in rrdtool_execute

Post by gabojm »

I think I found the piece of code where cacti fails updating rrd files.

in lib/rrd.php

function rrdtool_execute

where send the command via pipe descriptor in:

if (fwrite(rrd_get_fd($rrd_struc, RRDTOOL_PIPE_CHILD_READ), escape_command(" $command_line") . "\r\n") == false) {


returns success but in fact it fails. What I did on the 'else' for this 'if', was rerun the command, edited the rrdtool_function_update function and changed 'update' to 'updatev' with rrdtool 1.2.30, and you can check the DEBUG logs when the return in $run is success with return = 0 what means fwrite didn't complete:

}else{
fflush(rrd_get_fd($rrd_struc, RRDTOOL_PIPE_CHILD_READ));
#GABO added next lines for second recall to rrdtool
$cmdgabo=read_config_option("path_rrdtool")." ". escape_command(" $command_line");
$run = `$cmdgabo`;
cacti_log("GABO: Ok execute2 $command_line gabo line: $cmdgabo output: $run\n"
);


A little diff:

51d50
<
122c121,124
<
---
> #GABO added next lines for second recall to rrdtool
> $cmdgabo=read_config_option("path_rrdtool")." ". escape_command(" $command_line");
> $run = `$cmdgabo`;
> //cacti_log("GABO: Ok execute2 $command_line gabo line: $cmdgabo output: $run\n");
356c358
< rrdtool_execute("update $rrd_path --template $rrd_update_template $rrd_update_values", true, RRDTOOL_OUTPUT_STDOUT, $rrd_struc, "POLLER");
---
> rrdtool_execute("updatev $rrd_path --template $rrd_update_template $rrd_update_values", true, RRDTOOL_OUTPUT_STDOUT, $rrd_struc, "POLLER");
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you add a feature request to http://bugs.cacti.net

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests