SOLVED No Data Sources shown but cmd.php is reporting 1041 D

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

Moderators: Developers, Moderators

Post Reply
faser
Posts: 11
Joined: Wed Apr 04, 2007 6:54 am
Location: Hong Kong

SOLVED No Data Sources shown but cmd.php is reporting 1041 D

Post by faser »

Hi All,

after an upgrade of an old system get a little bit wrong my cacti is behaving strange.

1. Cacti is not updated sofar, it is stil 0.8.6g
2. I updated php, mysql, apache

When I log into cati my graphs and Data Sources seems to be empty (nothing shown while actually they are showing plenty of items on the page counter (see attached picture).
And the strange part is that the logfile correctly shows all data sources and all rra's are updated correctly.

Any hints are welcome!

Cheers

Fred

03/11/2009 02:52:16 PM - SYSTEM STATS: Time:134.5037 Method:cmd.php Processes:1 Threads:N/A Hosts:116 HostsPerProcess:116 DataSources:1041 RRDsProcessed:663
Attachments
No Data Sources but plenty of pages
No Data Sources but plenty of pages
cacti_no_data_sources.jpg (85.59 KiB) Viewed 1415 times
Last edited by faser on Fri Mar 13, 2009 5:47 am, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Make sure that MySQL is not running in STRICT mode.

Code: Select all

mysql
show global variables like 'sql_mode';
Make sure it is unset. If it is, I hope you made a backup of your database. You may be ok, but only if you have not created more graphs.

Once you make the change in my.cnf, make sure that you restart mysql.

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?
faser
Posts: 11
Joined: Wed Apr 04, 2007 6:54 am
Location: Hong Kong

Post by faser »

Hi,

the result is empty what I assume means 'unset'.

mysql> show global variables like 'sql_mode';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| sql_mode | |
+---------------+-------+
1 row in set (0.00 sec)

One more hint, the MYSQL upgrade I made was from 4 to 5

Cheers

Fred
faser
Posts: 11
Joined: Wed Apr 04, 2007 6:54 am
Location: Hong Kong

Post by faser »

Hi,

an Upgrade to 0.8.7b has solved the problem. Still strange what was wrong before?

Cheers

Fred
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, very odd.

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