centreon / centreon-awie Goto Github PK
View Code? Open in Web Editor NEWCentreon Web module to import/export configuration
Centreon Web module to import/export configuration
When file format to import is not correct : "Please upload a .zip archive" instead of "Please update...".
When import process has finished properly : "Import successful" instead of "Import successfully".
When exporting/importing host and linked objects (templates and/or services), some macros are not exported so, when user want to export Poller conf, the process failed.
ex : Reading main configuration file '/usr/share/centreon/filesGeneration/engine/2/centengine.DEBUG'.
Reading resource file '/usr/share/centreon//filesGeneration/engine/2/resource.cfg'
Error while processing a config file: Configuration parsing failed in file '/usr/share/centreon//filesGeneration/engine/2/services.cfg' on line 34: Service 'proc-sshd' has no check command (property 'check_command')
One or more problems occurred while processing the config files.
In this case, service proc-sshd on origin Centreon has no check command either but some of custom macros for this service are not imported in the target Centreon.
When importing a file containing Discovery commands that have been exported, the process never stops but user is not blocked.
The command is imported but not all informations (only command name, command type, and command line).
When one or several pollers are exported and then re-imported, they cannot be started because configuration files for centengine and centreon-broker are not exported.
while am importing the MIBs file into the system am getting the below error,
Moving traps in DataBase...
Can't locate centreon/script/centFillTrapDB.pm in @inc (@inc contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/share/centreon/bin/centFillTrapDB line 35.
BEGIN failed--compilation aborted at /usr/share/centreon/bin/centFillTrapDB line 35.
when am running the command "centFillTrapDB" am getting the below error.
Can't locate centreon/script/centFillTrapDB.pm in @inc (@inc contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /bin/centFillTrapDB line 35.
BEGIN failed--compilation aborted at /bin/centFillTrapDB line 35.
When exporting one ACL access group,
When exporting ACL resources records, on target environment, no linked objects are created and if they already exist in the target environment, then they're are not visible in the Selected panel but in the Available one.
When exporting Service categories and importing the exported file obtained then no service categories are added in the environment.
uninstall sql does not remove topology header menu
When exporting Time periods, if the field TimePeriods templates and timerange exceptions (second tab of time periods records) are set on the timeperiod, they're not exported.
When exporting and reimporting a contact group linked to one or several users or to ACL groups, only the contact group is imported properly but not the linked users or ACL group.
Versions
centreon-2.8.26-3.el7.centos.noarch
centreon-awie-1.0.1-1.el7.centos.noarch
Operating System
Red Hat Enterprise Linux Server release 7.2 (Maipo)
Trying to export service templates using a filter.
No checkboxes selected, only the filter field for Service Templates is used with a single word.
It should match 9 templates of our configuration.
Message on the screen: "Please wait... This process can take several minutes".
We've been waiting for more than 20 hours :)
Configuration
Import/Export
Export
Fill the filter field of Service Templates
Export
When exporting/importing Notifications commands, the content of Command lines is not totally exported.
example : for host-notify-by-epager
/usr/bin/printf "%b" "Host
becomes
in target : /usr/bin/printf "
Although ACL access groups, ACL resources, ACL actions, ACL menus are configured in Administration > ACL pages, when exporting ACL in Configuration > Export page, the export file is empty.
In awie page (Configuration > Import/export form), especially for using filter, there are no help to tell users what to type in filter field and what will be the result of the export according to choice made by user (All hosts => hosts, hosts templates, linked users are exported but not linked services, if filter for one specific host, host, host templates, users and linked services are exported...)
When exporting/importing using filter for one specific service, result is different, depending if the service is linked to one or several hosts.
If service exists for several hots (Ping), then only one host is exported with all services (probably the first one that has been created).
If service exists only for one host, this service is exported with host+all services anyway, whereas user could expect only one service to be exported
Centreon Version: 20.04.0
Command: centreon -u admin -p xyz -i clapi_export.txt
Hi i want to change my central host so i both try clapi and awie both didn't worked, the both server are in centreon 20.04.0 but when i am trying to import the configuration with clapi i am getting this error:
"PHP Fatal error: Uncaught PDOException: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column centreon.on_demand_macro_service.is_password at row 1 in /usr/share/centreon/www/class/centreonDB.class.php:274
Stack trace:
#0 /usr/share/centreon/lib/Centreon/Object/Object.php(117): CentreonDB->query('INSERT INTO on_...', Array)
#1 /usr/share/centreon/www/class/centreon-clapi/centreonService.class.php(722): Centreon_Object->insert(Array)
#2 /usr/share/centreon/www/class/centreon-clapi/centreonAPI.class.php(806): CentreonClapi\CentreonService->setmacro('VCENTER-HOST-12...')
#3 /usr/share/centreon/www/class/centreon-clapi/centreonAPI.class.php(769): CentreonClapi\CentreonAPI->launchActionForImport()
#4 /usr/share/centreon/bin/centreon(196): CentreonClapi\CentreonAPI->import('centreon-clapi-...')
#5 {main}"
Does anyone have a way to fix this ?
I installed centreon-awie on a 19.10 version of centreon.
The export function works but not the import function
The folder /usr/share/centreon/filesUpload does not exist to import the file
Solution
mkdir /usr/share/centreon/filesUpload
chown centreon: /usr/share/centreon/filesUpload
chmod 775 /usr/share/centreon/filesUpload
After creating the folder, the import function works
Although all actions checkboxes are set to yes in the source environment for exported ACL actions record, those following actions checkboxes are set to no in the target environment :
When exporting Host Categories, linked host and linked host template are not exported (they are only if host or host template already exist in environment)
Hi,
I have trying to make work your centreon extension to export my centreon host/services,
i'm getting the following error in console when i push in "Export": "Failed to load resource: the server responded with a status of 500 (Internal Server Error)"
someone can help me ? my Centreon version is v. 2.8.13
BR.
When exporting Checks commands, export file created is empty and got a message "A".
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.