A dedicated server typically runs several background services or daemons. These may include but are not limited to your web server, database server, and mail server. All of these services need to be running 24/7 to keep them available for your users. When one of the services goes down, you need to know. Webmin has a built-in monitoring system that can alert you when one of them is not working.
To monitor services in Webmin, follow these steps:
- Login to Webmin using your administrative account
- Navigate to Others — System and Server Status
- If you see the service you want to monitor already listed, click on it. Otherwise, use “Add monitor of type” to add it
- Select number of failures before reporting (default is one)
- Check “Email” as notification method. It should use your system email address. If you want to use another, enter it on the next line
- Specify any commands you want to run if the service is down or comes back up
- Click “Save”
You should now have a working system monitor. Assuming you used the default Webmin installation, you can even monitor your web server, since Webmin runs on its own web server. For more information about system monitoring in Webmin, see the online documenation.