Hi,
I've got a APC SmartUPS-1000 a few days ago to protect my Serverrack with 1 Fileserver and 1 Proxmox Host (2 in the furure).
At the first i tried to use nut, because its included in Openfiler which is my Filserver Distribution, but I didn't get it working.
I'm useing apcupsd on the Proxmox host now, and its almost working. I adapted the apccontrol to log onto the fileserver via ssh (as root) and do "shutdown -h 5" which is working, and then shutdown Proxmox with "shutdown -h now" or "/sbin/shutdown -h now" but both versions aren't working. If i type the cmd or start the script manualy it works, but if i simulate a power failure, it stops just the fileserver. I'm trying to get it working for a few days now, and i tryed everything i know.
I thing it could have something to do with permissions. I chrooted apsupsd with 4755, and i played around with sudo, but it didn't solved it. I'm not sure whitch user apcupsd is useing but i think root, because the "echo " | wall" messages are from root.
I hope someone can help and sorry for my english,
Sebastian
I've got a APC SmartUPS-1000 a few days ago to protect my Serverrack with 1 Fileserver and 1 Proxmox Host (2 in the furure).
At the first i tried to use nut, because its included in Openfiler which is my Filserver Distribution, but I didn't get it working.
I'm useing apcupsd on the Proxmox host now, and its almost working. I adapted the apccontrol to log onto the fileserver via ssh (as root) and do "shutdown -h 5" which is working, and then shutdown Proxmox with "shutdown -h now" or "/sbin/shutdown -h now" but both versions aren't working. If i type the cmd or start the script manualy it works, but if i simulate a power failure, it stops just the fileserver. I'm trying to get it working for a few days now, and i tryed everything i know.
I thing it could have something to do with permissions. I chrooted apsupsd with 4755, and i played around with sudo, but it didn't solved it. I'm not sure whitch user apcupsd is useing but i think root, because the "echo " | wall" messages are from root.
I hope someone can help and sorry for my english,
Sebastian