network map
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
I'm confused. It's all on the same web page at thingy.com... with instructions, and a tar.gz to download.TFC wrote:what is hj3 version?
I just start to install weathermap and first I install your script only.
I didnt install weathermap .
Because I dont know how can I install weathermap. I cant find libgd and how can i isntall overlib.
if you know, can u tell me step by step?
My advice would be to install the PHP version on my page (see my sig), as it's easier to install if you don't know what you are doing, but wait for the next version of php-weathermap as it has a couple of important bugfixes. This is ready, and will be available in the next day or so.
You will need the gd extension for PHP to use that version. You can find out if you have this by typing
Code: Select all
php -m
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!)
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!)
I use fedora core 3
and i installed my php like this:
./configure --prefix=/www/php --with-apxs2=/www/bin/apxs --with-config-filepath=/
www/php --enable-sockets --with-mysql=/usr/local/mysql --with-zlibdir=/
usr/include –with-gd but i cant find when I run php -m command
how can add it?
and i installed my php like this:
./configure --prefix=/www/php --with-apxs2=/www/bin/apxs --with-config-filepath=/
www/php --enable-sockets --with-mysql=/usr/local/mysql --with-zlibdir=/
usr/include –with-gd but i cant find when I run php -m command
as you see there is not gd module..[PHP Modules]
bcmath
bz2
calendar
ctype
curl
dba
dbx
dio
exif
ftp
gettext
gmp
iconv
mime_magic
openssl
overload
pcre
posix
pspell
session
shmop
sockets
standard
sysvsem
sysvshm
tokenizer
wddx
xml
yp
zlib
[Zend Modules]
how can add it?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
You still didn't say what operating system this is... the short answer is "I don't know, and I can't do support for your operating system problems".TFC wrote:how can add it?
I just googled for "how to install php gd module" and found plenty of results, but it depends on your OS! If it uses RPMs or something like that, then it might be very easy, but you didn't say.[/url]
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
So I searched google for "installing php gd on fedora", and I got this pageTFC wrote:Fedora Core 3 ... Redhat Linux
It looks like you need to install the php-gd RPM, if you used Redhat's php RPM.
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!)
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!)
Ok.
I download your php version. and move as /www/htdocs/weathermap.
Then I run
and i give that result:
SO, clearly problem is about gd.
Now problem is how can configure my php with gd module???
My php version is php-4.3.10.
AFTER THAT ...
I reconfigure my php and make, make install
Then i copy php.ini.dist as php.ini
After that I delete comma in php.ini:
I give this:
I download your php version. and move as /www/htdocs/weathermap.
Then I run
Code: Select all
php weathermap.php
But, my gd.so is located in[root@cacti-test weathermap]# php weathermap.php
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/gd.so' - /usr/lib/php4/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: dl(): Unable to load dynamic library '/usr/lib/php4/gd.so' - /usr/lib/php4/gd.so: cannot open shared object file: No such file or directory in /www/htdocs/weathermap/weathermap.php on line 10
PHP Warning: dl(): Unable to load dynamic library '/usr/lib/php4/gd.dll' - /usr/lib/php4/gd.dll: cannot open shared object file: No such file or directory in /www/htdocs/weathermap/weathermap.php on line 10
Content-type: text/html
X-Powered-By: PHP/4.3.11
Unfortunately i have not gd.dll/usr/lib/php/extensions/gd.so
SO, clearly problem is about gd.
Now problem is how can configure my php with gd module???
My php version is php-4.3.10.
AFTER THAT ...
I reconfigure my php and make, make install
Then i copy php.ini.dist as php.ini
After that I delete comma in php.ini:
then i run php weathermap.phpextension=php_gd2.dll
I give this:
is there any suggestion??[root@cacti-test weathermap]# /www/php/bin/php weathermap.php
Warning: fopen(weathermap.conf): failed to open stream: No such file or directory in /www/htdocs/weathermap/Weathermap.class.php on line 685
Couldn't open config file weathermap.conf for reading
I configure gd with
then--prefix=/usr/local/gd
..
[root@cacti-test gd]# ls -la
total 24
drwxr-xr-x 5 root root 4096 Jun 16 15:57 .
drwxr-xr-x 18 root root 4096 Jun 16 15:57 ..
drwxr-xr-x 2 root root 4096 Jun 16 15:57 bin
drwxr-xr-x 2 root root 4096 Jun 16 15:57 include
drwxr-xr-x 2 root root 4096 Jun 16 15:57 lib
I reconfigure my phpwith
after that--with-gd=/usr/local/gd
After that:[root@cacti-test gd]# find / -name gd.so
/usr/lib/php/extensions/gd.so
i copied gd.so to /usr/lib/php4.
Then I run ./weathermap , here is the result:
then I check the my php[root@cacti-test weathermap]# ./weathermap.php
PHP Warning: Unknown(): (null): Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=0
PHP compiled with module API=20020429, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: dl(): (null): Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=0
PHP compiled with module API=20020429, debug=0, thread-safety=0
These options need to match
in /www/htdocs/weathermap/weathermap.php on line 10
PHP Warning: dl(): Unable to load dynamic library '/usr/lib/php4/gd.dll' - /usr/lib/php4/gd.dll: cannot open shared object file: No such file or directory in /www/htdocs/weathermap/weathermap.php on line 10
Content-type: text/html
X-Powered-By: PHP/4.3.11
No image (gd) extension was found, or could be loaded. This is required by weathermap.
still I cant load gd module for php[root@cacti-test weathermap]# php -m
PHP Warning: Unknown(): (null): Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=0
PHP compiled with module API=20020429, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
dba
dbx
dio
exif
ftp
gettext
gmp
iconv
mime_magic
openssl
overload
pcre
posix
pspell
session
shmop
sockets
standard
sysvsem
sysvshm
tokenizer
wddx
xml
yp
zlib
[Zend Modules]
I dont understand where the problem is
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
pHP Weathermap v0.5 pre-release out
Pre-release v0.5 is out now:
http://wotsit.thingy.com/haj/cacti/php-weathermap/
Mainly it's bugfixes including:
Getting the right most-recent value
Windows/RRD bugfixes
other smaller ones
Other new features are the ability to use non-Cacti RRD files, and also to specify decimal bandwidths, both in SCALE and BANDWIDTH.
Tested on RH9 and OS X as usual. Let me know if something's wrong.
Next stop: editor
http://wotsit.thingy.com/haj/cacti/php-weathermap/
Mainly it's bugfixes including:
Getting the right most-recent value
Windows/RRD bugfixes
other smaller ones
Other new features are the ability to use non-Cacti RRD files, and also to specify decimal bandwidths, both in SCALE and BANDWIDTH.
Tested on RH9 and OS X as usual. Let me know if something's wrong.
Next stop: editor
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!)
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!)
OK i solve problem about php gd module. and download howie's php weathermap version 5
But another problem is here..
I rename example.conf as weathermap.conf
then I modify something in it.
I run command. And get this:
I think data folder is my rra folder. how can modify this?
And how can I solve background problem?
But another problem is here..
I rename example.conf as weathermap.conf
then I modify something in it.
I run command. And get this:
As you see there is a "data" directory. where is it?[root@cacti-test weathermap5]# ./weathermap.php
ERROR: opening 'davutpasa_1a_7206_traffic_in_23.rrd': No such file or directory
ReadData: Link davutpasa_1a_7206-maltepe_2d_7507 had no valid data
ERROR: opening 'data/sync_traffic_in_257.rrd': No such file or directory
ReadData: Link sync-site1 had no valid data
Warning: imagecreatefrompng(background.png): failed to open stream: No such file or directory in /www/htdocs/weathermap5/Weathermap.class.php on line 1068
Failed to open background image
I think data folder is my rra folder. how can modify this?
And how can I solve background problem?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
The 'data' one is easy - you still have an example TARGET line from the example.conf. It is looking for a file that only exists on my Cacti system. Change the TARGET to be the rrd file that you want to use from your systemTFC wrote: ERROR: opening 'data/sync_traffic_in_257.rrd': No such file or directory
ReadData: Link sync-site1 had no valid data
As you see there is a "data" directory. where is it?
I think data folder is my rra folder. how can modify this?
And how can I solve background problem?
As for the background, is the background.png file in the same directory as you are running weathermap.php from?
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!)
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!)
I think I solve some problem like this:Howie wrote:The 'data' one is easy - you still have an example TARGET line from the example.conf. It is looking for a file that only exists on my Cacti system. Change the TARGET to be the rrd file that you want to use from your systemTFC wrote: ERROR: opening 'data/sync_traffic_in_257.rrd': No such file or directory
ReadData: Link sync-site1 had no valid data
As you see there is a "data" directory. where is it?
I think data folder is my rra folder. how can modify this?
And how can I solve background problem?
As for the background, is the background.png file in the same directory as you are running weathermap.php from?
Target is point my rra directory...OK
I copy background from your example to weathermap directory..OK
Last problem !!!
I run:
then i go to using my browser:[root@cacti-test htdocs]# cd weathermap5/
[root@cacti-test weathermap5]# ./weathermap.php
http://X.X.X.X/weathermap5/weathermap.php
then I get a message:
#!/www/php/bin/php
Warning: imagepng() [function.imagepng]: Unable to open 'weathermap.png' for writing in /www/htdocs/weathermap5/Weathermap.class.php on line 1119
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
That's because you shouldn't do that. The weathermap.php is not a normal php web page. If you want to have an HTML page to hold the PNG file, use the --htmloutput commandline option to produce an HTML file as well as the PNG.TFC wrote:Howie wrote: I run:then i go to using my browser:[root@cacti-test htdocs]# cd weathermap5/
[root@cacti-test weathermap5]# ./weathermap.php
http://X.X.X.X/weathermap5/weathermap.php
then I get a message:#!/www/php/bin/php
Warning: imagepng() [function.imagepng]: Unable to open 'weathermap.png' for writing in /www/htdocs/weathermap5/Weathermap.class.php on line 1119
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!)
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!)
so I have to advice this link to my customer?
http://X.X.X.X:/weathermap5/weathermap.png
is it correct?
and why dont see any arrow ?
http://X.X.X.X:/weathermap5/weathermap.png
is it correct?
and why dont see any arrow ?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
It depends.TFC wrote:so I have to advice this link to my customer?
http://X.X.X.X:/weathermap5/weathermap.png
is it correct?
Yes, if you only want to have the image.
If you want to use the overlib HTML features (when you hold the mousepointer over a link, you see the cacti graph), then you'd need to add in some extra configuration (INFOURL and OVERLIBGRAPH for each link), and use the --htmloutput command-line option to produce an HTML file as well as a PNG. It's more effort, but the result is quite nice.
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!)
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!)
Who is online
Users browsing this forum: No registered users and 0 guests