Você está na página 1de 19

Instalando o Cachet um sistema de

página de status open source


por Rudimar Remontti · 20 de fevereiro de 2021

Cachet é uma página de status para serviços mantidos pela sua empresa/administração.
Quem sabe você ja tenha acessado https://status.ix.br para verificar se o IX estava
passando por alguma problema, IX.BR usa o Cachet. É uma ferramenta que ira ajuda a
comunicar o tempo de atividade e o tempo de inatividade de seus aplicativos/serviços e
a compartilhar informações sobre quaisquer interrupções.

Ele é desenvolvido em PHP, portanto, se você já possui um servidor LAMP ou LEMP,


é fácil de instalar. Ele tem uma interface limpa e é projetado para ser responsivo, de
modo que pode funcionar em todos os dispositivos.

Cachet não monitora seus sites ou servidores quanto ao tempo de inatividade; O Cachet
registra incidentes, que podem ser atualizados manualmente por meio da interface web
ou com a API do Cachet. Se você estiver procurando por soluções de monitoramento,
confira o tutorial do Zabbix.

Neste tutorial, vou configurar uma página de status com Cachet no Debian 10.

Requisitos:
Como base irei fazer a instalação no Debian 10 limpa (sem nenhuma instalação de
pacotes)

$ su -
# apt upda; apt upgrade

1 $ su -
2 # apt upda; apt upgrade
# apt install wget apache2 apac
php php-mysql php-cli php-pear
php-mbstring php-curl php-xml p
mariadb-server mariadb-client zi

1 # apt install wget apache2 apache2-utils libapache2-mod-php \


2 php php-mysql php-cli php-pear php-gmp php-gd php-bcmath \
3 php-mbstring php-curl php-xml php-zip php-apcu php-fpm \
4 mariadb-server mariadb-client zip

Como estou me baseando por umas instalação limpa, vou setar a senha do
mariaDb/Mysql e em seguida já criar nosso banco para o cachet.

# mariadb -u root

1 # mariadb -u root

Não equeça de alterar as senhas, recomendo você criar uma senha aleatória em
https://senhasegura.remontti.com.br/

USE mysql;
UPDATE user SET password=P
UPDATE user SET plugin="mys

1 USE mysql;
2 UPDATE user SET password=PASSWORD('SENHA_ROOT') WHERE User='root';
3 UPDATE user SET plugin="mysql_native_password";
4  
5 CREATE DATABASE cachet;
6 GRANT ALL ON cachet.* TO 'cachet' IDENTIFIED BY 'SUA_SENHA_CACHET';
7 FLUSH PRIVILEGES;
8 EXIT;

Entre no diretório temp, onde iremos fazer o download mais recente do Composer (Não
irei instala-lo via apt)

# cd /tmp/
# wget https://getcomposer.org/
# php installer.php

1 # cd /tmp/
2 # wget https://getcomposer.org/installer -O installer.php
3 # php installer.php
All settings correct for using Co
Downloading...

Composer (version 2.0.9) succe

1 All settings correct for using Composer


2 Downloading...
3  
4 Composer (version 2.0.9) successfully installed to: /tmp/composer.phar
5 Use it: php composer.phar
# mv composer.phar /usr/bin/co
# composer --version

