|
7 | 7 |
|
8 | 8 | Creating a testing environment for this application contained many steps, so I figured I would document the process here.
|
9 | 9 |
|
10 |
| - 1. Create a fresh install of Ubuntu 16.04. I used a LAMP install. |
| 10 | + 1. Create a fresh install of Ubuntu 16.04. I used a LAMP install. My user was `centreon` |
11 | 11 | 2. Install php5.6 [askubuntu](http://askubuntu.com/questions/756181/installing-php-5-6-on-xenial-16-04)
|
12 |
| - 3. Enable php5.6 in Apache with ```a2enmod```, disable php7.0 with ```a2dismod``` |
13 |
| - 4. Restart apache with ```apache2ctl restart``` |
| 12 | +``` |
| 13 | +sudo apt purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "` |
| 14 | +sudo add-apt-repository ppa:ondrej/php |
| 15 | +sudo apt-get install php5.6 |
| 16 | +sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-gd php5.6-ldap php5.6-sqlite3 |
| 17 | +sudo apt-get install build-essential cmake librrd-dev libqt4-dev libqt4-sql-mysql libgnutls28-dev |
| 18 | +sudo apt-get install tofrodos bsd-mailx lsb-release mysql-server libmysqlclient-dev apache2 php-pear rrdtool librrds-perl libconfig-inifiles-perl libcrypt-des-perl libdigest-hmac-perl libgd-gd2-perl snmp snmpd libnet-snmp-perl libsnmp-perl |
| 19 | + select OK |
| 20 | + select No Configuration |
| 21 | +sudo apt-get install snmp-mibs-downloader |
| 22 | +``` |
| 23 | + 3. Enable php5.6 in Apache with `a2enmod`, disable php7.0 with `a2dismod` |
| 24 | +``` |
| 25 | +a2enmod php5.6 |
| 26 | +a2dismod php7.0 |
| 27 | +``` |
| 28 | + 4. Restart apache with `sudo apache2ctl restart` |
14 | 29 | 5. Install [Nagios Plugins](https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/quickstart-ubuntu.html) starting at step 6. The plugins link is broken, utilize [nagios-plugins-2.1.1.tar.gz](http://www.nagios-plugins.org/download/nagios-plugins-2.1.1.tar.gz) instead
|
15 |
| - 6. Install [Centreon Engine](https://documentation.centreon.com/docs/centreon-engine/en/latest/installation/index.html) |
16 |
| - 7. Install [Centreon Broker](https://documentation.centreon.com/docs/centreon-broker/en/2.11/installation/index.html#using-packages) |
17 |
| - 8. Install [Centreon clib](https://documentation.centreon.com/docs/centreon-clib/en/latest/installation/index.html) |
18 |
| - 9. Now install [Centreon Web](https://documentation.centreon.com/docs/centreon/en/2.5.x/installation/from_sources.html) |
19 |
| - |
| 30 | +``` |
| 31 | +wget http://www.nagios-plugins.org/download/nagios-plugins-2.1.1.tar.gz |
| 32 | +tar xvf nagios-plugins-2.1.1.tar.gz |
| 33 | +cd nagios-plugins-2.1.1/ |
| 34 | +./configure |
| 35 | +make |
| 36 | +sudo make install |
| 37 | +``` |
| 38 | + 6. Install [Centreon clib](https://documentation.centreon.com/docs/centreon-clib/en/latest/installation/index.html) |
| 39 | +``` |
| 40 | +cd ~ |
| 41 | +git clone https://github.com/centreon/centreon-clib |
| 42 | +cd centreon-clib/build |
| 43 | +cmake . |
| 44 | +make |
| 45 | +sudo make install |
| 46 | +``` |
| 47 | + 7. Install [Centreon Broker](https://documentation.centreon.com/docs/centreon-broker/en/2.11/installation/index.html) |
| 48 | +``` |
| 49 | +cd ~ |
| 50 | +git clone https://github.com/centreon/centreon-broker |
| 51 | +cd centreon-broker/build/ |
| 52 | +cmake -DWITH_STARTUP_DIR=/etc/init.d -DWITH_STARTUP_SCRIPT=sysv . |
| 53 | +make |
| 54 | +sudo make install |
| 55 | +``` |
| 56 | + 8. Install [Centreon Engine](https://documentation.centreon.com/docs/centreon-engine/en/latest/installation/index.html) |
| 57 | +``` |
| 58 | +cd ~ |
| 59 | +git clone https://github.com/centreon/centreon-engine |
| 60 | +cd centreon-engine/build/ |
| 61 | +cmake -DWITH_STARTUP_DIR=/etc/init.d -DWITH_STARTUP_SCRIPT=sysv . |
| 62 | +make |
| 63 | +sudo make install |
| 64 | +``` |
| 65 | + 9. Now install [Centreon Web](https://documentation.centreon.com/docs/centreon/en/2.5.x/installation/from_sources.html) but only the command line portion. |
| 66 | +``` |
| 67 | +sudo mkdir /var/log/centreon-engine |
| 68 | +cd ~ |
| 69 | +sudo pear install XML_RPC-1.4.5 |
| 70 | +wget https://www.exploit-db.com/apps/bf269a17dd99215e6dc5d7755b521c21-centreon-2.5.3.tar.gz |
| 71 | +tar vxf bf269a17dd99215e6dc5d7755b521c21-centreon-2.5.3.tar.gz |
| 72 | +cd centreon-2.5.3 |
| 73 | +sudo ./install.sh -i |
| 74 | + <enter> |
| 75 | + q |
| 76 | + y |
| 77 | + y |
| 78 | + y |
| 79 | + y |
| 80 | + y |
| 81 | + <enter> |
| 82 | + y |
| 83 | + <enter> |
| 84 | + y |
| 85 | + <enter> |
| 86 | + y |
| 87 | + <enter> |
| 88 | + y |
| 89 | + <enter> |
| 90 | + y |
| 91 | + <enter> |
| 92 | + <enter> |
| 93 | + <enter> |
| 94 | + centreon |
| 95 | + <enter> |
| 96 | + /var/log/centreon-engine |
| 97 | + /home/centreon/nagios-plugins-2.1.1/plugins |
| 98 | + <enter> |
| 99 | + /etc/init.d/centengine |
| 100 | + /usr/local/bin/centengine |
| 101 | + /usr/local/etc/ |
| 102 | + /usr/local/etc/ |
| 103 | + /etc/init.d/centengine |
| 104 | + <enter> |
| 105 | + y |
| 106 | + y |
| 107 | + y |
| 108 | + <enter> |
| 109 | + y |
| 110 | + <enter> |
| 111 | + <enter> |
| 112 | + y |
| 113 | + y |
| 114 | + <enter> |
| 115 | + y |
| 116 | + y |
| 117 | + <enter> |
| 118 | + y |
| 119 | + <enter> |
| 120 | + <enter> |
| 121 | + y |
| 122 | + y |
| 123 | +``` |
| 124 | + 10. Fix apache config |
| 125 | +``` |
| 126 | +sudo cp /etc/apache2/conf.d/centreon.conf /etc/apache2/conf-available/ |
| 127 | +sudo sed -i 's/Order allow,deny/Require all granted/' /etc/apache2/conf-available/centreon.conf |
| 128 | +sudo sed -i 's/allow from all//' /etc/apache2/conf-available/centreon.conf |
| 129 | +sudo a2enconf centreon |
| 130 | +sudo service apache2 reload |
| 131 | +``` |
| 132 | + 11. Configure via website. Browse to <ip>/centreon |
| 133 | +``` |
| 134 | +next |
| 135 | +next |
| 136 | +select centreon-engine |
| 137 | + /usr/local/lib/centreon-engine |
| 138 | + /usr/local/bin/centenginestats |
| 139 | + /usr/local/lib/centreon-engine |
| 140 | + /usr/local/lib/centreon-engine |
| 141 | + /usr/local/lib/centreon-engine |
| 142 | + next |
| 143 | +select centreon-broker |
| 144 | + /usr/local/lib/centreon-broker |
| 145 | + /usr/local/lib/cbmod.so |
| 146 | + /usr/local/lib/centreon-broker |
| 147 | + /usr/local/lib/centreon-broker |
| 148 | + /usr/local/lib/centreon-broker |
| 149 | + next |
| 150 | +Pick whatever details about your user you want, next |
| 151 | +Fill in mysql Root password, next |
| 152 | +next |
| 153 | +next |
| 154 | +finish |
| 155 | +``` |
20 | 156 | ## Verification Steps
|
21 | 157 |
|
22 | 158 | 1. Install the application
|
|
0 commit comments