Proxmox VM auto start VM after found in shutdown state Rumi, July 30, 2021July 30, 2021 I was having this strange issue, where a running busy VM stopeed all of a sudden due to high CPU or Memory overload issue. So manually had to start everythime. In order to avoid this, created a small script to start the VM in case if it’s down. #!/bin/bash # Set environment PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin su - if [[ $(qm status 101) = *"status: stopped"* ]]; then echo `qm start 101` fi Related Proxmox Scripts Proxmox
Nagios- Memory Check Plugin January 6, 2013January 6, 2013 Dave the below code as check_mem.sh using nano and chmod it to +x. (file to be saved inside nagios libexec- such as /usr/local/nagios/libexec/check_mem.sh Related Read More
Extreme slow internet speed pfsense over proxmox February 16, 2023 For a qemu proxmox guest PFSense acts weriedly with the network speed- it gets extremely slow. So her goes the little tweaks that worked for me- First, I chose Intel E1000 Interfaces instead VirtIO. Second, in the PFSense webconsole- In pfSense GUI, System > Advanced > Networking > Tick on-… Read More
PHPSysinfo CentOS 7 Installer Script January 23, 2024 Intended to to deploy on a barebone fresh CentOS installation with Apache and PHP- !#/bin/sh ################################################# # Server Configuration for Centos 6.8 Final # # Don’t use port 7071 # Updated by Rumi- hasan@servermart.net # ################################################# ## updating packages sudo yum update -y ## installing dependencies sudo yum install unzip… Read More
You can put the script anywhere with the executable permission. What I did later to add it on the cron to check the status in every 5 mins. Reply
To launch automatically you must add with the crontab -e : * * * * * bash [the name of the directory where your script is] example bash /usr/local/sbin/[name of the script] Reply