1 # mv composer.phar /usr/bin/composer
2 # composer --version
Do not run Composer as root/su
Continue as root/super user [ye
Composer version 2.0.9 2021-01

1 Do not run Composer as root/super user! See https://getcomposer.org/root for details


2 Continue as root/super user [yes]? yes
3 Composer version 2.0.9 2021-01-27 16:09:27

Vamos propriamente então ao projeto Cachet

# wget https://github.com/Cache
# unzip 2.4.zip -d /var/www/
# mv /var/www/Cachet-2.4/ /var/w
# cp /var/www/cachet/.env.exam

1 # wget https://github.com/CachetHQ/Cachet/archive/2.4.zip
2 # unzip 2.4.zip -d /var/www/
3 # mv /var/www/Cachet-2.4/ /var/www/cachet
4 # cp /var/www/cachet/.env.example /var/www/cachet/.env
5 # vim /var/www/cachet/.env

Altere as informacções de usuario e senha do mariaDB de acordo com o que você criou.

DB_USERNAME=homestead
DB_PASSWORD=secret

1 DB_USERNAME=homestead
2 DB_PASSWORD=secret

Para

DB_USERNAME=cachet
DB_PASSWORD=SUA_SENHA

1 DB_USERNAME=cachet
2 DB_PASSWORD=SUA_SENHA_CACHET
# cd /var/www/cachet
# composer install --no-dev -o

1 # cd /var/www/cachet
2 # composer install --no-dev -o
Do not run Composer as root/su
Continue as root/super user [ye
Installing dependencies from loc
Verifying lock file contents can b

1 Do not run Composer as root/super user! See https://getcomposer.org/root for


2 details
3 Continue as root/super user [yes]? yes
4 Installing dependencies from lock file
5 Verifying lock file contents can be installed on current platform.
6 Package operations: 97 installs, 0 updates, 0 removals
7   - Downloading kylekatarnls/update-helper (1.2.1)
8   - Downloading symfony/polyfill-ctype (v1.18.0)
9   - Downloading vlucas/phpdotenv (v2.6.6)
10   - Downloading symfony/css-selector (v4.4.11)
11   - Downloading tijsverkoyen/css-to-inline-styles (2.2.3)
12   - Downloading symfony/polyfill-php80 (v1.18.0)
13   - Downloading symfony/polyfill-php72 (v1.18.0)
14   - Downloading symfony/var-dumper (v4.4.11)
15   - Downloading symfony/routing (v4.4.11)
16   - Downloading symfony/process (v4.4.11)
17   - Downloading symfony/polyfill-php73 (v1.18.0)
18   - Downloading symfony/polyfill-php70 (v1.18.0)
19   - Downloading symfony/polyfill-intl-normalizer (v1.18.0)
20   - Downloading symfony/polyfill-intl-idn (v1.18.0)
21   - Downloading symfony/mime (v4.4.11)
22   - Downloading symfony/http-foundation (v4.4.11)
23   - Downloading symfony/event-dispatcher-contracts (v1.1.9)
24   - Downloading symfony/event-dispatcher (v4.4.11)
25   - Downloading psr/log (1.1.3)
26   - Downloading symfony/debug (v4.4.11)
27   - Downloading symfony/error-handler (v4.4.11)
28   - Downloading symfony/http-kernel (v4.4.11)
29   - Downloading symfony/finder (v4.4.11)
30   - Downloading psr/container (1.0.0)
31   - Downloading symfony/service-contracts (v1.1.9)
32   - Downloading symfony/console (v4.4.11)
33   - Downloading symfony/polyfill-iconv (v1.18.0)
34   - Downloading doctrine/lexer (1.0.2)
35   - Downloading egulias/email-validator (2.1.18)
36   - Downloading swiftmailer/swiftmailer (v6.2.3)
37   - Downloading ramsey/uuid (3.9.3)
38   - Downloading psr/simple-cache (1.0.1)
39   - Downloading opis/closure (3.5.5)
40   - Downloading symfony/translation-contracts (v1.1.9)
41   - Downloading symfony/translation (v4.4.11)
42   - Downloading nesbot/carbon (1.39.1)
43   - Downloading monolog/monolog (1.25.5)
44   - Downloading league/flysystem (1.0.70)
45   - Downloading ralouphie/getallheaders (3.0.3)
46   - Downloading psr/http-message (1.0.1)
47   - Downloading guzzlehttp/psr7 (1.6.1)
48   - Downloading guzzlehttp/promises (v1.3.1)
49   - Downloading guzzlehttp/guzzle (6.5.5)
50   - Downloading laravel/slack-notification-channel (v1.0.3)
51   - Downloading php-http/promise (1.1.0)
52   - Downloading php-http/httplug (v1.1.0)
53   - Downloading php-http/guzzle6-adapter (v1.1.1)
54   - Downloading psr/http-factory (1.0.1)
55   - Downloading zendframework/zend-diactoros (2.2.1)
56   - Downloading lcobucci/jwt (3.3.2)
57   - Downloading nexmo/client-core (1.8.1)
58   - Downloading nexmo/client (1.9.1)
59   - Downloading laravel/nexmo-notification-channel (v1.0.1)
60   - Downloading erusev/parsedown (1.7.4)
61   - Downloading dragonmantank/cron-expression (v2.3.0)
62   - Downloading doctrine/inflector (1.3.1)
63   - Downloading laravel/framework (v5.7.29)
64   - Downloading alt-three/badger (v5.1.0)
65   - Downloading alt-three/bus (v4.5.0)
66   - Downloading league/commonmark (0.18.5)
67   - Downloading graham-campbell/guzzle-factory (v3.0.4)
68   - Downloading alt-three/emoji (v7.0.0)
69   - Downloading alt-three/twitter (v3.1.0)
70   - Downloading alt-three/validator (v4.5.0)
71   - Downloading mtdowling/jmespath.php (2.6.0)
72   - Downloading aws/aws-sdk-php (3.147.10)
73   - Downloading asm89/stack-cors (1.3.0)
74   - Downloading barryvdh/laravel-cors (v0.11.4)
75   - Downloading composer/ca-bundle (1.2.7)
76   - Downloading bugsnag/bugsnag (v3.21.0)
77   - Downloading bugsnag/bugsnag-psr-logger (v1.4.3)
78   - Downloading bugsnag/bugsnag-laravel (v2.19.0)
79   - Downloading chillerlan/php-traits (1.1.13)
80   - Downloading chillerlan/php-qrcode (2.0.8)
81   - Downloading doctrine/event-manager (1.1.0)
82   - Downloading doctrine/cache (1.10.2)
83   - Downloading doctrine/dbal (v2.9.3)
84   - Downloading fideloper/proxy (4.4.0)
85   - Downloading graham-campbell/security-core (v1.0.3)
86   - Downloading graham-campbell/security (v6.2.0)
87   - Downloading graham-campbell/binput (v6.2.0)
88   - Downloading graham-campbell/exceptions (v11.3.0)
89   - Downloading graham-campbell/markdown (v10.3.1)
90   - Downloading jakub-onderka/php-console-color (v0.2)
91   - Downloading jenssegers/date (v3.5.0)
92   - Downloading nikic/php-parser (v4.7.0)
93   - Downloading jakub-onderka/php-console-highlighter (v0.4)
94   - Downloading dnoegel/php-xdg-base-dir (v0.1.1)
95   - Downloading psy/psysh (v0.9.12)
96   - Downloading laravel/tinker (v1.0.10)
97   - Downloading mccool/laravel-auto-presenter (7.4.1)
98   - Downloading symfony/polyfill-util (v1.18.0)
99   - Downloading symfony/polyfill-php56 (v1.18.0)
100   - Downloading paragonie/constant_time_encoding (v2.3.0)
101   - Downloading pragmarx/google2fa (v5.0.0)
102   - Downloading predis/predis (v1.1.1)
103   - Downloading twig/twig (v2.13.0)
104   - Installing kylekatarnls/update-helper (1.2.1): Extracting archive
105   - Installing symfony/polyfill-ctype (v1.18.0): Extracting archive
106   - Installing vlucas/phpdotenv (v2.6.6): Extracting archive
107   - Installing symfony/css-selector (v4.4.11): Extracting archive
108   - Installing tijsverkoyen/css-to-inline-styles (2.2.3): Extracting archive
109   - Installing symfony/polyfill-php80 (v1.18.0): Extracting archive
110   - Installing symfony/polyfill-php72 (v1.18.0): Extracting archive
111   - Installing symfony/var-dumper (v4.4.11): Extracting archive
112   - Installing symfony/routing (v4.4.11): Extracting archive
113   - Installing symfony/process (v4.4.11): Extracting archive
114   - Installing symfony/polyfill-php73 (v1.18.0): Extracting archive
115   - Installing symfony/polyfill-php70 (v1.18.0): Extracting archive
116   - Installing symfony/polyfill-intl-normalizer (v1.18.0): Extracting archive
117   - Installing symfony/polyfill-intl-idn (v1.18.0): Extracting archive
118   - Installing symfony/mime (v4.4.11): Extracting archive
119   - Installing symfony/http-foundation (v4.4.11): Extracting archive
120   - Installing symfony/event-dispatcher-contracts (v1.1.9): Extracting archive
121   - Installing symfony/event-dispatcher (v4.4.11): Extracting archive
122   - Installing psr/log (1.1.3): Extracting archive
123   - Installing symfony/debug (v4.4.11): Extracting archive
124   - Installing symfony/error-handler (v4.4.11): Extracting archive
125   - Installing symfony/http-kernel (v4.4.11): Extracting archive
126   - Installing symfony/finder (v4.4.11): Extracting archive
127   - Installing psr/container (1.0.0): Extracting archive
128   - Installing symfony/service-contracts (v1.1.9): Extracting archive
129   - Installing symfony/console (v4.4.11): Extracting archive
130   - Installing symfony/polyfill-iconv (v1.18.0): Extracting archive
131   - Installing doctrine/lexer (1.0.2): Extracting archive
132   - Installing egulias/email-validator (2.1.18): Extracting archive
133   - Installing swiftmailer/swiftmailer (v6.2.3): Extracting archive
134   - Installing ramsey/uuid (3.9.3): Extracting archive
135   - Installing psr/simple-cache (1.0.1): Extracting archive
136   - Installing opis/closure (3.5.5): Extracting archive
137   - Installing symfony/translation-contracts (v1.1.9): Extracting archive
138   - Installing symfony/translation (v4.4.11): Extracting archive
139   - Installing nesbot/carbon (1.39.1): Extracting archive
140   - Installing monolog/monolog (1.25.5): Extracting archive
141   - Installing league/flysystem (1.0.70): Extracting archive
142   - Installing ralouphie/getallheaders (3.0.3): Extracting archive
143   - Installing psr/http-message (1.0.1): Extracting archive
144   - Installing guzzlehttp/psr7 (1.6.1): Extracting archive
145   - Installing guzzlehttp/promises (v1.3.1): Extracting archive
146   - Installing guzzlehttp/guzzle (6.5.5): Extracting archive
147   - Installing laravel/slack-notification-channel (v1.0.3): Extracting archive
148   - Installing php-http/promise (1.1.0): Extracting archive
149   - Installing php-http/httplug (v1.1.0): Extracting archive
150   - Installing php-http/guzzle6-adapter (v1.1.1): Extracting archive
151   - Installing psr/http-factory (1.0.1): Extracting archive
152   - Installing zendframework/zend-diactoros (2.2.1): Extracting archive
153   - Installing lcobucci/jwt (3.3.2): Extracting archive
154   - Installing nexmo/client-core (1.8.1): Extracting archive
155   - Installing nexmo/client (1.9.1): Extracting archive
156   - Installing laravel/nexmo-notification-channel (v1.0.1): Extracting archive
157   - Installing erusev/parsedown (1.7.4): Extracting archive
158   - Installing dragonmantank/cron-expression (v2.3.0): Extracting archive
159   - Installing doctrine/inflector (1.3.1): Extracting archive
160   - Installing laravel/framework (v5.7.29): Extracting archive
161   - Installing alt-three/badger (v5.1.0): Extracting archive
162   - Installing alt-three/bus (v4.5.0): Extracting archive
163   - Installing league/commonmark (0.18.5): Extracting archive
164   - Installing graham-campbell/guzzle-factory (v3.0.4): Extracting archive
165   - Installing alt-three/emoji (v7.0.0): Extracting archive
166   - Installing alt-three/twitter (v3.1.0): Extracting archive
167   - Installing alt-three/validator (v4.5.0): Extracting archive
168   - Installing mtdowling/jmespath.php (2.6.0): Extracting archive
169   - Installing aws/aws-sdk-php (3.147.10): Extracting archive
170   - Installing asm89/stack-cors (1.3.0): Extracting archive
171   - Installing barryvdh/laravel-cors (v0.11.4): Extracting archive
172   - Installing composer/ca-bundle (1.2.7): Extracting archive
173   - Installing bugsnag/bugsnag (v3.21.0): Extracting archive
174   - Installing bugsnag/bugsnag-psr-logger (v1.4.3): Extracting archive
175   - Installing bugsnag/bugsnag-laravel (v2.19.0): Extracting archive
176   - Installing chillerlan/php-traits (1.1.13): Extracting archive
177   - Installing chillerlan/php-qrcode (2.0.8): Extracting archive
178   - Installing doctrine/event-manager (1.1.0): Extracting archive
179   - Installing doctrine/cache (1.10.2): Extracting archive
180   - Installing doctrine/dbal (v2.9.3): Extracting archive
181   - Installing fideloper/proxy (4.4.0): Extracting archive
182   - Installing graham-campbell/security-core (v1.0.3): Extracting archive
183   - Installing graham-campbell/security (v6.2.0): Extracting archive
184   - Installing graham-campbell/binput (v6.2.0): Extracting archive
185   - Installing graham-campbell/exceptions (v11.3.0): Extracting archive
186   - Installing graham-campbell/markdown (v10.3.1): Extracting archive
187   - Installing jakub-onderka/php-console-color (v0.2): Extracting archive
188   - Installing jenssegers/date (v3.5.0): Extracting archive
189   - Installing nikic/php-parser (v4.7.0): Extracting archive
  - Installing jakub-onderka/php-console-highlighter (v0.4): Extracting archive
  - Installing dnoegel/php-xdg-base-dir (v0.1.1): Extracting archive
  - Installing psy/psysh (v0.9.12): Extracting archive
  - Installing laravel/tinker (v1.0.10): Extracting archive
  - Installing mccool/laravel-auto-presenter (7.4.1): Extracting archive
190   - Installing symfony/polyfill-util (v1.18.0): Extracting archive
191   - Installing symfony/polyfill-php56 (v1.18.0): Extracting archive
192   - Installing paragonie/constant_time_encoding (v2.3.0): Extracting archive
193   - Installing pragmarx/google2fa (v5.0.0): Extracting archive
194   - Installing predis/predis (v1.1.1): Extracting archive
195   - Installing twig/twig (v2.13.0): Extracting archive
196 Package alt-three/badger is abandoned, you should avoid using it. Use
197 cachethq/badger instead.
198 Package alt-three/emoji is abandoned, you should avoid using it. Use
199 cachethq/emoji instead.
200 Package alt-three/twitter is abandoned, you should avoid using it. Use
201 cachethq/twitter instead.
202 Package jakub-onderka/php-console-color is abandoned, you should avoid using it.
203 Use php-parallel-lint/php-console-color
204 instead.                                                                                                          
205 Package jakub-onderka/php-console-highlighter is abandoned, you should avoid
206 using it. Use php-parallel-lint/php-console-highlighter
207 instead.                                                                                              
208 Package zendframework/zend-diactoros is abandoned, you should avoid using it.
209 Use laminas/laminas-diactoros instead.
210 Generating optimized autoload files
211 Carbon 1 is deprecated, see how to migrate to Carbon 2.
212 https://carbon.nesbot.com/docs/#api-carbon-2
213     You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and
214 other frameworks and libraries that depend on it.
215 > Illuminate\Foundation\ComposerScripts::postAutoloadDump
216 > @php artisan package:discover
217 Discovered Package: alt-three/badger
218 Discovered Package: alt-three/emoji
219 Discovered Package: alt-three/twitter
220 Discovered Package: barryvdh/laravel-cors
221 Discovered Package: fideloper/proxy
222 Discovered Package: graham-campbell/binput
223 Discovered Package: graham-campbell/exceptions
224 Discovered Package: graham-campbell/markdown
225 Discovered Package: graham-campbell/security
226 Discovered Package: jenssegers/date
227 Discovered Package: laravel/nexmo-notification-channel
228 Discovered Package: laravel/slack-notification-channel
229 Discovered Package: laravel/tinker
Discovered Package: mccool/laravel-auto-presenter
Discovered Package: nesbot/carbon
Package manifest generated successfully.
38 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
# php artisan key:generate

1 # php artisan key:generate


Application key set successfully

1 Application key set successfully.


# php artisan cachet:install

1 # php artisan cachet:install


Do you want to configure Cache
> no

Installing Cachet...

1 Do you want to configure Cachet before installing? (yes/no) [no]:


2 > no
3  
4 Installing Cachet...
5 Clearing settings cache...
6 Settings cache cleared!
7 System was installed!
8 **************************************
9 *     Application In Production!     *
10 **************************************
11  
12 Do you really wish to run this command? (yes/no) [no]:
13 > no
14  
15 Command Cancelled!
16 Configuration cache cleared!
17 Configuration cached successfully!
18 Route cache cleared!
19 Routes cached successfully!
20 Copied Directory
21 [/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views] To
22 [/resources/views/errors]
23 Copied Directory
24 [/vendor/laravel/framework/src/Illuminate/Notifications/resources/views] To
25 [/resources/views/vendor/notifications]                                                                         
26                                
27 Copied Directory
28 [/vendor/laravel/framework/src/Illuminate/Pagination/resources/views] To
29 [/resources/views/vendor/pagination]                                                                            
30                                   
31 Copied Directory [/vendor/laravel/framework/src/Illuminate/Mail/resources/views]
32 To [/resources/views/vendor/mail]
33 Publishing complete.
34 Migration table created successfully.
35 Migrating: 2015_01_05_201324_CreateComponentGroupsTable
36 Migrated:  2015_01_05_201324_CreateComponentGroupsTable
37 Migrating: 2015_01_05_201444_CreateComponentsTable
38 Migrated:  2015_01_05_201444_CreateComponentsTable
39 Migrating: 2015_01_05_202446_CreateIncidentTemplatesTable
40 Migrated:  2015_01_05_202446_CreateIncidentTemplatesTable
41 Migrating: 2015_01_05_202609_CreateIncidentsTable
42 Migrated:  2015_01_05_202609_CreateIncidentsTable
43 Migrating: 2015_01_05_202730_CreateMetricPointsTable
44 Migrated:  2015_01_05_202730_CreateMetricPointsTable
45 Migrating: 2015_01_05_202826_CreateMetricsTable
46 Migrated:  2015_01_05_202826_CreateMetricsTable
47 Migrating: 2015_01_05_203014_CreateSettingsTable
48 Migrated:  2015_01_05_203014_CreateSettingsTable
49 Migrating: 2015_01_05_203235_CreateSubscribersTable
50 Migrated:  2015_01_05_203235_CreateSubscribersTable
51 Migrating: 2015_01_05_203341_CreateUsersTable
52 Migrated:  2015_01_05_203341_CreateUsersTable
53 Migrating: 2015_01_09_083419_AlterTableUsersAdd2FA
54 Migrated:  2015_01_09_083419_AlterTableUsersAdd2FA
55 Migrating: 2015_01_16_083825_CreateTagsTable
56 Migrated:  2015_01_16_083825_CreateTagsTable
57 Migrating: 2015_01_16_084030_CreateComponentTagTable
58 Migrated:  2015_01_16_084030_CreateComponentTagTable
59 Migrating: 2015_02_28_214642_UpdateIncidentsAddScheduledAt
60 Migrated:  2015_02_28_214642_UpdateIncidentsAddScheduledAt
61 Migrating: 2015_05_19_214534_AlterTableComponentGroupsAddOrder
62 Migrated:  2015_05_19_214534_AlterTableComponentGroupsAddOrder
63 Migrating: 2015_05_20_073041_AlterTableIncidentsAddVisibileColumn
64 Migrated:  2015_05_20_073041_AlterTableIncidentsAddVisibileColumn
65 Migrating: 2015_05_24_210939_create_jobs_table
66 Migrated:  2015_05_24_210939_create_jobs_table
67 Migrating: 2015_05_24_210948_create_failed_jobs_table
68 Migrated:  2015_05_24_210948_create_failed_jobs_table
69 Migrating: 2015_06_10_122216_AlterTableComponentsDropUserIdColumn
70 Migrated:  2015_06_10_122216_AlterTableComponentsDropUserIdColumn
71 Migrating: 2015_06_10_122229_AlterTableIncidentsDropUserIdColumn
72 Migrated:  2015_06_10_122229_AlterTableIncidentsDropUserIdColumn
73 Migrating: 2015_08_02_120436_AlterTableSubscribersRemoveDeletedAt
74 Migrated:  2015_08_02_120436_AlterTableSubscribersRemoveDeletedAt
75 Migrating: 2015_08_13_214123_AlterTableMetricsAddDecimalPlacesColumn
76 Migrated:  2015_08_13_214123_AlterTableMetricsAddDecimalPlacesColumn
77 Migrating: 2015_10_31_211944_CreateInvitesTable
78 Migrated:  2015_10_31_211944_CreateInvitesTable
79 Migrating: 2015_11_03_211049_AlterTableComponentsAddEnabledColumn
80 Migrated:  2015_11_03_211049_AlterTableComponentsAddEnabledColumn
81 Migrating: 2015_12_26_162258_AlterTableMetricsAddDefaultViewColumn
82 Migrated:  2015_12_26_162258_AlterTableMetricsAddDefaultViewColumn
83 Migrating: 2016_01_09_141852_CreateSubscriptionsTable
84 Migrated:  2016_01_09_141852_CreateSubscriptionsTable
85 Migrating:
86 2016_01_29_154937_AlterTableComponentGroupsAddCollapsedColumn
87 Migrated:  2016_01_29_154937_AlterTableComponentGroupsAddCollapsedColu
88 mn
89 Migrating: 2016_02_18_085210_AlterTableMetricPointsChangeValueColumn
90 Migrated:  2016_02_18_085210_AlterTableMetricPointsChangeValueColumn
91 Migrating: 2016_03_01_174858_AlterTableMetricPointsAddCounterColumn
92 Migrated:  2016_03_01_174858_AlterTableMetricPointsAddCounterColumn
93 Migrating: 2016_03_08_125729_CreateIncidentUpdatesTable
94 Migrated:  2016_03_08_125729_CreateIncidentUpdatesTable
95 Migrating: 2016_03_10_144613_AlterTableComponentGroupsMakeColumnInteger
96 Migrated:  2016_03_10_144613_AlterTableComponentGroupsMakeColumnInteger
97 Migrating: 2016_04_05_142933_create_sessions_table
98 Migrated:  2016_04_05_142933_create_sessions_table
99 Migrating: 2016_04_29_061916_AlterTableSubscribersAddGlobalColumn
10 Migrated:  2016_04_29_061916_AlterTableSubscribersAddGlobalColumn
0 Migrating: 2016_06_02_075012_AlterTableMetricsAddOrderColumn
10 Migrated:  2016_06_02_075012_AlterTableMetricsAddOrderColumn
1 Migrating: 2016_06_05_091615_create_cache_table
10 Migrated:  2016_06_05_091615_create_cache_table
2 Migrating: 2016_07_25_052444_AlterTableComponentGroupsAddVisibleColumn
10 Migrated:  2016_07_25_052444_AlterTableComponentGroupsAddVisibleColumn
3 Migrating: 2016_08_23_114610_AlterTableUsersAddWelcomedColumn
10 Migrated:  2016_08_23_114610_AlterTableUsersAddWelcomedColumn
4 Migrating: 2016_09_04_100000_AlterTableIncidentsAddStickiedColumn
10 Migrated:  2016_09_04_100000_AlterTableIncidentsAddStickiedColumn
5 Migrating: 2016_10_24_183415_AlterTableIncidentsAddOccurredAtColumn
10 Migrated:  2016_10_24_183415_AlterTableIncidentsAddOccurredAtColumn
6 Migrating: 2016_10_30_174400_CreateSchedulesTable
10 Migrated:  2016_10_30_174400_CreateSchedulesTable
7 Migrating: 2016_10_30_174410_CreateScheduleComponentsTable
10 Migrated:  2016_10_30_174410_CreateScheduleComponentsTable
8 Migrating: 2016_10_30_182324_AlterTableIncidentsRemoveScheduledColumns
10 Migrated:  2016_10_30_182324_AlterTableIncidentsRemoveScheduledColumns
9 Migrating: 2016_12_04_163502_AlterTableMetricsAddVisibleColumn
11 Migrated:  2016_12_04_163502_AlterTableMetricsAddVisibleColumn
0 Migrating: 2016_12_05_185045_AlterTableComponentsAddMetaColumn
11 Migrated:  2016_12_05_185045_AlterTableComponentsAddMetaColumn
1 Migrating:
11 2016_12_29_124643_AlterTableSubscribersAddPhoneNumberSlackColumns
2 Migrated:  2016_12_29_124643_AlterTableSubscribersAddPhoneNumberSlackCol
11 umns
3 Migrating: 2016_12_29_155956_AlterTableComponentsMakeLinkNullable
11 Migrated:  2016_12_29_155956_AlterTableComponentsMakeLinkNullable
4 Migrating: 2017_01_03_143916_create_notifications_table
11 Migrated:  2017_01_03_143916_create_notifications_table
5 Migrating: 2017_02_03_222218_CreateActionsTable
11 Migrated:  2017_02_03_222218_CreateActionsTable
6 Migrating: 2017_06_13_181049_CreateMetaTable
11 Migrated:  2017_06_13_181049_CreateMetaTable
7 Migrating: 2017_07_18_214718_CreateIncidentComponents
11 Migrated:  2017_07_18_214718_CreateIncidentComponents
8 Migrating: 2017_09_14_180434_AlterIncidentsAddUserId
11 Migrated:  2017_09_14_180434_AlterIncidentsAddUserId
9 Migrating: 2018_04_02_163328_CreateTaggablesTable
12 Migrated:  2018_04_02_163328_CreateTaggablesTable
0 Migrating: 2018_04_02_163658_MigrateComponentTagTable
12 Migrated:  2018_04_02_163658_MigrateComponentTagTable
1 Migrating: 2018_06_14_201440_AlterSchedulesSoftDeletes
12 Migrated:  2018_06_14_201440_AlterSchedulesSoftDeletes
2 Migrating: 2018_06_17_182507_AlterIncidentsAddNotifications
12 Migrated:  2018_06_17_182507_AlterIncidentsAddNotifications
3 Migrating: 2019_12_12_131400_AlterJobsDropReserved
12 Migrated:  2019_12_12_131400_AlterJobsDropReserved
4 Database seeding completed successfully.
12 Clearing cache...
5 Application cache cleared!
12 Cache cleared!
6 The [public/storage] directory has been linked.
12
7 Cachet is installed
12
8
12
9
13
0
13
1
13
2
13
3
13
4
13
5
13
6
13
7
13
8
13
9
14
0
14
1

Acredito que esteja criando para rodalo em um domínio virtual, então segue um
exemplo:

# vim /etc/apache2/sites-availab

1 # vim /etc/apache2/sites-available/cachet.conf
<virtualhost *:80>
ServerName status.remon
ServerAlias cachet.remont
ServerAdmin noc@remont

1
2
<virtualhost *:80>
3
        ServerName status.remontti.com.br
4
        ServerAlias cachet.remontti.com.br
5
        ServerAdmin noc@remontti.com.br
6
        DocumentRoot /var/www/cachet/public
7
        <directory /var/www/cachet/public/ >
8
                Options FollowSymLinks
9
                AllowOverride All
10
        </directory>
11
        LogLevel warn
12
        ErrorLog ${APACHE_LOG_DIR}/error_cachet.log
13
        CustomLog ${APACHE_LOG_DIR}/access_cachet.log combined
14
</virtualhost>
15
16

Habilite as configurações

# a2ensite cachet

1 # a2ensite cachet

Caso irá roda-lo em um IP edite as configurações default, se fez da forma acima pode
pular esta parte.
# vim /etc/apache2/sites-availab

1 # vim /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@loc
DocumentRoot /var/www/cac
<directory /var/www/cachet/p

1 <VirtualHost *:80>
2     ServerAdmin webmaster@localhost
3     DocumentRoot /var/www/cachet/public
4     <directory /var/www/cachet/public/ >
5         Options FollowSymLinks
6         AllowOverride All
7     </directory>
8     ErrorLog ${APACHE_LOG_DIR}/error.log
9     CustomLog ${APACHE_LOG_DIR}/access.log combined
10 </VirtualHost>

Ativaremos o mod de rescrita, ajustaremos as permissões do diretório para www-data e


reiniciaremos o serviço apache2.

# a2enmod rewrite
# chown www-data. /var/www/ca
# systemctl restart apache2

1 # a2enmod rewrite
2 # chown www-data. /var/www/cachet -R
3 # systemctl restart apache2

Agora acesse “http://status.remontti.com.br/setup” para concluir a instalação


Para acessar sua Dashboard
http://status.remontti.com.br/dashboard
http://ou_seu_ip/dashboard

E em sua home você tem a página de status.


http://status.remontti.com.br
http://ou_seu_ip/
Para deixar mais profissional instale o Let’s Encrypt para assinar seu domínio.

Espero que tenha gostado!

Se quiser fazer uma doação para o café ficarei muito feliz pelo seu
reconhecimento!

Participe do canal no telegram para ficar atualizado sempre que publicar um novo
tutorial.

Se não puder doar pode deixar seu agradecimento nos comentário também ficarei feliz
em saber que ajudei. Se tiver qualquer pergunta deixe-a também. Se preferir entrar em
Contato clique aqui.
Fontes
https://docs.cachethq.io/
https://github.com/CachetHQ/Cachet

Você também pode gostar