Comments (7)
I don't think those warnings would cause a blank map. Are you sure you aren't just loading the web page while the image is being written? (e.g. does pressing reload in the browser fix it?)
from network-weathermap.
Hi @howardjones ,
Yes It happened randomly. Sometime reload browser several time and even clear all cache but full view still not working at all.
After sometime like a after few minute later I try refresh it several times again than I can see full view again.
Before there're some errors related to php max_excecute time but after I increase it to 300s the error gone. I try to debug all, apache error log, cacti error log but there's no trace at all.
The only error I can fine is the above Strict Standards: Non-static method PEAR::isError().
Or because of width too big ?
BACKGROUND images/blueboard2880x1620.jpg
WIDTH 2880
HEIGHT 1620
HTMLSTYLE overlib
KEYFONT 100
TITLE Smart Backbone Monitor V8
TIMEPOS 56 1603 Created: %b %d %Y %H:%M:%S
from network-weathermap.
It's not the PEAR thing. That's just a warning to do with the command line tool.
So how are you normally generating your map? cron? Cacti poller?
It would be good to look at the output png file when you get a blank, and see if the file is zero length or only just written. (so is it a bad file, or half-written, or something like that)
That is a big map, but it shouldn't cause a problem as long as memory_limit is high enough. The PHP png-writing code is not very fast, but only a few seconds for a large image, not 5 minutes! :-)
from network-weathermap.
We use Cacti poller to generate image.
When it was blank I check output file zero length to html file.
from network-weathermap.
Oh, that's interesting. So it is producing the image file. This is a new one! :-) (things you don't want to hear a doctor say)
Do you get any error in the cacti poller log?
from network-weathermap.
Cannot find any error beside this
PHP Fatal error: Maximum execution time of 59 seconds exceeded in /var/www/cacti/plugins/weathermap/lib/HTML_ImageMap.class.php on line 321
from network-weathermap.
OK, well that will do it. PHP just stopped halfway through writing out the HTML file.
So I guess you are using one-minute polling in Cacti. Cacti sets the max-runtime to match the poller time, so it can't accidentally run multiple pollers. Weathermap has to finish inside that one minute too.
This is mainly a Cacti performance issue - if you must have 1 minute polling, you might need to tune your system better. SSDs, Boost, newer Cacti, newer PHP, Weathermap rrd_use_poller_output should all help. (php 7 can be up to 2x faster than php 5 - but check which Cacti versions work with it. Also for Cacti 1.x you probably want phalek's fork of Weathermap.) There is a good FAQ for Cacti performance tuning on the Cacti Forums.
The quickest to try though is add SET rrd_use_poller_output 1
to the top of your weathermap map file, and wait a few minutes. Weathermap should start to collect data directly from the poller, which should be quicker. Check the STATS lines in the logs before and after to see if it is helping with run time.
from network-weathermap.
Related Issues (20)
- cant install on cacti 1.2.4 HOT 4
- Weathermap CACTI 1.2.7 HOT 5
- Any workaround for changing SNMP Indexes ? HOT 4
- Weathermap cannot run outside dir HOT 5
- Overlib Issue HOT 4
- Unable to view Realtime Graph in Weathermap HOT 10
- Incorrect calculation of points in angled "via" option HOT 6
- Editor does not work HOT 5
- Give Cacti User Read-only access of single weather Map HOT 3
- Incorrect calculation of COMMENTPOS
- Create copy - Incorrect permissions HOT 1
- I can't Unzip HOT 1
- Is this project abandoned? HOT 8
- Weathermap.class.php warnings HOT 11
- PHP8 Deprecations HOT 2
- Weathermap issue with SQLSTATE[HY000]: General error: 1364 Field 'last_time' doesn't have a default value'
- New weathermap plugin installation error HOT 2
- ZABBIX V6
- How can I change the color of the NODE in the ‘weathermap’ plugin? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from network-weathermap.