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
cactid not updating rrd files
Moderators: Developers, Moderators
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
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
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest