Cacti doesnt create rrd or it doesnt update new rrd's

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

Moderators: Developers, Moderators

Post Reply
Tommi
Posts: 10
Joined: Mon May 21, 2007 2:26 am

Cacti doesnt create rrd or it doesnt update new rrd's

Post by Tommi »

Two issues:

1) Cacti doesn't create the rrd-file, when i'm setting it from cacti-console -> Data sources. With "Data Source Debug Mode" on, cacti doesn't give any warnings. Trying to create a graph from non-existing rrd, gives the regular

Code: Select all

"RRDTool Says:
ERROR: opening '<cacti_home>/rra/server_via_ssh_load_5min_33.rrd': No such file or directory "
Permissions should be ok, on the <cacti_home>/rra -directory

Code: Select all

-sh-3.00$ ls -la rra/
total 1876
drwxrwxrwx   2 cacti cacti   4096 Jul 17 14:28 .
drwxr-xr-x  16 cacti cacti   4096 Jul 17 14:29 ..
<snip> 
-rwxrwxr-x   1 cacti cacti  47840 Jul 17 15:07 serveri_snmp_oid_27.rrd
<snip>
Ofcourse i can create the rrd-file by myself, but then comes the second issue.

2) Cacti doesn't update the rrd-files. Old ones work right, but newly created files don't get any new data. I'm using basic "ucd/net" -templates or snmp-templates for data collection. Nothing happens and files timestamp remain same with create-time.

I have checked the "Debug NaN's in your graphs" instructions but those didn't help.

Cacti: Version 0.8.6i (not the newest one)
php -v
PHP 4.3.9 (cgi) (built: May 10 2007 05:19:09)
Running on Linux 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:21:39 CDT 2006 i686 i686 i386 GNU/Linux
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Show me your Cacti cron settings. What user are your running poller.php as? Can you do the following:

Code: Select all

su - <cron_user_running_cacti_poller>
cd /var/www/html/cacti
php -q poller.php
php -q cmd.php
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?
Tommi
Posts: 10
Joined: Mon May 21, 2007 2:26 am

Post by Tommi »

TheWitness wrote:Show me your Cacti cron settings. What user are your running poller.php as? Can you do the following:

Code: Select all

su - <cron_user_running_cacti_poller>
cd /var/www/html/cacti
php -q poller.php
php -q cmd.php
TheWitness
Cacti is started by root-cron and runned under user cacti:
ps xau | grep php
cacti 13261 0.3 0.4 14976 8424 ? S 08:35 0:00 php /var/www/cacti/poller.php

From "php -q poller.php"

Code: Select all

-sh-3.00$ php -q poller.php
Waiting on 1/1 pollers.
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
Waiting on 1/1 pollers.
OK u:0.00 s:0.00 r:1.02
Waiting on 1/1 pollers.
<snip this continues for a long time...>
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
OK u:0.00 s:0.00 r:126.41
OK u:0.00 s:0.00 r:126.41
OK u:0.00 s:0.00 r:126.41
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
<snip this continues for a long time...>
Waiting on 1/1 pollers.
07/18/2007 08:49:58 AM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
07/18/2007 08:49:58 AM - SYSTEM STATS: Time:293.1010 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:31 RRDsProcessed:9
PHP Warning:  pclose(): 45 is not a valid stream resource in /var/www/cacti/lib/rrd.php on line 48

So the problem might be on a misconfigured rrd-update (wrong time or same time as last input was made)?

And from "php -q cmd.php" :

Code: Select all

-sh-3.00$ php -q cmd.php
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/cacti/scripts/linux_memory.pl MemFree:, output: 17804
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /var/www/cacti/scripts/linux_memory.pl SwapFree:, output: 0
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /var/www/cacti/scripts/loadavg_multi.pl, output: 1min:1.64 5min:0.42 10min:0.14
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /var/www/cacti/scripts/unix_processes.pl, output: 223
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] DS[16] CMD: perl /var/www/cacti/scripts/query_unix_partitions.pl  get used /dev/sda1, output: 47224
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] DS[16] CMD: perl /var/www/cacti/scripts/query_unix_partitions.pl  get available /dev/sda1, output: 48643
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[8] WARNING: Result from SNMP not valid.  Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v2: 10.0.1.6, dsname: mem_buffers, oid: .1.3.6.1.4.1.2021.4.14.0, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid.  Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v2: 10.0.1.6, dsname: mem_cache, oid: .1.3.6.1.4.1.2021.4.15.0, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[10] WARNING: Result from SNMP not valid.  Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v2: 10.0.1.6, dsname: mem_free, oid: .1.3.6.1.4.1.2021.4.6.0, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[11] WARNING: Result from SNMP not valid.  Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[11] SNMP: v2: 10.0.1.6, dsname: load_1min, oid: .1.3.6.1.4.1.2021.10.1.3.1, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[12] WARNING: Result from SNMP not valid.  Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[12] SNMP: v2: 10.0.1.6, dsname: load_15min, oid: .1.3.6.1.4.1.2021.10.1.3.3, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[13] WARNING: Result from SNMP not valid.  Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[13] SNMP: v2: 10.0.1.6, dsname: load_5min, oid: .1.3.6.1.4.1.2021.10.1.3.2, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[19] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.12, output: 3596259878
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[18] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.9, output: 1978898640
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[17] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.11, output: 3667379030
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[17] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.11, output: 382447765
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[18] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.9, output: 3385631359
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[19] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.12, output: 83693471
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[20] WARNING: Result from SNMP not valid.  Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[20] SNMP: v2: 10.0.1.6, dsname: users, oid: .1.3.6.1.2.1.25.1.5.0, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[22] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.6, output: 32240679
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[22] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, output: 1913267
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[23] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.7, output: 3651377434
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[23] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.7, output: 545798738
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[24] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.8, output: 513567912
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[24] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.8, output: 177726914
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[25] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.10, output: 1184273204
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[25] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.10, output: 3374175286
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[26] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.731, output: 0
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[26] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.731, output: 0
Those DS[XX] propably refer to datasources? Datasources 1-26 are old ones (working ok) but newer ones don't even show up on that listing... So cacti doesn't accept new ones ? (which i have made myself, by copying the create command from cacti. Otherwise the new ones wouldn't even exist..)
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I suspect that you have too many entries in your poller_output table. If you look in SVN, you will find a poller_output_clean.php file. Don't get the most recent, but rather the prior version and then run it. It will update your missing RRD data.

Then, make sure that /etc/php.ini have a high memory_limit, say 256mbytes so that this does not happen again.

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?
Tommi
Posts: 10
Joined: Mon May 21, 2007 2:26 am

Post by Tommi »

Now i have the same problem again. But this time it didn't occur right away. Basic problem is, that cacti doesn't create all of the rrd-files and of course the doesn't update those either... This seems to be related on the template.

First i created a php-file, for collectin snmp data from WebLogic servers. Then i started working via cacti as I declared the data input method (Console -> Data Input Methods -> add), created data templates (Console -> Data Templates -> add) and made graph template (Console -> Graph Templates -> add).

I tested my new script, it had some problems (my fault) but i fixed those. Rrd-files were created and some graphics was visible. Then I decided to change the php-script littlebit and that change demanded a small change also to the Data Input Method . And now if i create new rrd:s from these templates, cacti doesn't create the rrd-file at all.
Tommi
Posts: 10
Joined: Mon May 21, 2007 2:26 am

Post by Tommi »

And I had caused the problem again. Had wrong name on data input method as a snmp community pharse... It's suppose to be <snmp_community> as a script parameter, not <wls_community> or whatever. :roll:

Always double-check. And then triple-check on the next day. And so on...
Tommi
Posts: 10
Joined: Mon May 21, 2007 2:26 am

Post by Tommi »

And as result from the fourth check I noticed that Data template didn't have any "Data Input Method" (Console -> Data Templates -> (Edit) ) set... Now this problem only occured with my newly created php-script, but still took two days of looking for the trouble...

It seems to be, that new rrd:s are not created immediately on next update, but after a few rounds of cacti poller.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests