Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed May 24, 2017 8:16 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Issue while using Weather Map with PHP 7.08
PostPosted: Sat Sep 24, 2016 10:21 am 
Offline

Joined: Sat Sep 24, 2016 10:07 am
Posts: 1
Hello Gents,

We have installed Cacti 0.8.8f and the Weather Map version 0.98 on an ubuntu 16.04 server. It seems that Weather Map is correctly installed and intergraded within Cacti however once we try to add a Weather Map we do get the following error:

[Sat Sep 24 17:36:51.118074 2016] [:error] [pid 4509] PHP Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in /usr/share/cacti/site/plugins/weathermap/weathermap-cacti-plugin-mgmt.php:837\nStack trace:\n#0 /usr/share/cacti/site/plugins/weathermap/weathermap-cacti-plugin-mgmt.php(274): add_config('mylocal.conf&apos\n#1 {main}\n thrown in /usr/share/cacti/site/plugins/weathermap/weathermap-cacti-plugin-mgmt.php on line 837, referer:

It seems like Weather Map does not support 7.x versions of PHP. As a possible solution to the issue would you suggest installing PHP 5.6 or using a solution like PHP-FTM ?

Last, the log on Cacti does not show any information relevant to the Weather Map issue except this part:

9/24/2016 06:152 PM - WEATHERMAP: Poller[0] Weathermap 0.98 starting - Normal logging mode. Turn on DEBUG in Cacti for more information
09/24/2016 06:152 PM - SYSTEM STATS: Time.4770 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:13 RRDsProcessed:7

Thank you,

Andreas


Top
 Profile  
 
 Post subject: Re: Issue while using Weather Map with PHP 7.08
PostPosted: Sat Sep 24, 2016 11:23 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5097
Location: United Kingdom
5.6 would be a solution for now.

More info here: https://network-weathermap.com/2016/09/04/september-2016-current-issues/

_________________
Weathermap 0.98 is out! & QuickTree 0.2. Superlinks is over there now.
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group