Weathermap Editor 0.9 Problem
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Thu Apr 26, 2007 8:10 am
- Location: Carmarthenshire
Weathermap Editor 0.9 Problem
Cacti is working nicely so I tried to install Weathermap today, but when I click on "Add node" in the editor Im getting:
Fatal error: Maximum execution time of 30 seconds exceeded in /srv/www/cacti/plugins/weathermap/Weathermap.class.php on line 1156
Cacti Log file says:
04/26/2007 02:25:03 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
Apache log file says:
Unrecognised config on line 7: KEYPOS DEFAULT -1 -1 Traffic Load
Any help most appreciated
OS: SLES9 2.6.5-7.283-smp
Cacti: 0.8.6j
Weathermap: 0.9
Other Plugins: thsold and monitor
apache2-2.0.49-27.63
php4-4.3.4-43.75
mysql-4.0.18-32.28
gd-2.0.22-65.9
Fatal error: Maximum execution time of 30 seconds exceeded in /srv/www/cacti/plugins/weathermap/Weathermap.class.php on line 1156
Cacti Log file says:
04/26/2007 02:25:03 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
Apache log file says:
Unrecognised config on line 7: KEYPOS DEFAULT -1 -1 Traffic Load
Any help most appreciated
OS: SLES9 2.6.5-7.283-smp
Cacti: 0.8.6j
Weathermap: 0.9
Other Plugins: thsold and monitor
apache2-2.0.49-27.63
php4-4.3.4-43.75
mysql-4.0.18-32.28
gd-2.0.22-65.9
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Weathermap Editor 0.9 Problem
I don't think the first error is anything to do with Weathermap... that's the php script-server, which is part of the poller.simonpalmer123 wrote:Cacti is working nicely so I tried to install Weathermap today, but when I click on "Add node" in the editor Im getting:
Fatal error: Maximum execution time of 30 seconds exceeded in /srv/www/cacti/plugins/weathermap/Weathermap.class.php on line 1156
Cacti Log file says:
04/26/2007 02:25:03 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
Apache log file says:
Unrecognised config on line 7: KEYPOS DEFAULT -1 -1 Traffic Load
Any help most appreciated
OS: SLES9 2.6.5-7.283-smp
Cacti: 0.8.6j
Weathermap: 0.9
Other Plugins: thsold and monitor
apache2-2.0.49-27.63
php4-4.3.4-43.75
mysql-4.0.18-32.28
gd-2.0.22-65.9
The second one is an oddity that shouldn't affect the editor working.
What happens if you run editor.php from the command line? (php editor.php)
Actually, do you mean when you click on Add Node, or when you click back on the map again (to place the node)?
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!)
-
- Posts: 4
- Joined: Thu Apr 26, 2007 8:10 am
- Location: Carmarthenshire
Thanks for the help. I tried weathermap 0.82 and it's working perfectly. I really like it! Would be nice to see v0.9
php editor.php gives me what's below. It is when I click Add node. Both php and httpd2-prefork processes take up all my cpu, and virtually stop responding, so I was doing a "pkill php" and restarting apache2 to get it going again.
<html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" media="screen" href="editor.css" /> <script src="editor.js" type="text/javascript"></script><title>PHP Weathermap Editor 0.82</title></head><body><div id="nojs"><b>WARNING</b> - Sorry, it's partly laziness on my part, but you really need JavaScript enabled and DOM support in your browser to use this editor. It's a visual tool, so accessibility is already an issue, if it is, and from a security viewpoint, you're already running mycode on your <i>server</i> so either you trust it all having read it, or you're already screwed.<P>If it's a major issue for you, please feel free to complain. It's mainly laziness as I said, and there could be a fallback (not so smooth) mode for non-javascript browsers if it was seen to be worthwhile (I would take a bit of convincing, because I don't see a benefit, personally).</div><div id="withjs"><div id="dlgStart" class="dlgProperties" ><div class="dlgTitlebar">Welcome</div><div class="dlgBody">Welcome to the PHP Weathermap 0.82 editor.<p><div style="border: 3px dashed red; background: #055; padding: 5px; font-size: 97%;"><b>NOTE:</b> This editor is not finished! There are many features of Weathermap that you will be missing out on if you choose to use the editor only.These include: curves, node offsets, font definitions, colour changing, per-node/per-link settings and image uploading. You CAN use the editor without damaging these features if you added them by hand, however.</div><p>Do you want to:<p>Create A New Map:<br><form method="GET">Named: <input type="text" name="mapname" size="20"><input name="action" type="hidden" value="newmap"><input type="submit" value="Create"></form>OR<br />Open An Existing Map (looking in configs):<ul class="filelist"><li><a href="?mapname=simple.conf">simple.conf</a> - <span class="comment">(no title)</span></li>
<li><a href="?mapname=csg.conf">csg.conf</a> - <span class="comment">(no title)</span></li>
</UL></div><div class="dlgHelp" id="start_help">PHP Weathermap 0.82 Copyright © 2005-2006 Howard Jones - howie@thingy.com<br />The current version should always be <a href="http://wotsit.thingy.com/haj/cacti/">available here</a>, along with other related software. PHP Weathermap is licensed under the GNU Public License, version 2. See COPYING for details. This distribution also includes the Overlib library by Erik Bosrup.</div></div></div></body></html>
php editor.php gives me what's below. It is when I click Add node. Both php and httpd2-prefork processes take up all my cpu, and virtually stop responding, so I was doing a "pkill php" and restarting apache2 to get it going again.
<html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" media="screen" href="editor.css" /> <script src="editor.js" type="text/javascript"></script><title>PHP Weathermap Editor 0.82</title></head><body><div id="nojs"><b>WARNING</b> - Sorry, it's partly laziness on my part, but you really need JavaScript enabled and DOM support in your browser to use this editor. It's a visual tool, so accessibility is already an issue, if it is, and from a security viewpoint, you're already running mycode on your <i>server</i> so either you trust it all having read it, or you're already screwed.<P>If it's a major issue for you, please feel free to complain. It's mainly laziness as I said, and there could be a fallback (not so smooth) mode for non-javascript browsers if it was seen to be worthwhile (I would take a bit of convincing, because I don't see a benefit, personally).</div><div id="withjs"><div id="dlgStart" class="dlgProperties" ><div class="dlgTitlebar">Welcome</div><div class="dlgBody">Welcome to the PHP Weathermap 0.82 editor.<p><div style="border: 3px dashed red; background: #055; padding: 5px; font-size: 97%;"><b>NOTE:</b> This editor is not finished! There are many features of Weathermap that you will be missing out on if you choose to use the editor only.These include: curves, node offsets, font definitions, colour changing, per-node/per-link settings and image uploading. You CAN use the editor without damaging these features if you added them by hand, however.</div><p>Do you want to:<p>Create A New Map:<br><form method="GET">Named: <input type="text" name="mapname" size="20"><input name="action" type="hidden" value="newmap"><input type="submit" value="Create"></form>OR<br />Open An Existing Map (looking in configs):<ul class="filelist"><li><a href="?mapname=simple.conf">simple.conf</a> - <span class="comment">(no title)</span></li>
<li><a href="?mapname=csg.conf">csg.conf</a> - <span class="comment">(no title)</span></li>
</UL></div><div class="dlgHelp" id="start_help">PHP Weathermap 0.82 Copyright © 2005-2006 Howard Jones - howie@thingy.com<br />The current version should always be <a href="http://wotsit.thingy.com/haj/cacti/">available here</a>, along with other related software. PHP Weathermap is licensed under the GNU Public License, version 2. See COPYING for details. This distribution also includes the Overlib library by Erik Bosrup.</div></div></div></body></html>
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Hmm. when you click on Add Node, it doesn't even go to the server... only when you actually choose a position for it. I can't think what would cause this...simonpalmer123 wrote:Thanks for the help. I tried weathermap 0.82 and it's working perfectly. I really like it! Would be nice to see v0.9
php editor.php gives me what's below. It is when I click Add node. Both php and httpd2-prefork processes take up all my cpu, and virtually stop responding, so I was doing a "pkill php" and restarting apache2 to get it going again.
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!)
-
- Posts: 4
- Joined: Thu Apr 26, 2007 8:10 am
- Location: Carmarthenshire
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
I'd say disable Weathermap then, for now. I don't think weathermap is the problem here, but a crazy cacti might cause the editor to do strange things. Just. Maybe. It's a new one on me though.simonpalmer123 wrote:My apologies, it is when I click to position it on the map that it hangs. It also hangs when I click to add a link... I have other problems now, since trying to fix this, The poller.php doesn't seem to work any more. I changed too many things at once. :/ Grr
Once you're happy your poller is OK, then have another look
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!)
This is the same as I get. Previous posts in "upgrade from 0.82 to 0.90 - loses maps" - started by me and "Segmentation fault when adding nodes" - started by Chercen. Chercen overcame the problem by upgrading from PHP4 to PHP5, but I am not sure about doing this because I have had problems with PHP5 in the past.
Extract from
http://www.network-weathermap.com/manua ... s/faq.html :
Weathermap just dies without warning on my Debian/Ubuntu system
It's a GD bug. It's documented here, and the reason it mainly affects Debian is that Debian links to the system GD (version 2.0.33) not the built-in PHP one (2.0.28ish). For whatever reason, the problems aren't present in the PHP GD library, which has a different alpha-blending implementation as far as I can see from the docs.
The bugs are apparently fixed in GD 2.0.34, which has been released and is in Debian unstable. Users report that upgrading to libgd2-xpm from unstable will fix this problem if you can't wait, or recompile PHP.
I have libgd2-xpm installed already
http://www.network-weathermap.com/manua ... s/faq.html :
Weathermap just dies without warning on my Debian/Ubuntu system
It's a GD bug. It's documented here, and the reason it mainly affects Debian is that Debian links to the system GD (version 2.0.33) not the built-in PHP one (2.0.28ish). For whatever reason, the problems aren't present in the PHP GD library, which has a different alpha-blending implementation as far as I can see from the docs.
The bugs are apparently fixed in GD 2.0.34, which has been released and is in Debian unstable. Users report that upgrading to libgd2-xpm from unstable will fix this problem if you can't wait, or recompile PHP.
I have libgd2-xpm installed already
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
From unstable? It's only the last few versions that have this fix...iharvey wrote:I have libgd2-xpm installed already
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:
I haven't a clue. I don't use Debian. As I understand it, there's an option in apt-get to make it look at the unstable repository.iharvey wrote:Can you let me know how I can do this?
I believe my libgd2-xpm is a directory in /usr/share/doc/
I downloaded the gd-2.0.34 and tried a ./configure, make, make install, but that did not work so I did a ./configure --prefix=/usr/share/doc/ but that did not work either.
Building GD from source with Freetype and PNG support is quite a pain... it'd be a lot easier to install the unstable package if you can.
Before any of that, it'd be worth verifying that this is your problem by commenting out the line I mentioned in the other thread:
If that doesn't solve the problem, then the GD bug isn't the issue. If it does solve it, then you might find that the results without alpha belnding are acceptable for your maps. For maps with no icons and only labels there may not be any visible difference.howie wrote:Try commenting out line 4299 of Weathermap.class.php (that's the ImageAlphaBlending() line) by putting a # at the beginning. I think you will get a successful map, but maybe with some strange rendering around nodes. Maybe it's acceptable to you.
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:
Ah - sorry - not uncomment... comment out the one above the commented one! Both should be commented.iharvey wrote:I have uncommented the line, but the problem remains.
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!)
-
- Posts: 4
- Joined: Thu Apr 26, 2007 8:10 am
- Location: Carmarthenshire
I tried cacti fresh, new dir and new db, and the poller.php ran fine. Added a big switch, (80ish interfaces), and the poller stopped working again and timed out. Using the cactid now instead of cmd.php, and it works great with all my devices. Put my original db back in, and original dir. Weathermap next then!
Who is online
Users browsing this forum: No registered users and 4 guests