|
|
| Author |
Message |
xian_yangyq
Joined: 09 Apr 2006 Posts: 16
|
Posted: Tue Apr 25, 2006 2:33 am Post subject: cacti plugins weathermap This map hasn't been created yet. |
|
|
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! |
|
| Back to top |
|
 |
davs
Joined: 31 Mar 2006 Posts: 28 Location: paris
|
Posted: Tue Apr 25, 2006 3:17 am Post subject: |
|
|
| Quote: | 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? |
|
| Back to top |
|
 |
xian_yangyq
Joined: 09 Apr 2006 Posts: 16
|
Posted: Tue Apr 25, 2006 3:30 am Post subject: |
|
|
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! |
|
| Back to top |
|
 |
davs
Joined: 31 Mar 2006 Posts: 28 Location: paris
|
Posted: Tue Apr 25, 2006 3:55 am Post subject: |
|
|
You may not have your gd module activated.
try:
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... |
|
| Back to top |
|
 |
xian_yangyq
Joined: 09 Apr 2006 Posts: 16
|
Posted: Tue Apr 25, 2006 4:01 am Post subject: |
|
|
| davs wrote: | You may not have your gd module activated.
try:
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] |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1969 Location: United Kingdom
|
Posted: Tue Apr 25, 2006 2:06 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
wd
Joined: 12 May 2006 Posts: 9
|
Posted: Sat May 13, 2006 7:51 am Post subject: |
|
|
| I got the same problem... |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1969 Location: United Kingdom
|
Posted: Sat May 13, 2006 8:12 am Post subject: |
|
|
| wd wrote: | | I got the same problem... |
which part? does the command-line tool work? do you get an error in your cacti log? |
|
| Back to top |
|
 |
wd
Joined: 12 May 2006 Posts: 9
|
Posted: Sat May 13, 2006 8:20 am Post subject: |
|
|
| 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... |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1969 Location: United Kingdom
|
Posted: Sat May 13, 2006 8:36 am Post subject: |
|
|
| 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. from within your cacti root directory, just in case there are errors that don't end up in the cacti log. |
|
| Back to top |
|
 |
wd
Joined: 12 May 2006 Posts: 9
|
Posted: Sat May 13, 2006 8:46 am Post subject: |
|
|
| Howie wrote: | | 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. 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.. |
|
| Back to top |
|
 |
wd
Joined: 12 May 2006 Posts: 9
|
Posted: Sat May 13, 2006 8:53 am Post subject: |
|
|
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 ? |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1969 Location: United Kingdom
|
Posted: Sat May 13, 2006 10:40 am Post subject: |
|
|
| 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: |
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. |
|
| Back to top |
|
 |
wd
Joined: 12 May 2006 Posts: 9
|
Posted: Sat May 13, 2006 10:39 pm Post subject: |
|
|
Still nothing about weathermap in cacti log...
I can see something about thold
| Code: |
05/14/2006 11:35:29 AM - THOLD: Poller[0] Checking Thresholds
|
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1969 Location: United Kingdom
|
Posted: Sun May 14, 2006 3:44 am Post subject: |
|
|
| wd wrote: | Still nothing about weathermap in cacti log...
I can see something about thold
| Code: |
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. |
|
| Back to top |
|
 |
|