Cacti .8.6b w/ cactid and rrd file update/create issues

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

Moderators: Developers, Moderators

fjl

Cacti .8.6b w/ cactid and rrd file update/create issues

Post by fjl »

I had cacti .8.6a working w/ cmd.php as the poller and all was working, save for gaps in the graphs. I update to .8.6b and attempted to use cactid .8.6b and the rrd files have stopped updating. I added a new device, and those rrd files are not being created.

Perms/ownership seem correct. The user running the poller cronjob is the same as all the directories and files. The cronjob, itself is:

Code: Select all

*/5 * * * * /openpkg/bin/php /openpkg/share/cacti/poller.php > /dev/null 2>&1
The poller type is "cactid" and the path to cactid (and rrdtool) is correct.

Running in debug mode, I get a boat load of output, but no mention of trying to update the rrd files. I tried to rollback to cmd.php, but that does not seem to update the .rrd files either. A cacti.log is attached-- 1 run each of cactid and cmd.php.

I am stuck. Any help is appreciated.

SuSE Linux 8.2
cacti-0.8.6b
php-4.3.8-2.1.2
mysql-4.0.18-2.0.0
rrdtool-1.0.46

Thanks in advance.
Attachments
cacti.log.save.gz
(27.92 KiB) Downloaded 112 times
fjl

rrd.log file size is ok

Post by fjl »

As per another thread in the forum, I checked the rrd.log file size and it checked out to 11Mb... So that does not appear to be an issue.
fjl

Similar to this thread?

Post by fjl »

If I had to guess, I would say that my issue looks very much like this one. However, I have to say that I have not done as much debug work as gninja did in the db...

http://forums.cacti.net/viewtopic.php?t=5042

Was there ever a resolution to this thread?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please run in DEBUG mode from the command line and pipe the output to a file and post to this forum. Need to see both the STDOUT and STDERR from the RRDTool command.

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?
fjl

Please clarify

Post by fjl »

Thanks for the quick response.

I do not fully understand what you are asking. Specifically, what do you want me to run?
- cactid
- php poller.php

Assuming that you want the poller, as run from cron, this is all I get:

Code: Select all

share/cacti> /openpkg/bin/php /openpkg/share/cacti/poller.php
10/14/2004 09:13:15 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /openpkg/bin/php, ARGS: -q /openpkg/share/cacti/cmd.php 0 90]
Waiting on 1/1 pollers.
share/cacti>
That is, I no longer get the

Code: Select all

OK u:0.01 s:0.00 r:1.18
OK u:0.01 s:0.00 r:1.18
OK u:0.01 s:0.00 r:1.18
output anymore...

-FJL[/b]
FJL

Paths checkout

Post by FJL »

It appears to me that rrdtool is not even being called... But the paths/ownership/perms checkout fine:

Code: Select all

openpkg-r@foo$ ls -l /openpkg/bin/snmpwalk /openpkg/bin/snmpget /openpkg/bin/rrdtool /openpkg/bin/php /openpkg/share/cacti/log/cacti.log /openpkg/share/cacti/cactid
-rwxr-xr-x    1 openpkg  openpkg   3133188 Sep  7 12:40 /openpkg/bin/php
-rwxr-xr-x    1 openpkg  openpkg    293100 May 24 09:57 /openpkg/bin/rrdtool
-rwxr-xr-x    1 openpkg  openpkg    768192 May 24 12:21 /openpkg/bin/snmpget
-rwxr-xr-x    1 openpkg  openpkg    769728 May 24 12:21 /openpkg/bin/snmpwalk
-rwxr-xr-x    1 openpkg-r openpkg-r  8667356 Oct 13 13:40 /openpkg/share/cacti/cactid
-rw-r--r--    1 openpkg-r openpkg-r   208351 Oct 14 09:32 /openpkg/share/cacti/log/cacti.log

openpkg-r@foo$ ls -la /openpkg/var/cacti/rra
total 55784
drwxr-xr-x    2 openpkg-r openpkg-r    28672 Oct 13 16:12 .
drwxr-xr-x    6 openpkg-r openpkg-r     4096 Oct 14 08:51 ..
-rw-rw-rw-    1 openpkg-r openpkg-r    71580 Oct 13 14:07 2000ts_cpu_752.rrd
-rw-rw-rw-    1 openpkg-r openpkg-r    71580 Oct 13 14:07 2000ts_cpu_753.rrd
...
openpkg-r@foo$
-FJL
FJL

More

Post by FJL »

Running as root does not change anything. The rrdtool does not appear to be called at all as apart of the poller process.
fjl

