It seems I have a strange problem...
I've installed cacti from source (cacti-0.8.6d.tar.gz) and used the 3 patches I found on the cacti website.
Everything seems to work fine, until I added a script to graph the temperature of my harddisks. When I run from command line "php4 /var/www/cacti/poller.php" all the .rrd files gets updated. But when I wait for my cron to execute te SAME (php4 /var/www/cacti/poller.php) script, as root, it doesn't update the rrd file for the temperature graph.
I already increased the amount of concurrent poller processes from 1 to 10 but that doesn't solve my problem. It's strange that the rrd file only gets updated when I manually force php4 to execute poller.php.
Do you have any idea what might cause this problem?
I'm running debian:
Apache/1.3.33
PHP 4.3.10-15 (cli) (built: May 9 2005 08:54:56)
RRDtool 1.0.49
NET-SNMP version: 5.1.2
some .rrd files do not get updated
Moderators: Developers, Moderators
when I change the logging to debugging, I don't even see any logging for that specific rrd... When I execute the command manually from my shell, I do see:
06/06/2005 06:57:13 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/blacky_hda_75.rrd --template hda:hdc 1118077031:39:39
jeroen
06/06/2005 06:57:13 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/blacky_hda_75.rrd --template hda:hdc 1118077031:39:39
jeroen
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Permissions?
Make sure the user running the poller has permissions to read/write the rrd files and the directory they are in.
Make sure the user running the poller has permissions to read/write the rrd files and the directory they are in.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- TheWitness
- Developer
- Posts: 17050
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
First off, please be carefull with concurrent processes. If you make them too high, that can also cause problems. Second, please review your poller cache "System Utilities->View Poller Cache". Look for the specific entry for the RRD file in question. If you find it, then you need to redirect the output of the cron job to a file and look for error messages. To understand the source.
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?
OK, thanks for the efforts...
here is what I got:
poller cache:
Data Source: blacky - HDDtemp
RRD: /var/www/cacti/rra/blacky_hda_75.rrd
Action: 1, Script: /var/www/cacti/scripts/hddtemp.sh
but when I redirect the output for the cron job, I don't see anything that looks like HDDtemp or something like that... There is also nothing to see for blacky_hda_75.rrd
If you want to check the output, I attached it.
I changed the concurrent processes back to value 1 (since I created newer graphs, and they do get updated... It's only 1 rrd that doesn't get updated).
By the way, I already deleted the complete graph etc (data source, template, ...) and recreated that. It only updates when I run manually the poller from a shell.
regards,
jeroen
here is what I got:
poller cache:
Data Source: blacky - HDDtemp
RRD: /var/www/cacti/rra/blacky_hda_75.rrd
Action: 1, Script: /var/www/cacti/scripts/hddtemp.sh
but when I redirect the output for the cron job, I don't see anything that looks like HDDtemp or something like that... There is also nothing to see for blacky_hda_75.rrd
If you want to check the output, I attached it.
I changed the concurrent processes back to value 1 (since I created newer graphs, and they do get updated... It's only 1 rrd that doesn't get updated).
By the way, I already deleted the complete graph etc (data source, template, ...) and recreated that. It only updates when I run manually the poller from a shell.
regards,
jeroen
- Attachments
-
- cron.txt
- (11.47 KiB) Downloaded 189 times
Who is online
Users browsing this forum: No registered users and 1 guest