Script that make simple system monitoring and make html page.
The need for monitoring a VPS made me create this script; It monitors the following items that I think are important:
- System info: distribuition, kernel, total packages, Uptime
- Ports services [open] or [down]
- Disk usage
- Packages: Installed, removed and updated (today)
- Top 10 logs size
Every script is executed and outputs to a '.html file', which you can view in your local network or even over the internet. For internet viewing it is recommended authentication by apache or nginx.
Replicant does not work with more than one server, it was created this way for simple monitoring. Maybe in the future we can add support for monitoring more than one server
git clone https://github.com/slackjeff/replicant/
cd replicant && chmod u+x replicant
sudo cp replicant /usr/local/bin/
mkdir -v /var/www/html/replicant
* * * * * /usr/local/bin/replicant > /var/www/html/index.html
sudo apt-get install apache2-utils
htpasswd -B -c /etc/apache2/.htpasswd YourUsername
<Directory "/var/www/html/replicant/"> AuthType Basic AuthName "Restricted Content" AuthUserFile /etc/apache2/.htpasswd Require valid-user </Directory>