This a Free Software created by us. This Shell Script to Monitor & Update Remote Servers From Your Mac or GNU/Linux Computer to check the Ram & Swap usage, Load average, Available updates. You can code contribute to the GitHub Repo of this script to monitor & update remote servers. This is more suitable for Cloud Servers, VPS than a dedicated server. For the dedicated servers, it is better not to be so much lazy. This script is for the Ubuntu servers.
A Shell Script to Monitor & Update Remote Servers : Anatomy
Previously, we distributed Bash Script to SSH and Update Ubuntu Server for HP Public Cloud. HP Public Cloud got closed. The current set of script has the codes from it.
The structure of the scripts is like this :
Executing the first script
ssh.sh can control the other scripts. You should be at the
Shell-Script-to-Monitor-Update-Remote-Server directory to run
ssh.sh script. However, you can directly run
u.sh respectively for monitoring and update. You can also use unix pipe with
monitor.sh, use cron from another server to send emails on change of certain parameter with cat, grep, cut etc basic unix tools.
The script is designed for
password based login to SSH. If you use key based authentication configured by you, you can also use this script. For Amazon like servers, you need to open and edit the script for the SSH command.
In the case you want to run only the
monitor.sh, you can use this command without the need to login to the remote server :
ssh username@ip_address 'export TERM=xterm && bash -s' < scripts/monitor.sh
You will get the result on desktop’s terminal.
A Shell Script to Monitor & Update Remote Servers : Download and Use
Here is the GitHub repo of Shell Script to Monitor Update Remote-Server. Here is a pictorial representation of the script on usage :
Check the source code on GitHub and update by sending pull request if needed.