Did a fresh install on another box, and everything is fine..

Post by fjl »

I took the same versions of my packages, and did a fresh install on another box, and everything is working as advertised. All rrd files are being updated, all graphs are being updated...

The big difference that I see is that I was trying to upgrade from cacti 085 to 086b *preserving* the mysql cacti db and existing rrd files-- that box is still a no-go.

I am rebuilding all the devices/graphs/trees on the "new" installation, and everything is fine... cactid is running and performance is great.

This still puts me in a bind though, as I need to get the working cacti off the w/s and get back to the "monitoring server"...

Any one seen similar?
laffen
Cacti User
Posts: 56
Joined: Tue Jul 13, 2004 2:57 am
Location: Norway

Re: Please clarify

Post by laffen »

fjl wrote:Thanks for the quick response.

I do not fully understand what you are asking. Specifically, what do you want me to run?
- cactid
- php poller.php

Assuming that you want the poller, as run from cron, this is all I get:

Code: Select all

share/cacti> /openpkg/bin/php /openpkg/share/cacti/poller.php
10/14/2004 09:13:15 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /openpkg/bin/php, ARGS: -q /openpkg/share/cacti/cmd.php 0 90]
Waiting on 1/1 pollers.
share/cacti>
That is, I no longer get the

Code: Select all

OK u:0.01 s:0.00 r:1.18
OK u:0.01 s:0.00 r:1.18
OK u:0.01 s:0.00 r:1.18
output anymore...

-FJL[/b]
Very similar to my experience. After upgrading from 0.8.5a to 0.8.6b (release and yesterdays build) the graphs are no longer update. The poller stops after a while with this message:

OK u:0.03 s:0.12 r:64.04
OK u:0.03 s:0.12 r:64.04
Waiting on 5/6 pollers.
OK u:0.03 s:0.12 r:65.05
OK u:0.03 s:0.12 r:65.05
Waiting on 5/6 pollers.
Waiting on 5/6 pollers.
Waiting on 5/6 pollers.
Waiting on 5/6 pollers.

A fresh install will probably work, but I downgraded back to 0.8.5a. For some reason 0.8.6b borks when I try to convert the old database and keep the old rra/ files, anyone know if there is a way to migrate the data over to a new install besides the upgrade path?
Polarizer
Posts: 3
Joined: Fri Oct 15, 2004 6:56 am

Solved: no rrd creation or update

Post by Polarizer »

Solved: no rrd creation or update:

I'd to use poller.php instead of cmd.php in crontab to get it work.

After some source code auditing i faced that poller.php was never invoked elsewhere but it contains the function calls to handle rrd files.

Hope that helps
Polarizer @ its best

http://www.codixx.de/polarizer.html
fjl

Problem w/ upgraded db & rrd files was w/ both pollers

Post by fjl »

I had no love w/ either cmd.php or cactid. As stated earlier, a fresh install on another box works fine-- with both pollers.

I fear losing the historical data. I second laffen's query, Is there a way to import the historical data?

Thanks in advance.
FJL
git-

Post by git- »

Unfortunately, i'm also a victim of this issue.

after first losing my templates (due to the upgrade) and re-importing them into the upgraded version. I'm again happy that it does create the datasource again. But:

* It Doesnt create the rra not even as running the poller.php as root.
* the syntax for rrdtool is stated in the debug of the datasource

/usr/bin/rrdtool create \
/home/sites/cacti/rra/erx_traffic_out_165.rrd \
--step 300 \
DS:traffic_out:COUNTER:600:0:100000000 \
DS:traffic_in:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

* running this code will result in an rra, but it will not get anny data waiting for cacti to create it won't work.. after a day it's still not created.

another weird thing is that al my previous graphs are stated as traffic_in rater than traffic_out

anny ideas on howto fix this? or install a new copy and maintaining my history.

regards hilmar
laffen
Cacti User
Posts: 56
Joined: Tue Jul 13, 2004 2:57 am
Location: Norway

Re: Please clarify

Post by laffen »

Just wanted to mention that I upgraded to the latest pre 0.8.7 Cacti+Cactid build and it started polling and graphing again using cactid.
fjl

great news

Post by fjl »

That is grat news, indeed. Any idea when 0.87 will be released?

Any idea on what was fixed to make the rrd's update again? I have seen snippets about cactid 0.86 that indicate that the issue might be fixed. any thoughts?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

A ways out (way, way out) :cry: If you grab an update tonight it will be stable. But in a few weeks, watch out. We have major plans.

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 3 guests