Scripts for managing Proxmox Virtual Environment
Original author: Tim West tim@greenmtnit.com
Copyright (C) 2021 Green Mountain IT Solutions, LLC info@greenmtnit.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Master script to configure other scripts.
This script runs some basic setup steps for Proxmox, including:
- Configuring updates
- Installs commonly used packages
- Configuring the MOTD
- Customizing the terminal
Configures sending emails using postfix.
Checks zpool capacity and sends an email alert if capacity exceeds a specifed threshold.
Sends an email alert when the system boots.
Configures fail2ban monitoring for SSH and the Proxmox GUI.
Configures disk health monitoring with the smartmontools smartd daemon
Backs up Proxmox config files. You must edit vars in this script manually. Adapted from https://github.com/DerDanilo/proxmox-stuff
General steps for use: -Make sure local backup directory exists and has proper permissions -"" remote directory -Set up auto-login SSH (SSH Keys) from backup source host to remote host -Set MAX_BACKUPS number to keep -Test run script -Schedule script to run with cron
Sends an alert if any one ZFS dataset is not mounted.