Post MySQL upgrade blues/graphs not updating

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

Moderators: Developers, Moderators

Post Reply
saiyr
Posts: 5
Joined: Wed Jun 29, 2005 3:07 pm

Post MySQL upgrade blues/graphs not updating

Post by saiyr »

Sorry, I'm somewhat new at this.

I recently upgraded a RHEL3 server from MySQL 3.23 to 4.1. I seem to have smoothed out most of the details after recompiling cactid and upgrading server/client/libraries/headers in MySQL, but I've still got one major problem. The graphs no longer update. The cron was left untouched, and the logs show it running the poller every 5 minutes, but the graphs don't update unless I manually run php poller.php.

I'm guessing it has to do with permissions, but I have no idea where I'd have messed up. The cronjob runs as cactiuser and I've been running it as root, which could have messed it up somewhere. All of the rra's are cactiuser.cactiuser u+rw, rra and log are u+rwx cactiuser.root, and cactid is cactiuser.root u+rx.

Anyone have any ideas? I looked a little bit through some threads and didn't find much.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Turn you "Poller Logging Level" to debug and post one polling cycle of the poller from cacti.log.
[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]
saiyr
Posts: 5
Joined: Wed Jun 29, 2005 3:07 pm

Post by saiyr »

rony wrote:Turn you "Poller Logging Level" to debug and post one polling cycle of the poller from cacti.log.
I'm not sure if you meant the entire file (it's 800 lines), so I'll just attach it instead of putting it in a post.
Attachments
cacti.txt
(126.18 KiB) Downloaded 146 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The only issue I can see is some interface data sources not being updated correctly. You should likely run poller.php from a command line and post that output as well. Again, in debug mode.

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?
saiyr
Posts: 5
Joined: Wed Jun 29, 2005 3:07 pm

Post by saiyr »

TheWitness wrote:The only issue I can see is some interface data sources not being updated correctly. You should likely run poller.php from a command line and post that output as well. Again, in debug mode.

TheWitness
That's actually what I did. The cronjob doesn't generate any output in logs or update the .rra files. The cron log, however, does say that it's running...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Redirect the crons output to a log file or look at the existing cron log and you will find your problems there...

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?
saiyr
Posts: 5
Joined: Wed Jun 29, 2005 3:07 pm

Post by saiyr »

I tracked down a few problems...I installed the shared-compat libraries for MySQL to fix Apache2's complaining. Redirecting the output of the cron to a file told me that it was running an older version of PHP, and I noticed two older versions. For some reason, the cron was executing an older version of the PHP, while executing it in the shell uses the newest version. However, now the output from the cron is blank, and it still doesn't work.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest