I am trying to use only CLI to install centreon, I don't want to use the web interface. ( I am trying to create an Ansible role who install centreon) Is there a methode to do the web interface part via CLI ?
Is there a possibility for configurating via CLI and not by web interfaces for installing Centreon?
1.4k Views Asked by Hasoke At
1
There are 1 best solutions below
Related Questions in CENTREON-API
- Get service status of Centreon results in 404
- Trouble Accessing Host Alias in Smarty Template (Centreon)
- Are there Centreon plugins developed in languages other than Perl?
- Centreon 23.04, Update host via API
- All hosts and services Status in the top counter and the monitoring page flapping to UNKNOWN then back to normal every few minutes
- Centreon - missing part of output in Resource Status Information column
- The centreon poller does not run after exporting the configuration
- Can't show file configuration Poller in Centreon
- how to convert this curl command to PowerShell
- Centreon web API v2 endpoints return 500 - No route found
- Install centreon on centos7.9 raspberrypi
- MariaDB : Help a noobie to use timerange
- Why Python library import doesn't work via NRPE
- Summary status of a group of hosts in Centreon
- Is there a possibility for configurating via CLI and not by web interfaces for installing Centreon?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Centreon CLAPI aims to offer (almost) all the features that are available on the user web interface in terms of configuration, through a command-line interface.
The main features are:
All actions in Centreon CLAPI will require authentication, so your commands will always start like this:
Obviously, the -u option is for the username and the -p option is for the password. The password can be in clear or the one encrypted in the database.
Here is an example for a HOST object (Object name: HOST)
In order to list available hosts, use the SHOW action:
In order to add a host, use the ADD action:
Required parameters:
Order Description
1 Host name
2 Host alias
3 Host IP address
4 Host templates; for multiple definitions, use delimiter |
5 Instance name (poller)
6 Hostgroup; for multiple definitions, use delimiter |
In order to delete one host, use the DEL action.
You can retrieve all the CLI instructions online in the official doc. https://documentation.centreon.com/docs/centreon/en/19.04/api/clapi/index.html
I also found a useful Ansible Centreon playbook on Github: https://github.com/centreon/centreon-iac-ansible