Giter Site home page Giter Site logo

Comments (7)

howardjones avatar howardjones commented on August 17, 2024

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.

darasom1 avatar darasom1 commented on August 17, 2024

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.

howardjones avatar howardjones commented on August 17, 2024

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.

darasom1 avatar darasom1 commented on August 17, 2024

We use Cacti poller to generate image.
When it was blank I check output file zero length to html file.
image

from network-weathermap.

howardjones avatar howardjones commented on August 17, 2024

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.

darasom1 avatar darasom1 commented on August 17, 2024

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.

howardjones avatar howardjones commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.