Code Monkey home page Code Monkey logo

centreon-weathermap's People

Contributors

kozfelipe avatar rico29 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

rico29

centreon-weathermap's Issues

PHP warnings

Hello
I installed your adapted weathermap in centreon, using php8.1

problem is that the created service "weathermap poller" calls the following command using centreon-engine user :

php /usr/share/centreon/www/modules/centreon-weathermap/php/../poller.php

which results in errors :

# sudo -u centreon-engine php  /usr/share/centreon/www/modules/centreon-weathermap/php/../poller.php
PHP Warning:  require(/etc/centreon/centreon.conf.php): Failed to open stream: Permission denied in /usr/share/centreon/config/centreon.config.php on line 40

Warning: require(/etc/centreon/centreon.conf.php): Failed to open stream: Permission denied in /usr/share/centreon/config/centreon.config.php on line 40
PHP Fatal error:  Uncaught Error: Failed opening required '/etc/centreon/centreon.conf.php' (include_path='.:/usr/share/php') in /usr/share/centreon/config/centreon.config.php:40
Stack trace:
#0 /usr/share/centreon/www/class/centreonDB.class.php(40): require_once()
#1 /usr/share/centreon/www/modules/centreon-weathermap/poller.php(10): require('...')
#2 {main}
  thrown in /usr/share/centreon/config/centreon.config.php on line 40

Fatal error: Uncaught Error: Failed opening required '/etc/centreon/centreon.conf.php' (include_path='.:/usr/share/php') in /usr/share/centreon/config/centreon.config.php:40
Stack trace:
#0 /usr/share/centreon/www/class/centreonDB.class.php(40): require_once()
#1 /usr/share/centreon/www/modules/centreon-weathermap/poller.php(10): require('...')
#2 {main}
  thrown in /usr/share/centreon/config/centreon.config.php on line 40

/usr/share/centreon/config/centreon.config.php tried to include :
require CENTREON_ETC . '/centreon.conf.php';

so I've set-up a crontab qhich generates the output images

# tail /etc/cron.d/centreon -n2

# Cron for weathermaps generation
*/2 * * * * root php  /usr/share/centreon/www/modules/centreon-weathermap/php/../poller.php

but I still have warnings like :

Deprecated: Function strftime() is deprecated in /usr/share/centreon/www/modules/centreon-weathermap/src/lib/Weathermap.class.php on line 3207
PHP Deprecated:  Implicit conversion from float 84.5 to int loses precision in /usr/share/centreon/www/modules/centreon-weathermap/src/lib/WeatherMapNode.class.php on line 640

Deprecated: Implicit conversion from float 84.5 to int loses precision in /usr/share/centreon/www/modules/centreon-weathermap/src/lib/WeatherMapNode.class.php on line 640
PHP Deprecated:  Implicit conversion from float 101.5 to int loses precision in /usr/share/centreon/www/modules/centreon-weathermap/src/lib/WeatherMapNode.class.php on line 640

Question : pending on the weathermap host

Hello,
First of all, thanks for your plugin, it works so well!
But, I have a question. Is this normal that the weathermap host is always on pending status?

image

Thanks for your answer!

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.