Perform a rundown test. That will tell you the real runtime of your battery, not the theoretical runtime. It will switch the load over to battery, and run until the remaining runtime or battery charge reaches the minimum allowed value, at which point it will switch back to mains power and recharge the battery.
You shouldn't have any downtime from this, ...
In our experience there is nothing to choose between apcupsd and NUT in 'stability'.
I assume that the comment 'if the UPS fail' means 'if the power has failed, we are on UPS, and the battery life is about to run out'.
This is based on running Proxmox for some years, with some opinion leavened with fact and experience.
Proxmox will clean shutdown all ...
On my RHEL6 and CentOS6 that is established by creating a symbolic link to VM XML description in /etc/libvirt/qemu/autostart/ :
ls -la /etc/libvirt/qemu/autostart/
drwxr-xr-x. 2 root root 4096 Dec 19 2012 .
drwx------. 4 root root 4096 Dec 21 08:50 ..
lrwxrwxrwx. 1 root root 29 Mar 3 2012 hosting2.xml -> ../hosting2.xml
lrwxrwxrwx. 1 root ...
To protect the average user, Windows 8(Server 2012) requires all hardware drivers have a digital signature before you can install them, making it more difficult to install malicious drivers.
You can use this driver which worked for me(Hyper-V 2012):
You can install it with:
pnputil -i -a apcupsd....
All you need is an SNMP client and the PowerNet MIB from APC and you can do what you want. At $oldjob, I had written a perl script that could switch/powercycle based on computer names, it was basically reading port mappings from a database and sending SNMP commands to the appropriate unit and took just a few hours to write.
You have to change LOTRANS and HITRANS parameters to some more reasonable values. Their meaning is simple: if wall voltage is in the range LOTRANS-HITRANS volts UPS tries to use autotransformator to keep output 130V and goes to the batteries otherwise.
By default LOTRANS and HITRANS are set to the 85V and 135V respectively. You have set them both to zeroes. ...
Check /var/log/messages for messages like "apcupsd: Failed to get a pseudo terminal: Permission denied". If you see these, it may be SELINUX blocking you. Try "setenforce 0" to temporarily disable SELINUX and see if it works. If that solves the issue, you should see denied errors in /var/log/audit/audit.log.
Run "sudo yum install policycoreutils-python". ...
Assuming you have indeed found the root cause of your long shutdown, and your lack of care for data integrity on that specific filesystem, you should definitely try to do a umount -f.
However, I think it is unlikely to resolve your issue: umount -f will work around unresponsive NFS servers and open file handles, but it will still write buffered data to the ...
If the apcupsd scripts run as root then you should be able to just run the shutdown commands in the script using sudo:
/path/to/sudo -u vboxuser /path/to/shutdown-command args
(i.e., create a shell script which gets run by the apc daemon, and put all the sudo shutdown commands into it)
If the scripts don't run as root then you still may be able to use ...
Solved by creating a custom shell script and place it under /ect/apcupsd with the exact name of doshutdown which is triggered when a configured condition is met (either the remaining time of the battery or the remaining percentage - both based on the ups calculations) , the script contains my desired actions and if it ends with exit 0 so the shut down ...