Install Eaton UPS management software on PVE

wonkyponky

New Member
Nov 8, 2023
19
4
3
Hi out there,
as I want my Proxmox Server to gracefully shutdown in case of a longer power outage I installed Eaton Intelligent Power Protector (Deb./Ub. version) onto the machine. Unfortunately it won't just run out of the box because it fails with installing a dedicated user for the process. Of course, not finding its user, the process is unable to start.

I installed the software on another Debian machine with Desktop Environment. Works fine - user is there. Another headless Debian system shows the same error, though. But there - if I just define the root user in its config file to run the process, it starts up fine.

So this question is in part specific to PVE - what would you recommend? I could
- create a user manually and see if it works out
- just utilize the root user which might be bad practice

But in general terms - do you think using this software would be OK? There might be another USB driver to make the system connect to the UPS but I would miss the configuration features. Configuring the software is done via Web GUI on port 4679/4680.

Thanks for your input!
 
Seems like it's fixed.
In the installer I found a script which takes care of the setup of the user. I ran the commands manually and the user was created fine so the process now works as expected. I guess the reason the script failed originally was a permissions issue. When I tried to run the script from file it gave cmd not found ..
Up until now I don't see any complications with PVE.
 
  • Like
Reactions: andli86
Seems like it's fixed.
In the installer I found a script which takes care of the setup of the user. I ran the commands manually and the user was created fine so the process now works as expected. I guess the reason the script failed originally was a permissions issue. When I tried to run the script from file it gave cmd not found ..
Up until now I don't see any complications with PVE.
@wonkyponky @floh8
sorry to warm up this old thread, but maybe one of you can help me ...

I'm trying to set up my Eaton with my proxmox server and I have 2 questions:

1. I finally managed to install the Eaton IPP software. Therefor I also had to create a new user.
@wonkyponky
You wrote you did this via script which takes care of the setup of the user. Where can I find this script?
Maybe that is connected to my 2nd point?

2. I build a script for shutdown all my LXCs, VMs and the host itself in case of an ups event.
The script works when started manually. But I don' succed to execute it from my Eaton. There nothing happens.

I would be thankful for any idea. Thanks for your help.
 
@plasmediaX - there is no special script - I just looked inside the installer package and found the install script. It sets up a user while initializing. Maybe you'd find some needed info there.
 
The user is eaton-ipp, not eaton.....

useradd "eaton-ipp" -r -s /bin/false
passwd -d "eaton-ipp"
chown -R "eaton-ipp" "/usr/local/eaton/IntelligentPowerProtector"

systemctl daemon-reload
systemctl restart eaton-ipp
systemctl status eaton-ipp
 
The script I originally found somewhere in the deeps of the internet, can't remember exactly, where it was ... I then modified it a little for my purpose.


Code:
#bash

#!/bin/bash

echo "Skript Started - all LXCs and VMs get stopped and host system will be shut down"

# Alle LXC-Container stoppen
for container_id in $(pct list | awk '{if (NR>1) print $1}'); do
  pct stop $container_id
done

echo "all LXCs stopped"

# Alle VMs stoppen
for vm_id in $(qm list | awk '{if (NR>1) print $1}'); do
  qm shutdown $vm_id
done

echo "all VMs stopped"

# Warten, bis alle Container und VMs gestoppt sind
echo "sleep period 20 seconds starts now"
sleep 20

# Proxmox-Host herunterfahren
echo "sleep period over - shutdown of host system starts in 60 seconds"
shutdown -h +1

###
 
2. I build a script for shutdown all my LXCs, VMs and the host itself in case of an ups event.
The script works when started manually. But I don' succed to execute it from my Eaton. There nothing happens.

I would be thankful for any idea. Thanks for your help.

We also use Eaton UPS systems in our environment and are evaluating the use of Proxmox.
I did configure the Eation IPP software on a host and did setup a shutdown script. The script gets correctly executed but the user doesn't have the necessary permission to run qm commands.

Maybe someone can help us to get around this permission problem.
- grant the eation-ipp service user the missing permission​

- run the qm commands with a different user

 
there is no need to run a custom script. Just choose shutdown in the Eaton Power Protector. Proxmox will issue a "Bulk shutdown VMs and Containers" command. Afterwards it will power down.