centreon / centreon-poller-display Goto Github PK
View Code? Open in Web Editor NEWA UI for your poller based on centreon web
A UI for your poller based on centreon web
Bonjour,
J'ai rencontré un problème lié à la partie configuration de centreon-engine (Ligne 68).
J'ai une insertion à chaque passage du script. Je pense qu'il manque une condition.
while ($row = $DBRESULT->fetchRow()) { $request = "INSERT INTO nagios_server (id, name, localhost, ns_activate, ns_status, ns_ip_address) VALUES ('".$row['instance_id']."', '".$row["name"]."', '1', 1, 1, '127.0.0.1')"; $DB->query($request); $request = "INSERT INTO cfg_nagios (nagios_name, nagios_server_id, interval_length, nagios_activate, command_file) VALUES ('Main file for ".$row["name"]."', '".$row["instance_id"]."', 60, '1', '/var/lib/centreon-engine/rw/centengine.cmd')"; $DB->query($request); }
Voici ma modification:
while ($row = $DBRESULT->fetchRow()) { $request = "INSERT INTO nagios_server (id, name, localhost, ns_activate, ns_status, ns_ip_address) VALUES ('".$row['instance_id']."', '".$row["name"]."', '1', 1, 1, '127.0.0.1')"; $DB->query($request); $request = "SELECT * FROM cfg_nagios WHERE nagios_server_id='".$row["instance_id"]."' LIMIT 1"; $DBRESULT2 = $DB->query($request); if ($DBRESULT2->numRows()>0){ $request = "UPDATE cfg_nagios SET interval_length='60', nagios_activate='1', command_file='/var/lib/centreon-engine/rw/centengine.cmd' WHERE nagios_server_id='".$row["instance_id"]."'"; }else{ $request = "INSERT INTO cfg_nagios (nagios_name, nagios_server_id, interval_length, nagios_activate, command_file) VALUES ('Main file for ".$row["name"]."', '".$row["instance_id"]."', 60, '1', '/var/lib/centreon-engine/rw/centengine.cmd')"; } $DB->query($request); }
Hello,
When we upgrade the centreon-poller-display to the version 2.7.7 (from CES 3.3 fresh isntall for example) the pages monitoring/configuration are blank, there is no host or services displayed. But all the information arrive normally to the web interface of the central server.
Bonjour,
Lors de l'ajout d'un équipement sur notre central, des erreurs de base de données (Côté poller-Display) apparait sur les deux tables suivantes "acknowledgements" et "comments".
[1470050027] error: SQL: could not execute prepared statement: Cannot add or update a child row: a foreign key constraint fails (centreon_storage
.acknowledgements
, CONSTRAINT acknowledgements_ibfk_1
FOREIGN KEY (host_id
) REFERENCES hosts
(host_id
) ON DELETE CASCADE) QMYSQL3: Unable to execute statement
[1470050075] error: SQL: could not execute prepared statement: Cannot add or update a child row: a foreign key constraint fails (centreon_storage
.comments
, CONSTRAINT comments_ibfk_1
FOREIGN KEY (host_id
) REFERENCES hosts
(host_id
) ON DELETE CASCADE) QMYSQL3: Unable to execute statement
A la suite d'un nouvel import de ces tables entre notre central et notre poller, le display-poller refonctionne correctement.
Centreon Web version: 2.8.24
Centreon BAM : 3.6.2
Centreon Poller Display : 1.6.0
Steps to reproduce the issue:
Describe the results you received:
ALL the BA are sent to the poller display
Describe the results you expected:
NO BA should be sent
Additional information you think important (e.g. issue happens only occasionally):
It has been fixed here with that PR : 7704594
Centreon Web version: 2.8.24
Centreon Poller Display version: 1.6.0
OS: Centos 7
Steps to reproduce the issue:
Describe the results you received:
When I try to log in the poller display with the user, ACL menu are empty
Describe the results you expected:
The user has access to the menu linked to its ACL
Other test
You can make the same test with an admin user, he should have access to all menus
Hello,
When we install centreon-poller-display (1.5.2-2) on an existing poller, after installing the 2 packages centreon-base-config-centreon-engine centreon-poller-display, there is an error message when we install the web interface:
We need to install manually the packet "MariaDB-server" to solve the problem.
Centreon version : 2.8.8
Centreon Poller Display : 1.6.0
Centreon BAM : 3.5.3 on Centreon central
Steps to reproduce the issue:
ERROR 1146 (42S02) at line 19: Table 'centreon.mod_bam_impacts' doesn't exist
Describe the results you expected:
Centreon BAM configuration SQL should not be sent to poller display that are not used as additionnal BAM poller
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.