kozfelipe / centreon-weathermap Goto Github PK
View Code? Open in Web Editor NEWnetwork weathermap module for centreon
network weathermap module for centreon
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.