PHP uptime monitor with laravel
PHP JavaScript Other
Latest commit 2acf6f4 Jun 18, 2016 @thelfensdrfer thelfensdrfer committed on GitHub Added license

README.md

SensioLabsInsight

This application monitors the uptime by making cURL requests to a defined set of websites and display the data in charts.

The only languages currently available are english and german. You can edit the language files in app/lang/[2_LETTER_COUNTRY_CODE]/*.php. Just copy the english/german translation and edit the files. Pull requests are welcomed.

Requirements

  • npm (node.js package manger)

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3

Configuration

In the future there might be an installer.

Set the environment variable APPLICATION_ENV to a value which is unequal testing, e.g. development or production. Create the folder app/config/[APPLICATION_ENV]. All config files in this directory will be merged with the config files in app/config. The most important files are database.php and app.php which should similar to this:

<?php

// app/config/[APPLICATION_ENV]/database.php
return array(
    'connections' => array(
        'app' => array(
            'driver'    => 'mysql',
            'host'      => 'localhost',
            'database'  => 'ping_database',
            'username'  => 'ping_database_user',
            'password'  => 'ping_database_user_password',
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => 'ping_',
        ),
    ),
);
<?php

// app/config/[APPLICATION_ENV]/app.php
return array(
    'format' => array(
        'datetime' => 'd/m/Y H:i', // see http://php.net/date
    ),
    'url' => 'http://127.0.0.1/ping/public',
    'locale' => 'en',
    'timezone' => 'Europe/Berlin',
    'key' => '' // 32 random alphanumeric chars
);

For a normal installation you should create an auth.php which will create a admin after installation:

<?php

// app/config/[APPLICATION_ENV]/auth.php
return array(
    'default' => array(
        'email' => 'email@example.com',
        'password' => '123456',
    ),
);

Installation

  1. Clone the repository
  2. Create your config
  3. php artisan migrate --package=cartalyst/sentry
  4. php artisan migrate
  5. grunt build
  6. visit http://url-to-repository/public

ToDo

  • Dashboard!
  • Search in body for string when checking uptime
  • Fix translation issues
  • Unit Tests

Contributors, Credits and libraries