10s Interval Port Monitoring
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.0+, 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)
- Limit of 20 Users for the Start, 10 Checks for each User
- Email notifications via local Mail function (relayed to MXRoute)
- Block the current Thread if the previous one is still Running
- Database Backend: PHP, MariaDB
- Frontend: HTML (Bootstrap 3 / Font Awesome)
QuickSetup:
- Create a User+DB, Import the content/sql/night-sky.sql
- Rename content/configs/config.example.php to config.php and regex.example.php to regex.php
- Update content/configs/config.php with your Database details and make SURE to change "Domain", otherwise Cookies wont work.
Make SURE to use a Domain with SSL enabled otherwise you will not get any cookies. - Put cron/night.php and cron/remote.php into Crontab to run every 60 seconds
- Deploy some Remote Servers and add them to the table remote.
You can find the files 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.