centreon / centreon-nagvis Goto Github PK
View Code? Open in Web Editor NEWA module to integrate Nagvis into Centreon in order to have simple graphical views
A module to integrate Nagvis into Centreon in order to have simple graphical views
Hi, I have this problem. Centreon Web: 2.6.6, Nagvis: 1.8.5
I can't see Nagvis from centreon... in my httpd logs I have this
[Thu May 31 17:05:40 2018] [error] [client XXX.XX.XX.XXX PHP Parse error: syntax error, unexpected '/' in /usr/local/centreon/www/modules/centreon-nagvis/index.php on line 22, referer: https://XXX.XX.XX.XX/centreon/main.php?p=403
But in index.php all seems to be OK.. It was working a few days ago...
Hello,
would be great to be able to add nagvis map directly on centreon home page (through widget I guess).
Regards,
Mathieu Chateau
With Nagvis 1.9b2, I have:
mod_fcgid: stderr: PHP Fatal error: Cannot redeclare debug() (previously declared in /usr/share/centreon/www/modules/centreon-nagvis/index.php:158) in /usr/local/share/nagvis/share/server/core/functions/debug.php on line 43,
mod_fcgid: stderr: PHP Fatal error: Cannot redeclare get_error() (previously declared in /usr/share/centreon/www/include/common/common-Func.php:1751) in /usr/local/share/nagvis/share/server/core/functions/html.php on line 67,
mod_fcgid: stderr: PHP Fatal error: Cannot redeclare microtime_float() (previously declared in /usr/share/centreon/www/header.php:40) in /usr/local/share/nagvis/share/server/core/functions/debug.php on line 70,
and maybe more...
Bonjour,
J'ai une erreur sur la vue centreon-nagvis :
Pierre Gilbaud Write :
Error: (0) preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead (/usr/local/centreon/GPL_LIB/Smarty/libs/Smarty_Compiler.class.php:270)
#0 [internal function]: nagvisExceptionErrorHandler(8192, 'preg_replace():...', '/usr/local/cent...', 270, Array)
#1 /usr/local/centreon/GPL_LIB/Smarty/libs/Smarty_Compiler.class.php(270): preg_replace('~{_(._?)*}|...', ''{php' . str_re...', '{literal}\n #2 /usr/local/centreon/GPL_LIB/Smarty/libs/Smarty.class.php(1491): Smarty_Compiler->_compile_file('nagvis.ihtml', '{literal}\n #3 /usr/local/centreon/GPL_LIB/Smarty/libs/Smarty.class.php(1424): Smarty->_compile_source('nagvis.ihtml', '{literal}\n #4 /usr/local/centreon/GPL_LIB/Smarty/libs/Smarty.class.php(1256): Smarty->_compile_resource('nagvis.ihtml', '../GPL_LIB/Smar...')
#5 /usr/local/centreon/GPL_LIB/Smarty/libs/Smarty.class.php(1108): Smarty->fetch('nagvis.ihtml', NULL, NULL, true)
#6 /usr/local/centreon/www/modules/centreon-nagvis/index.php(156): Smarty->display('nagvis.ihtml')
#7 /usr/local/centreon/www/main.php(230): include_once('/usr/local/cent...')
#8 {main}
Je précise que je suis une installation avec centreon en 2.6.0 sur une debian 8.
Nagvis est en version 1.7.10.
Merci beaucoup pour votre aide
I just finish to install nagvis on the last centreon iso and I have a problem with hostgroup. Nagvis print the following error for hostgroup :
*Problem (Backend: centreonbroker): errorGettingHostgroupStateCountsOpts: {"BACKENDID":"centreonbroker","ERROR":"SQLSTATE[42S22]: Column not found: 1054 Unknow column 'hg.alias' in filed list'"}
Can you help me please?
Zmylna write :
Can't run nagvis because error:
"The attribute backendtype in section backend_centreonbroker_1 in main configuration file does not match the correct format. Please review your configuration."
I did everything like decribed here: https://blog.centreon.com/nagviscentreon-broker-for-better-or-for-worse/
But no luck :(
PS.
Sorry for my english.
After modifying topology table, I'm able to show Nagvis menu but map iframe is not shown.
Julien Coerch Write :
Bonjour,
J'ai installé le connecteur Nagvis/Centreon broker comme précisé dans la procédure.
Tout fonctionne correctement sauf quand je passe mais hôtes en "Only hard state" (pour n'afficher que l'état consolidé).
Lorsque j'active cette option j'obtiens le message suivant :
Error: (0) Undefined index: last_hard_state (/usr/local/nagvis/share/server/core/classes/GlobalBackendcentreonbroker.php:266)#0 /usr/local/nagvis/share/server/core/classes/GlobalBackendcentreonbroker.php(266): nagvisExceptionErrorHandler(8, 'Undefined index...', '/usr/local/nagv...', 266, Array)
#1 /usr/local/nagvis/share/server/core/classes/CoreBackendMgmt.php(327): GlobalBackendcentreonbroker->getHostState(Array, 3, Array)
#2 /usr/local/nagvis/share/server/core/classes/CoreBackendMgmt.php(169): CoreBackendMgmt->fetchStateCounts('centreonbroker_...', 'hostState', 3, Array)
#3 /usr/local/nagvis/share/server/core/classes/GlobalIndexPage.php(161): CoreBackendMgmt->execute()
#4 /usr/local/nagvis/share/server/core/classes/CoreModOverview.php(52): GlobalIndexPage->parseMapsJson('map')
#5 /usr/local/nagvis/share/server/core/functions/index.php(120): CoreModOverview->handleAction()
#6 /usr/local/nagvis/share/server/core/ajax_handler.php(63): require('/usr/local/nagv...')
#7 {main}
Merci pour votre aide
Has anyone managed to integrate it into center 18.10?
I tried to install nagvis 1.8.x on Centeron 2.4.8, after some debuging, sql of install is not running like it should.
Query contains a column topology_icon which doesn't exist anymore
I just installed NagVis (1.9.11) and I'm trying to make it work with my also fresh installation of Centreon (19.04).
I run into this very error message
The attribute dbpass in section backend_centreonbroker in main configuration file does not match the correct format. Please review your configuration.
It appears everytime I go into <server_ip>/nagvis without having any other prompts
I narrowed the problem to the characters used in the [backend_centreonbroker] section, in the dbpass= attribute, in the nagvis.ini.php configuration file.
It seems like having a * in my database password makes everything go south, and indeed removing the * makes NagVis working again, but of course the authentication to the centreon_storage database doesn't work.
I've tried escaping with , with the hexadecimal code, the unicode code, single or double quote, and none of them seems to be working.
Changing the database password is not really an option here, any ideas how I could have a * in my database password ?
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.