Skip to content

maxiv/router-pulse

Repository files navigation

Router Pulse

Router Pulse is a small system, written on Lumen, for remote monitoring router state and gathering statistic about Internet downtime. It support 2 provider monitoring. Script for Mikrotik routers is included.

Image alt

Image alt

Install

  1. Unpack archive or checkout from repository.

  2. cd router-pulse root directory

  3. Run Composer install:

    composer install

  4. Copy .env.example to .env and edit settings in this file.

  5. Create MySQL database, and configure connection in .env file

  6. Migrate database:

    php artisan migrate

  7. Configure your web-server DocumentRoot directory to router-pulse/public

  8. Add http auth in https://{YOUR-DOMAIN}/settings directory (optionality)

  9. Add script to scheduler in your router, it must every minute get url in format:

    https://{YOUR-DOMAIN}/ping?key={ROUTER_KEY}&isp1={ISP1-STATUS}&isp2={ISP2-STATUS}

Router scripts

Sample for Mikrotik: routers/mikrotik.txt

  1. Change config notifications in https://{YOUR-DOMAIN}/settings add telegram or(and) viber APIkey

Image alt

set webhook: https://{YOUR-DOMAIN}/telegram/sethook https://{YOUR-DOMAIN}/viber/sethook

  1. Send message to telegram or viber bot and get your id Insert id in https://{YOUR-DOMAIN}/settings Save changes

  2. Add to crontab "curl https://{YOUR-DOMAIN}/scheduler" for execution every minute

Viewing statistic

Current state is available at the page: http://{YOUR-DOMAIN}/ History for last 30 days available at the page: http://{YOUR-DOMAIN}/statistics

About

Router Pulse is a small system, written on Lumen, for remote monitoring router state and gathering statistic about Internet downtime.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published