cacti plugins weathermap This map hasn't been created yet.

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

xian_yangyq
Posts: 16
Joined: Sun Apr 09, 2006 9:29 pm

cacti plugins weathermap This map hasn't been created yet.

Post by xian_yangyq »

hi all,
i config cacti plugins weathermap can not display network map find "This map hasn't been created yet." info.
i already use command line create test.png and test.html but in cacti press top button can not show map, is why?

thanks!
davs
Posts: 28
Joined: Fri Mar 31, 2006 9:47 am
Location: paris

Post by davs »

hi all,
i config cacti plugins weathermap can not display network map find "This map hasn't been created yet." info.
i already use command line create test.png and test.html but in cacti press top button can not show map, is why?

What is your configuration system?
And do you get any error message in your cacti log files?
xian_yangyq
Posts: 16
Joined: Sun Apr 09, 2006 9:29 pm

Post by xian_yangyq »

Hi advs,

my logfile is "04/18/2006 11:28:17 AM - SYSTEM STATS: Time:196.4227 Method:cmd.php Processes:1 Threads:N/A Hosts:18 HostsPerProcess:18 DataSources:3652 RRDsProcessed:1755
04/18/2006 11:28:17 AM - WEATHERMAP: Poller[0]

No image (gd) extension was found, or could be loaded. This is required by weathermap.
04/18/2006 11:28:17 AM - WEATHERMAP: Poller[0]
IMPORTANT: Just because mod_php and php_info() shows gd in a webpage, it doesn't mean it's
Available in your command-line php program. Please check the output from 'php -i' to be sure!
04/18/2006 11:28:17 AM - WEATHERMAP: Poller[0] Required modules for PHP Weathermap were not present. Not running."

my configuration system is redhat E3, php V4.3.2

thanks!
davs
Posts: 28
Joined: Fri Mar 31, 2006 9:47 am
Location: paris

Post by davs »

You may not have your gd module activated.
try:

Code: Select all

php -m
you'll have a list of your module... If you can't see the "gd" module listed you have to activated it in your php.ini by uncommenting the line "extension=php_gd2.dll" and then restart your server...

hope this help you...
xian_yangyq
Posts: 16
Joined: Sun Apr 09, 2006 9:29 pm

Post by xian_yangyq »

davs wrote:You may not have your gd module activated.
try:

Code: Select all

php -m
you'll have a list of your module... If you can't see the "gd" module listed you have to activated it in your php.ini by uncommenting the line "extension=php_gd2.dll" and then restart your server...


Hi,

i check php -m command line can find gb

hope this help you...
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
dba
dbx
dio
domxml
exif
ftp
gd
gettext
gmp
iconv
imap
ldap
mbstring
mysql
ncurses
openssl
overload
pcre
posix
pspell
session
shmop
sockets
standard
sysvsem
sysvshm
tokenizer
wddx
xml
yp
zlib

[Zend Modules]
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

xian_yangyq wrote:Hi advs,

my logfile is "04/18/2006 11:28:17 AM - SYSTEM STATS: Time:196.4227 Method:cmd.php Processes:1 Threads:N/A Hosts:18 HostsPerProcess:18 DataSources:3652 RRDsProcessed:1755
04/18/2006 11:28:17 AM - WEATHERMAP: Poller[0]

No image (gd) extension was found, or could be loaded. This is required by weathermap.
04/18/2006 11:28:17 AM - WEATHERMAP: Poller[0]
IMPORTANT: Just because mod_php and php_info() shows gd in a webpage, it doesn't mean it's
Available in your command-line php program. Please check the output from 'php -i' to be sure!
04/18/2006 11:28:17 AM - WEATHERMAP: Poller[0] Required modules for PHP Weathermap were not present. Not running."

my configuration system is redhat E3, php V4.3.2

