zeysh / centreon-install Goto Github PK
View Code? Open in Web Editor NEWCentreon autoinstall script for Debian
Centreon autoinstall script for Debian
CENTREON_VARLIB is set to /var/lib/centreon
but when doing snmp trap generation, this causes an error that it cannot find centcore.cmd file which points to "Error while writing into /var/lib/centreon/centcore.cmd"
But it appears this is in /var/lib/centreon-engine/rw/centcore.cmd
I don't believe I changed this at any time and submitting forced checks works fine so not sure how all the php scripts are pointing incorrectly to /var/lib/centreon/centcore.cmd
Don't know why I can't set issues against GreenCom-Networks so I'm going to log it here hoping it's picked up.
I think it would be good to have command line params which installs centreon in particular modes, central poller only, remote only poller, etc. May need to add extra params to indicate the central server settings so they can talk but I think it would be good.
hello! First: your script is fantastic! thank you very much!
Second: I have a problem with notifications, /var/log/mail.log I do not see anything that tells me you are sending e-mails when a host or service goes down.
You got idea that can be?
From already thank you!
Hi,
It would be great if your script could ask me for a proxy for the PEAR upgrade command, or use the one from the enviroment, because it can't install Centreon and hangs until I do the command to set the proxy.
But I besides that I really love that skript and I hope you keep it updated, because I really hate the install procedure of Centreon.
Josef
Ligne 675 environ
Déplacer la ligne "apt-get"
**** original
DISTRO=lsb_release -i -s | tr '[:upper:]' '[:lower:]'
RELEASE=lsb_release -c -s
apt-get install -y lsb-release python-software-properties
par:
apt-get install -y lsb-release python-software-properties
DISTRO=lsb_release -i -s | tr '[:upper:]' '[:lower:]'
RELEASE=lsb_release -c -s
Détecté sur un environnement minimaliste sous debian wheezy (openvz sous proxmox).
Les variables DISTRO et RELEASE ne sont pas initialisées proprement. => /etc/apt/sources.list incorrect. => "apt-get update" failed. => "mariadb" failed...
Cordialement
Awesome script, saved me hours and pain. I modified it to work with debian jessie and placed a copy on http://www.emperor-it.com/downloads/centreon-installer.sh as I didnt want to fork it. It still says Wheezy and theres commented out repo which with jessie is not required and cleaner install so up to you how you'd like to do it (another reason not to fork). Diff and take whatever changes (not much anyway).
The only thing it doesn't do is the apache config as centreon uses /etc/apache2/conf.d which doesn't exist.
So I just added manually:
Alias /centreon /usr/local/centreon/www/
<Directory "/usr/local/centreon/www">
Options Indexes
AllowOverride AuthConfig Options
Order allow,deny
Allow from all
Require all granted
EOF
ln -s /etc/apache2/conf-available/conf-available/centreon.conf /etc/apache2/conf-enabled/centreon.conf
Versions used and confirmed to work as below.
root@qetesh:/home/eitadmin # ./centreon-installer.sh
=======================| Install details |============================
MariaDB : 10.0
Clib : 1.4.2
Connector : 1.1.1
Engine : 1.4.14
Plugin : 2.0.3
Broker : 2.8.2
Centreon : 2.6.1
Install dir: /usr/local
Source dir : /usr/local/src
Step1 => Install MariaDB [ OK ]
Step2 => Install PHP5.3 on Wheezy [ OK ]
Step3 => Clib install [ OK ]
Step4 => Centreon Perl and SSH connectors install [ OK ]
Step5 => Centreon Engine install [ OK ]
Step6 => Nagios plugins install [ OK ]
Step6 => Centreon plugins install [ OK ]
Step7 => Centreon Broker install [ OK ]
Step8 => Centreon template generation [ OK ]
Step9 => Centreon web interface install [ OK ]
Step10 => Post install [ OK ]
Step11 => CLAPI install [ OK ]
Step12 => Widgets install [ OK ]
Go to http://172.16.200.110/centreon to complete the setup
Hello,
just to inform you that I have try your script and I have bumped the version to the latest release available :
CLIB_VER="1.4.2"
CONNECTOR_VER="1.1.1"
ENGINE_VER="1.4.11"
PLUGIN_VER="2.0.3"
BROKER_VER="2.8.1"
CENTREON_VER="2.5.4"
CLAPI_VER="1.7.1"
MARIADB_VER='5.5'
WIDGET_HOST_VER="1.3.2"
WIDGET_HOSTGROUP_VER="1.1.1"
WIDGET_SERVICE_VER="1.3.2"
WIDGET_SERVICEGROUP_VER="1.1.0"
It has worked perfectly.
Another test I have done, is to use your script to update my current "old" version (the version I have installed before were those which were in your original script).
All has worked perfectly.
Thanks again for this great script !!!
I just read over this little script and find it very useful.
One little thing felt into my eyes while reading it:
Line 269 of centreon.sh:
if [[ -e centreon-broker-2.5.0.tar.gz ]]
I guess, you forgot to replace "2.5.0" with "${BROKER_VER}".
Thanks for the script.
Regards Lico
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.