Instalando o Cachet um sistema de página de status open source

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
# apt install wget apache2 apache2-utils libapache2-mod-php \
php php-mysql php-cli php-pear php-gmp php-gd php-bcmath \
php-mbstring php-curl php-xml php-zip php-apcu php-fpm \
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

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=PASSWORD('SENHA_ROOT') WHERE User='root';
UPDATE user SET plugin="mysql_native_password";

CREATE DATABASE cachet;
GRANT ALL ON cachet.* TO 'cachet' IDENTIFIED BY 'SUA_SENHA_CACHET';
FLUSH PRIVILEGES;
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/installer -O installer.php
# php installer.php
All settings correct for using Composer
Downloading...

Composer (version 2.0.9) successfully installed to: /tmp/composer.phar
Use it: php composer.phar
# mv composer.phar /usr/bin/composer
# composer --version
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Composer version 2.0.9 2021-01-27 16:09:27

Vamos propriamente então ao projeto Cachet

# wget https://github.com/CachetHQ/Cachet/archive/2.4.zip
# unzip 2.4.zip -d /var/www/
# mv /var/www/Cachet-2.4/ /var/www/cachet
# cp /var/www/cachet/.env.example /var/www/cachet/.env
# 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

Para

DB_USERNAME=cachet
DB_PASSWORD=SUA_SENHA_CACHET
# cd /var/www/cachet
# composer install --no-dev -o
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 97 installs, 0 updates, 0 removals
- Downloading kylekatarnls/update-helper (1.2.1)
- Downloading symfony/polyfill-ctype (v1.18.0)
- Downloading vlucas/phpdotenv (v2.6.6)
- Downloading symfony/css-selector (v4.4.11)
- Downloading tijsverkoyen/css-to-inline-styles (2.2.3)
- Downloading symfony/polyfill-php80 (v1.18.0)
- Downloading symfony/polyfill-php72 (v1.18.0)
- Downloading symfony/var-dumper (v4.4.11)
- Downloading symfony/routing (v4.4.11)
- Downloading symfony/process (v4.4.11)
- Downloading symfony/polyfill-php73 (v1.18.0)
- Downloading symfony/polyfill-php70 (v1.18.0)
- Downloading symfony/polyfill-intl-normalizer (v1.18.0)
- Downloading symfony/polyfill-intl-idn (v1.18.0)
- Downloading symfony/mime (v4.4.11)
- Downloading symfony/http-foundation (v4.4.11)
- Downloading symfony/event-dispatcher-contracts (v1.1.9)
- Downloading symfony/event-dispatcher (v4.4.11)
- Downloading psr/log (1.1.3)
- Downloading symfony/debug (v4.4.11)
- Downloading symfony/error-handler (v4.4.11)
- Downloading symfony/http-kernel (v4.4.11)
- Downloading symfony/finder (v4.4.11)
- Downloading psr/container (1.0.0)
- Downloading symfony/service-contracts (v1.1.9)
- Downloading symfony/console (v4.4.11)
- Downloading symfony/polyfill-iconv (v1.18.0)
- Downloading doctrine/lexer (1.0.2)
- Downloading egulias/email-validator (2.1.18)
- Downloading swiftmailer/swiftmailer (v6.2.3)
- Downloading ramsey/uuid (3.9.3)
- Downloading psr/simple-cache (1.0.1)
- Downloading opis/closure (3.5.5)
- Downloading symfony/translation-contracts (v1.1.9)
- Downloading symfony/translation (v4.4.11)
- Downloading nesbot/carbon (1.39.1)
- Downloading monolog/monolog (1.25.5)
- Downloading league/flysystem (1.0.70)
- Downloading ralouphie/getallheaders (3.0.3)
- Downloading psr/http-message (1.0.1)
- Downloading guzzlehttp/psr7 (1.6.1)
- Downloading guzzlehttp/promises (v1.3.1)
- Downloading guzzlehttp/guzzle (6.5.5)
- Downloading laravel/slack-notification-channel (v1.0.3)
- Downloading php-http/promise (1.1.0)
- Downloading php-http/httplug (v1.1.0)
- Downloading php-http/guzzle6-adapter (v1.1.1)
- Downloading psr/http-factory (1.0.1)
- Downloading zendframework/zend-diactoros (2.2.1)
- Downloading lcobucci/jwt (3.3.2)
- Downloading nexmo/client-core (1.8.1)
- Downloading nexmo/client (1.9.1)
- Downloading laravel/nexmo-notification-channel (v1.0.1)
- Downloading erusev/parsedown (1.7.4)
- Downloading dragonmantank/cron-expression (v2.3.0)
- Downloading doctrine/inflector (1.3.1)
- Downloading laravel/framework (v5.7.29)
- Downloading alt-three/badger (v5.1.0)
- Downloading alt-three/bus (v4.5.0)
- Downloading league/commonmark (0.18.5)
- Downloading graham-campbell/guzzle-factory (v3.0.4)
- Downloading alt-three/emoji (v7.0.0)
- Downloading alt-three/twitter (v3.1.0)
- Downloading alt-three/validator (v4.5.0)
- Downloading mtdowling/jmespath.php (2.6.0)
- Downloading aws/aws-sdk-php (3.147.10)
- Downloading asm89/stack-cors (1.3.0)
- Downloading barryvdh/laravel-cors (v0.11.4)
- Downloading composer/ca-bundle (1.2.7)
- Downloading bugsnag/bugsnag (v3.21.0)
- Downloading bugsnag/bugsnag-psr-logger (v1.4.3)
- Downloading bugsnag/bugsnag-laravel (v2.19.0)
- Downloading chillerlan/php-traits (1.1.13)
- Downloading chillerlan/php-qrcode (2.0.8)
- Downloading doctrine/event-manager (1.1.0)
- Downloading doctrine/cache (1.10.2)
- Downloading doctrine/dbal (v2.9.3)
- Downloading fideloper/proxy (4.4.0)
- Downloading graham-campbell/security-core (v1.0.3)
- Downloading graham-campbell/security (v6.2.0)
- Downloading graham-campbell/binput (v6.2.0)
- Downloading graham-campbell/exceptions (v11.3.0)
- Downloading graham-campbell/markdown (v10.3.1)
- Downloading jakub-onderka/php-console-color (v0.2)
- Downloading jenssegers/date (v3.5.0)
- Downloading nikic/php-parser (v4.7.0)
- Downloading jakub-onderka/php-console-highlighter (v0.4)
- Downloading dnoegel/php-xdg-base-dir (v0.1.1)
- Downloading psy/psysh (v0.9.12)
- Downloading laravel/tinker (v1.0.10)
- Downloading mccool/laravel-auto-presenter (7.4.1)
- Downloading symfony/polyfill-util (v1.18.0)
- Downloading symfony/polyfill-php56 (v1.18.0)
- Downloading paragonie/constant_time_encoding (v2.3.0)
- Downloading pragmarx/google2fa (v5.0.0)
- Downloading predis/predis (v1.1.1)
- Downloading twig/twig (v2.13.0)
- Installing kylekatarnls/update-helper (1.2.1): Extracting archive
- Installing symfony/polyfill-ctype (v1.18.0): Extracting archive
- Installing vlucas/phpdotenv (v2.6.6): Extracting archive
- Installing symfony/css-selector (v4.4.11): Extracting archive
- Installing tijsverkoyen/css-to-inline-styles (2.2.3): Extracting archive
- Installing symfony/polyfill-php80 (v1.18.0): Extracting archive
- Installing symfony/polyfill-php72 (v1.18.0): Extracting archive
- Installing symfony/var-dumper (v4.4.11): Extracting archive
- Installing symfony/routing (v4.4.11): Extracting archive
- Installing symfony/process (v4.4.11): Extracting archive
- Installing symfony/polyfill-php73 (v1.18.0): Extracting archive
- Installing symfony/polyfill-php70 (v1.18.0): Extracting archive
- Installing symfony/polyfill-intl-normalizer (v1.18.0): Extracting archive
- Installing symfony/polyfill-intl-idn (v1.18.0): Extracting archive
- Installing symfony/mime (v4.4.11): Extracting archive
- Installing symfony/http-foundation (v4.4.11): Extracting archive
- Installing symfony/event-dispatcher-contracts (v1.1.9): Extracting archive
- Installing symfony/event-dispatcher (v4.4.11): Extracting archive
- Installing psr/log (1.1.3): Extracting archive
- Installing symfony/debug (v4.4.11): Extracting archive
- Installing symfony/error-handler (v4.4.11): Extracting archive
- Installing symfony/http-kernel (v4.4.11): Extracting archive
- Installing symfony/finder (v4.4.11): Extracting archive
- Installing psr/container (1.0.0): Extracting archive
- Installing symfony/service-contracts (v1.1.9): Extracting archive
- Installing symfony/console (v4.4.11): Extracting archive
- Installing symfony/polyfill-iconv (v1.18.0): Extracting archive
- Installing doctrine/lexer (1.0.2): Extracting archive
- Installing egulias/email-validator (2.1.18): Extracting archive
- Installing swiftmailer/swiftmailer (v6.2.3): Extracting archive
- Installing ramsey/uuid (3.9.3): Extracting archive
- Installing psr/simple-cache (1.0.1): Extracting archive
- Installing opis/closure (3.5.5): Extracting archive
- Installing symfony/translation-contracts (v1.1.9): Extracting archive
- Installing symfony/translation (v4.4.11): Extracting archive
- Installing nesbot/carbon (1.39.1): Extracting archive
- Installing monolog/monolog (1.25.5): Extracting archive
- Installing league/flysystem (1.0.70): Extracting archive
- Installing ralouphie/getallheaders (3.0.3): Extracting archive
- Installing psr/http-message (1.0.1): Extracting archive
- Installing guzzlehttp/psr7 (1.6.1): Extracting archive
- Installing guzzlehttp/promises (v1.3.1): Extracting archive
- Installing guzzlehttp/guzzle (6.5.5): Extracting archive
- Installing laravel/slack-notification-channel (v1.0.3): Extracting archive
- Installing php-http/promise (1.1.0): Extracting archive
- Installing php-http/httplug (v1.1.0): Extracting archive
- Installing php-http/guzzle6-adapter (v1.1.1): Extracting archive
- Installing psr/http-factory (1.0.1): Extracting archive
- Installing zendframework/zend-diactoros (2.2.1): Extracting archive
- Installing lcobucci/jwt (3.3.2): Extracting archive
- Installing nexmo/client-core (1.8.1): Extracting archive
- Installing nexmo/client (1.9.1): Extracting archive
- Installing laravel/nexmo-notification-channel (v1.0.1): Extracting archive
- Installing erusev/parsedown (1.7.4): Extracting archive
- Installing dragonmantank/cron-expression (v2.3.0): Extracting archive
- Installing doctrine/inflector (1.3.1): Extracting archive
- Installing laravel/framework (v5.7.29): Extracting archive
- Installing alt-three/badger (v5.1.0): Extracting archive
- Installing alt-three/bus (v4.5.0): Extracting archive
- Installing league/commonmark (0.18.5): Extracting archive
- Installing graham-campbell/guzzle-factory (v3.0.4): Extracting archive
- Installing alt-three/emoji (v7.0.0): Extracting archive
- Installing alt-three/twitter (v3.1.0): Extracting archive
- Installing alt-three/validator (v4.5.0): Extracting archive
- Installing mtdowling/jmespath.php (2.6.0): Extracting archive
- Installing aws/aws-sdk-php (3.147.10): Extracting archive
- Installing asm89/stack-cors (1.3.0): Extracting archive
- Installing barryvdh/laravel-cors (v0.11.4): Extracting archive
- Installing composer/ca-bundle (1.2.7): Extracting archive
- Installing bugsnag/bugsnag (v3.21.0): Extracting archive
- Installing bugsnag/bugsnag-psr-logger (v1.4.3): Extracting archive
- Installing bugsnag/bugsnag-laravel (v2.19.0): Extracting archive
- Installing chillerlan/php-traits (1.1.13): Extracting archive
- Installing chillerlan/php-qrcode (2.0.8): Extracting archive
- Installing doctrine/event-manager (1.1.0): Extracting archive
- Installing doctrine/cache (1.10.2): Extracting archive
- Installing doctrine/dbal (v2.9.3): Extracting archive
- Installing fideloper/proxy (4.4.0): Extracting archive
- Installing graham-campbell/security-core (v1.0.3): Extracting archive
- Installing graham-campbell/security (v6.2.0): Extracting archive
- Installing graham-campbell/binput (v6.2.0): Extracting archive
- Installing graham-campbell/exceptions (v11.3.0): Extracting archive
- Installing graham-campbell/markdown (v10.3.1): Extracting archive
- Installing jakub-onderka/php-console-color (v0.2): Extracting archive
- Installing jenssegers/date (v3.5.0): Extracting archive
- 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
- Installing symfony/polyfill-util (v1.18.0): Extracting archive
- Installing symfony/polyfill-php56 (v1.18.0): Extracting archive
- Installing paragonie/constant_time_encoding (v2.3.0): Extracting archive
- Installing pragmarx/google2fa (v5.0.0): Extracting archive
- Installing predis/predis (v1.1.1): Extracting archive
- Installing twig/twig (v2.13.0): Extracting archive
Package alt-three/badger is abandoned, you should avoid using it. Use cachethq/badger instead.
Package alt-three/emoji is abandoned, you should avoid using it. Use cachethq/emoji instead.
Package alt-three/twitter is abandoned, you should avoid using it. Use cachethq/twitter instead.
Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead.                                                                                                           
Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead.                                                                                               
Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use laminas/laminas-diactoros instead.
Generating optimized autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
Discovered Package: alt-three/badger
Discovered Package: alt-three/emoji
Discovered Package: alt-three/twitter
Discovered Package: barryvdh/laravel-cors
Discovered Package: fideloper/proxy
Discovered Package: graham-campbell/binput
Discovered Package: graham-campbell/exceptions
Discovered Package: graham-campbell/markdown
Discovered Package: graham-campbell/security
Discovered Package: jenssegers/date
Discovered Package: laravel/nexmo-notification-channel
Discovered Package: laravel/slack-notification-channel
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
Application key set successfully.
# php artisan cachet:install
Do you want to configure Cachet before installing? (yes/no) [no]:
> no
Installing Cachet...
Clearing settings cache...
Settings cache cleared!
System was installed!
**************************************
*     Application In Production!     *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> no
Command Cancelled!
Configuration cache cleared!
Configuration cached successfully!
Route cache cleared!
Routes cached successfully!
Copied Directory [/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views] To [/resources/views/errors]
Copied Directory [/vendor/laravel/framework/src/Illuminate/Notifications/resources/views] To [/resources/views/vendor/notifications]                                                                                                        
Copied Directory [/vendor/laravel/framework/src/Illuminate/Pagination/resources/views] To [/resources/views/vendor/pagination]                                                                                                              
Copied Directory [/vendor/laravel/framework/src/Illuminate/Mail/resources/views] To [/resources/views/vendor/mail]
Publishing complete.
Migration table created successfully.
Migrating: 2015_01_05_201324_CreateComponentGroupsTable
Migrated:  2015_01_05_201324_CreateComponentGroupsTable
Migrating: 2015_01_05_201444_CreateComponentsTable
Migrated:  2015_01_05_201444_CreateComponentsTable
Migrating: 2015_01_05_202446_CreateIncidentTemplatesTable
Migrated:  2015_01_05_202446_CreateIncidentTemplatesTable
Migrating: 2015_01_05_202609_CreateIncidentsTable
Migrated:  2015_01_05_202609_CreateIncidentsTable
Migrating: 2015_01_05_202730_CreateMetricPointsTable
Migrated:  2015_01_05_202730_CreateMetricPointsTable
Migrating: 2015_01_05_202826_CreateMetricsTable
Migrated:  2015_01_05_202826_CreateMetricsTable
Migrating: 2015_01_05_203014_CreateSettingsTable
Migrated:  2015_01_05_203014_CreateSettingsTable
Migrating: 2015_01_05_203235_CreateSubscribersTable
Migrated:  2015_01_05_203235_CreateSubscribersTable
Migrating: 2015_01_05_203341_CreateUsersTable
Migrated:  2015_01_05_203341_CreateUsersTable
Migrating: 2015_01_09_083419_AlterTableUsersAdd2FA
Migrated:  2015_01_09_083419_AlterTableUsersAdd2FA
Migrating: 2015_01_16_083825_CreateTagsTable
Migrated:  2015_01_16_083825_CreateTagsTable
Migrating: 2015_01_16_084030_CreateComponentTagTable
Migrated:  2015_01_16_084030_CreateComponentTagTable
Migrating: 2015_02_28_214642_UpdateIncidentsAddScheduledAt
Migrated:  2015_02_28_214642_UpdateIncidentsAddScheduledAt
Migrating: 2015_05_19_214534_AlterTableComponentGroupsAddOrder
Migrated:  2015_05_19_214534_AlterTableComponentGroupsAddOrder
Migrating: 2015_05_20_073041_AlterTableIncidentsAddVisibileColumn
Migrated:  2015_05_20_073041_AlterTableIncidentsAddVisibileColumn
Migrating: 2015_05_24_210939_create_jobs_table
Migrated:  2015_05_24_210939_create_jobs_table
Migrating: 2015_05_24_210948_create_failed_jobs_table
Migrated:  2015_05_24_210948_create_failed_jobs_table
Migrating: 2015_06_10_122216_AlterTableComponentsDropUserIdColumn
Migrated:  2015_06_10_122216_AlterTableComponentsDropUserIdColumn
Migrating: 2015_06_10_122229_AlterTableIncidentsDropUserIdColumn
Migrated:  2015_06_10_122229_AlterTableIncidentsDropUserIdColumn
Migrating: 2015_08_02_120436_AlterTableSubscribersRemoveDeletedAt
Migrated:  2015_08_02_120436_AlterTableSubscribersRemoveDeletedAt
Migrating: 2015_08_13_214123_AlterTableMetricsAddDecimalPlacesColumn
Migrated:  2015_08_13_214123_AlterTableMetricsAddDecimalPlacesColumn
Migrating: 2015_10_31_211944_CreateInvitesTable
Migrated:  2015_10_31_211944_CreateInvitesTable
Migrating: 2015_11_03_211049_AlterTableComponentsAddEnabledColumn
Migrated:  2015_11_03_211049_AlterTableComponentsAddEnabledColumn
Migrating: 2015_12_26_162258_AlterTableMetricsAddDefaultViewColumn
Migrated:  2015_12_26_162258_AlterTableMetricsAddDefaultViewColumn
Migrating: 2016_01_09_141852_CreateSubscriptionsTable
Migrated:  2016_01_09_141852_CreateSubscriptionsTable
Migrating: 2016_01_29_154937_AlterTableComponentGroupsAddCollapsedColumn
Migrated:  2016_01_29_154937_AlterTableComponentGroupsAddCollapsedColumn
Migrating: 2016_02_18_085210_AlterTableMetricPointsChangeValueColumn
Migrated:  2016_02_18_085210_AlterTableMetricPointsChangeValueColumn
Migrating: 2016_03_01_174858_AlterTableMetricPointsAddCounterColumn
Migrated:  2016_03_01_174858_AlterTableMetricPointsAddCounterColumn
Migrating: 2016_03_08_125729_CreateIncidentUpdatesTable
Migrated:  2016_03_08_125729_CreateIncidentUpdatesTable
Migrating: 2016_03_10_144613_AlterTableComponentGroupsMakeColumnInteger
Migrated:  2016_03_10_144613_AlterTableComponentGroupsMakeColumnInteger
Migrating: 2016_04_05_142933_create_sessions_table
Migrated:  2016_04_05_142933_create_sessions_table
Migrating: 2016_04_29_061916_AlterTableSubscribersAddGlobalColumn
Migrated:  2016_04_29_061916_AlterTableSubscribersAddGlobalColumn
Migrating: 2016_06_02_075012_AlterTableMetricsAddOrderColumn
Migrated:  2016_06_02_075012_AlterTableMetricsAddOrderColumn
Migrating: 2016_06_05_091615_create_cache_table
Migrated:  2016_06_05_091615_create_cache_table
Migrating: 2016_07_25_052444_AlterTableComponentGroupsAddVisibleColumn
Migrated:  2016_07_25_052444_AlterTableComponentGroupsAddVisibleColumn
Migrating: 2016_08_23_114610_AlterTableUsersAddWelcomedColumn
Migrated:  2016_08_23_114610_AlterTableUsersAddWelcomedColumn
Migrating: 2016_09_04_100000_AlterTableIncidentsAddStickiedColumn
Migrated:  2016_09_04_100000_AlterTableIncidentsAddStickiedColumn
Migrating: 2016_10_24_183415_AlterTableIncidentsAddOccurredAtColumn
Migrated:  2016_10_24_183415_AlterTableIncidentsAddOccurredAtColumn
Migrating: 2016_10_30_174400_CreateSchedulesTable
Migrated:  2016_10_30_174400_CreateSchedulesTable
Migrating: 2016_10_30_174410_CreateScheduleComponentsTable
Migrated:  2016_10_30_174410_CreateScheduleComponentsTable
Migrating: 2016_10_30_182324_AlterTableIncidentsRemoveScheduledColumns
Migrated:  2016_10_30_182324_AlterTableIncidentsRemoveScheduledColumns
Migrating: 2016_12_04_163502_AlterTableMetricsAddVisibleColumn
Migrated:  2016_12_04_163502_AlterTableMetricsAddVisibleColumn
Migrating: 2016_12_05_185045_AlterTableComponentsAddMetaColumn
Migrated:  2016_12_05_185045_AlterTableComponentsAddMetaColumn
Migrating: 2016_12_29_124643_AlterTableSubscribersAddPhoneNumberSlackColumns
Migrated:  2016_12_29_124643_AlterTableSubscribersAddPhoneNumberSlackColumns
Migrating: 2016_12_29_155956_AlterTableComponentsMakeLinkNullable
Migrated:  2016_12_29_155956_AlterTableComponentsMakeLinkNullable
Migrating: 2017_01_03_143916_create_notifications_table
Migrated:  2017_01_03_143916_create_notifications_table
Migrating: 2017_02_03_222218_CreateActionsTable
Migrated:  2017_02_03_222218_CreateActionsTable
Migrating: 2017_06_13_181049_CreateMetaTable
Migrated:  2017_06_13_181049_CreateMetaTable
Migrating: 2017_07_18_214718_CreateIncidentComponents
Migrated:  2017_07_18_214718_CreateIncidentComponents
Migrating: 2017_09_14_180434_AlterIncidentsAddUserId
Migrated:  2017_09_14_180434_AlterIncidentsAddUserId
Migrating: 2018_04_02_163328_CreateTaggablesTable
Migrated:  2018_04_02_163328_CreateTaggablesTable
Migrating: 2018_04_02_163658_MigrateComponentTagTable
Migrated:  2018_04_02_163658_MigrateComponentTagTable
Migrating: 2018_06_14_201440_AlterSchedulesSoftDeletes
Migrated:  2018_06_14_201440_AlterSchedulesSoftDeletes
Migrating: 2018_06_17_182507_AlterIncidentsAddNotifications
Migrated:  2018_06_17_182507_AlterIncidentsAddNotifications
Migrating: 2019_12_12_131400_AlterJobsDropReserved
Migrated:  2019_12_12_131400_AlterJobsDropReserved
Database seeding completed successfully.
Clearing cache...
Application cache cleared!
Cache cleared!
The [public/storage] directory has been linked.
Cachet is installed ⚡

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

