Skip to content

simon-india/Night-Sky

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Night-Sky

Now available in the Arctic Code vault!
10,20,30,60s Interval Port & HTTP(S) Monitoring, with WebHooks and/or email notifications.

Overview

All screenshots: https://imgur.com/a/Z8Dyo

Build Status

Night-Sky is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. You should have received a copy of the license along with this work. If not, see https://creativecommons.org/licenses/by-nc-sa/4.0/

  • PHP 7.2+, recommended is 7.3, using BackgroundProcess
  • Run a Slot every Second, each Slot can run multiple Processes, 5 Servers are assigned to each Process
  • Loadbalance the Monitoring requests over these Slots, 10 Slots per 10 Seconds, 1 Slot reserved for Offline Servers
  • If a Port is not reachable, move it to the Dedicated Offline Slot, move it back afterwards (planned)
  • Email notifications via local Mail function
  • Block the current Thread if the previous one is still Running
  • Backend: PHP, MariaDB
  • Frontend: Bootstrap 3, Font Awesome

QuickSetup:

  1. Create a User+DB, Import the content/sql/night-sky.sql.
  2. Rename content/configs/config.example.php to config.php and regex.example.php to regex.php.
  3. Configure content/configs/config.php:
  • _Domain needs to be updated to the Domain you want to use, otherwise Cookies wont work.
  • _mail_sender needs to be updated, to make contact work properly. The mails will get forwarded to the local mailserver.
  • Finally you need to update the Database part, with the Details you created the Database with.
  • Make sure to use TLS on your Domain otherwise cookies will not apply on Plain.
  • The rest can be edited on your needs.
  1. Put cron/night.php and cron/remote.php into Crontab to run every 60 seconds, use a non privileged user for that. => cron.example
  2. Deploy the file check.php on some remote servers and add them to the table remote.
  • You can find the file for that in content/remote/
  • The Field IP can be also contain a URL like "check.domain.com", make sure the Domain is reachable over TLS, plain wont work.
  • The Domain should not contain "https://" or "/check.php"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 52.9%
  • CSS 44.6%
  • TSQL 1.6%
  • Other 0.9%