thanks!
does whereis php or which -a php give more than one answer? Is it possible that the 'php' you get when you type php in a shell is a different one from the one that your poller cron job runs? crontab -l -u cactiuser will tell you which one is used by the poller.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
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!)
wd
Posts: 9
Joined: Fri May 12, 2006 8:35 pm

Post by wd »

I got the same problem...
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

wd wrote:I got the same problem...
which part? does the command-line tool work? do you get an error in your cacti log?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
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!)
wd
Posts: 9
Joined: Fri May 12, 2006 8:35 pm

Post by wd »

Howie wrote:
wd wrote:I got the same problem...
which part? does the command-line tool work? do you get an error in your cacti log?
Command-line tool work.
Nothing in cacti log...
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

wd wrote:
Howie wrote:
wd wrote:I got the same problem...
which part? does the command-line tool work? do you get an error in your cacti log?
Command-line tool work.
Nothing in cacti log...
OK, so that's not the same problem. Does the the Weathermap link appear in the Manage section of the console? Does the Manage screen allow you to add maps? If you disable any other plugins, is there still nothing in the cacti log after one poller cycle?

There should almost always be something in the log, even if it's just an error.

You may want to try running the poller from the command line too.

Code: Select all

php poller.php
from within your cacti root directory, just in case there are errors that don't end up in the cacti log.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
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!)
wd
Posts: 9
Joined: Fri May 12, 2006 8:35 pm

Post by wd »

Howie wrote:
wd wrote:
Howie wrote: which part? does the command-line tool work? do you get an error in your cacti log?
Command-line tool work.
Nothing in cacti log...
OK, so that's not the same problem. Does the the Weathermap link appear in the Manage section of the console? Does the Manage screen allow you to add maps? If you disable any other plugins, is there still nothing in the cacti log after one poller cycle?

There should almost always be something in the log, even if it's just an error.

You may want to try running the poller from the command line too.

Code: Select all

php poller.php
from within your cacti root directory, just in case there are errors that don't end up in the cacti log.
I mean nothing in cacti log about weathermap.
I can run "php poller.php" and got no error.
I can run cacitd and got no error too..
But there still nothing abou weathermap in cacti log..
wd
Posts: 9
Joined: Fri May 12, 2006 8:35 pm

Post by wd »

I run a mysql query and get some message:

mysql> select * from weathermap_maps;
+----+-----------+--------+------------+-----------+----------+------------+
| id | sortorder | active | configfile | imagefile | htmlfile | titlecache |
+----+-----------+--------+------------+-----------+----------+------------+
| 7 | 1 | on | wd.conf | | | wd's test |
+----+-----------+--------+------------+-----------+----------+------------+
1 row in set (0.00 sec)


Is this ok ?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

wd wrote: I mean nothing in cacti log about weathermap.
I can run "php poller.php" and got no error.
I can run cacitd and got no error too..
But there still nothing abou weathermap in cacti log..
In that case, could you please make a change to the setup.php?

Around line 230, add

Code: Select all

function weathermap_poller_bottom () {
        global $config;
	global $weathermap_debugging, $WEATHERMAP_VERSION;
	
# add this line
cacti_log("weathermap_poller_bottom has started",true,"WEATHERMAP");

	include_once($config["library_path"] . "/database.php");
and check the cacti log after another poller cycle? This should tell us more about what is happening here.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
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!)
wd
Posts: 9
Joined: Fri May 12, 2006 8:35 pm

Post by wd »

Still nothing about weathermap in cacti log...
I can see something about thold

Code: Select all

05/14/2006 11:35:29 AM - THOLD: Poller[0] Checking Thresholds
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

wd wrote:Still nothing about weathermap in cacti log...
I can see something about thold

Code: Select all

05/14/2006 11:35:29 AM - THOLD: Poller[0] Checking Thresholds
And if you disable the other plugins? (just for one cycle). The only thing like this I have seen before is with the Reports plugin, where nothing that is in the list after it runs. I wonder if this is something similar.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests