cactid not updating rrd files

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

Moderators: Developers, Moderators

Post Reply
zimxx
Posts: 10
Joined: Tue Jun 17, 2003 5:26 pm

cactid not updating rrd files

Post by zimxx »

is there any known issue where cactid doesnt update any rrd files?

the output leads me to believe everything is working wonderfully, but there are never any actual updates done to the rrd files.

i get a substantial number of messages along the lines of:
[7] MUTLI command: /opt/cacti/scripts/ns_cpu.pl 192.168.1.2, output: cpuus:1 cpusy:1 cpuid:98

and a good number of lines like:
MULTI expansion: found fieldname: cpuus, found rrdname: cpuus, local_data_id: 200

and quite a few:
rrdcmd: update /opt/cacti/rra/machine.rrd --template cpuus:cpusy:cpuid N:1:1:98

but /opt/cacti/rra/machine.rrd never gets any type of update.
for the time being i switched back to cmd.php, but it takes over 300 seconds for all of my checks to complete, whereas with cactid it was finishing a round of checks in under a minute.

any help would be greatly appreciated. thanks
-so it goes
zimxx
Posts: 10
Joined: Tue Jun 17, 2003 5:26 pm

Post by zimxx »

it seems that cactid does not query the mysql database to find your rrdtool path, so if rrdtool is not in root (or whoever you're having execute cactid) path, it's a no-go for you. on top of that, cactid doesnt error out if it cant open up an rrdtool pipe, it just continues on its merry way, running queries and logging everything happily, while not actually... doing anything of use.
-so it goes
case
Posts: 9
Joined: Wed Oct 30, 2002 12:12 pm

Post by case »

I have a similar problem with the rrd file not being updated, but I am using cmd.php in 0.8.1 instead of cactid. Since cacti creates the rrd file for me one would think that cacti would also update the rrd file. I can't seem to figure it out. :(
case
Posts: 9
Joined: Wed Oct 30, 2002 12:12 pm

Post by case »

To reitereate.....Cmd.php does not update the .rrd file (no timestamp update), it only creates the .rrd. Also, the default data sources that come with cacti get updated. The rra log shows updates for the default data sources, but nothing for my data sources, not even errors. I have seen other messages on this message board that talk about these same issues, but have not seen any solutions. Any help would be appreciated. -case
Guest

Post by Guest »

hi case,

i have the same problem. Once the rrd file is created, it gets not updated any longer...

Stephan
Guest

Post by Guest »

Make sure the rrdtool binaries are in your PATH.
git-
Posts: 2
Joined: Wed Sep 28, 2005 7:16 am

Post by git- »

Hi,

I had the same issue... but found out that i was doing something stupid

Aka not adding a redirect of the output from the crontab to /dev/null or a logfile. After changing this everything worked as it suppossed to be.

*/5 * * * * /usr/bin/php /home/sites/cacti/poller.php
changed to
*/5 * * * * /usr/bin/php /home/sites/cacti/poller.php > /tmp/poller.log

(yeah i blame my self on this.. for taking that long to realize what was going on.. had half the rrd.php/poller.php transformed with log statements..)

so maybe thats the case for you guys to...

on to the next step... getting some rrd's to run every 2 miniutes and others every 5 minutes..

h.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest