The app monitors your online services/devices and sends an email or SMS when any of them go online or offline
- Send SMS or email when device/service is online or offline
- Send only one notification till device status changes
- Supports multiple users
- Device/Service status report
- Uses PHP/MySQL (Sqlite, PostGres and MsSQL are coming soon)
- PHP >= 7.0
- MySQL database (Sqlite, PostGres and MsSQL are coming soon)
- Download/clone this repo to your server
cdinto the app and runcomposer install- Setup a virtual host on your server such that this app can be accessed with a url http://sub.domain.com
- Clone
.env.exampleto.envand change values to correspond with your setup environment - Visit http://sub.domain.com.
default credentials is
netmon:Security86
Note: If the app will be used on a local network, the virtual host should be setup on a unique port so the app can be accessed on http://ipaddress:port
- Install MySQL
- Create a database in MySQL
- Set
DB_CONNECTIONoption in.envtomysql - Create a database and save the information in
.env - Import
dev/data/scheme.sqlanddev/data/data.sqlinto your database
The file monitor.php is responsible for monitoring devices and saving the device status. This file should run every minute in order for the app to function properly. Follow your platform specific instructions to enable monitor.php to run every minute
-
Type
crontab -einto a command terminal -
Add the following line to your crontab
* * * * * cd {PATH/TO/THIS/FOLDER} && php monitor.php >> cron.logDo not forget to replace {PATH/TO/THIS/FOLDER} with the actual path on your computer
Not yet tested (Contributions are welcome)
- Support for multiple databases
- Email queuing (for reliability)
- Support for multiple SMTP servers (to ensure emails are sent)
- Run script when device/service goes online/offline (useful for restarting service, etc)