# vim /etc/apache2/sites-available/cachet.conf
<virtualhost *:80>
ServerName status.remontti.com.br
ServerAlias cachet.remontti.com.br
ServerAdmin noc@remontti.com.br
DocumentRoot /var/www/cachet/public
<directory /var/www/cachet/public/ >
Options FollowSymLinks
AllowOverride All
</directory> 
LogLevel warn 
ErrorLog ${APACHE_LOG_DIR}/error_cachet.log
CustomLog ${APACHE_LOG_DIR}/access_cachet.log combined
</virtualhost>

Habilite as configurações

# 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-available/000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/cachet/public
<directory /var/www/cachet/public/ >
Options FollowSymLinks
AllowOverride All
</directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</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/cachet -R
# 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

Rudimar Remontti

Trabalho atualmente como Gerente de Redes em um Provedor de Internet no Rio Grande do Sul.

Você pode gostar...

7 Resultados

  1. Daniel disse:

    Estou com bastante dificuldade pra fazer o cachet mandar email, sempre da erro na pagina, da erro 500 e o email nao sai

  2. John disse:

    É possivel integrar com alguma ferramenta de checagem? por exemplo um simple check ( ping ou url ) para ficar automatico o status dos componentes?

  3. Jean Kunsler disse:

    Muito top o material, meus parabéns, todos os teus manuais sempre me ajudam muito!

  4. Duh Batista disse:

    O Cachet não tem variáveis de permissão para um usuário “comum” 90% dos recursos Administrador pode ser usado pelo um usuário qualquer.
    Apenas um observação.

  5. Duh Batista disse:

    Muito bom, tempo dedicado sempre será recompensado !

    Alguém consegui remover o nome de Dashboard (link )do rodapé para que o cliente não fique clicando para não alcançar a pagina de login ?

  6. Muito obrigado por atender meu pedido Rudmar.
    Trabalho lindo, nao sei nem como agradecer instalação feita com sucesso.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *