Some questions about APCUPSD
-
The APCUPSD Package works and turns off the Firewall when needed.
I have some questions:- Is Halt or PowerOff better? I would like PFSense to come back on when the power returns.
- On Windows and Linux PCs I need to install an agent, but how do I configure it? By entering the LAN IP of PFSense?
- What is NIS for? And how should I configure these parameters?
Thanks in advance.
-
@whitetiger-it said in Some questions about APCUPSD:
Is Halt or PowerOff better? I would like PFSense to come back on when the power returns.
I guess it depends on the machine - If your machine is configured in BIOS to start when power returns than I would choose PowerOff.
On Windows and Linux PCs I need to install an agent, but how do I configure it? By entering the LAN IP of PFSense?
Windows and Linux are diferent: on Linux you have to configure the apcupsd.conf :
UPSTYPE net
DEVICE "IP of your pfsense":3551
On the Windows Agent you have to say that the UPS is a net-device and also point to the pfsense IP.Hope that helps,
Regards,
fireodo -
@fireodo
On Windows I have installed and configured the agent with winapcupsd-3.14.14.exe, but it keeps giving me network error.
Being in the LAN I don't think port 3551 should be opened.
Or maybe it is the packet on PFSense that is not sending messages over the LAN. -
@whitetiger-it said in Some questions about APCUPSD:
On Windows I have installed and configured the agent with winapcupsd-3.14.14.exe, but it keeps giving me network error.
Being in the LAN I don't think port 3551 should be opened.
Or maybe it is the packet on PFSense that is not sending messages over the LAN.Hmmm, its working here without problems as I described - maybe there is something different in your LAN ...
-
@fireodo
I set a new rule in LAN area.Source LAN Net
Destination LAN Address with port 3551Now in Win10 the agent is OK.
-
-
@fireodo
I have installed APCUPSD on a PC with Xubuntu 20.04.
The configuration seems correct to me because if I type in the terminal the command apcaccess status the status of the UPS is listed.
However, while on Win 10 there is an icon in the Tray that signals the status of the UPS, on Xubuntu I don't see anything.
Do you need to install any other packages?
Is the shutdown on the PC automatically managed by APCUPSD or do I need to create a script? -
@whitetiger-it said in Some questions about APCUPSD:
Do you need to install any other packages?
I'm not aware of a graphical interface for apcupsd on Ubuntu. Only CLI.
Is the shutdown on the PC automatically managed by APCUPSD or do I need to create a script?
You get an advertisement so you can shutdown your PC. For automatic shutdown you have to create a script.
Have a fine day,
fireodo -
@fireodo
I have not seen any advertisement .
I'll try better or insert a popup message in a script.
Are there any scripts on the net to use already?Another question about your Widget in PFSense.
I see under Runtime: 5.7 Minutes Battery Age 561 Tage.
I guess the 5.4 minutes is relative to battery life with this load, but what is TAGE? -
@whitetiger-it said in Some questions about APCUPSD:
Are there any scripts on the net to use already?
That you have to search ...
Another question about your Widget in PFSense.
I see under Runtime: 5.7 Minutes Battery Age 561 Tage.
I guess the 5.4 minutes is relative to battery life with this load, but what is TAGE?Oh, my fault Tage (german) = Days
(if you want you can change in the apc_usv.widget.php in line 155 "Tage" with "Days" - I forgot to translate this) -
@fireodo
Sorry if I still bother you.I have created two executable scripts, "/etc/apcupsd/onbattery" in Linux and "c:/apcupsd/etc/apcupsd/onbattery.bat" in Win10 (configured as Slave).
The scripts work, but they don't run when I turn off the power and the UPS changes status.
Both Win10 PCs and Linux PCs (Ubuntu and Xubuntu) detect the status and it is reported in apcupsd.events. In Win10, the Windows pop-up is also displayed.
After the foreseen minutes, the PCs shut down correctly.
So everything is working, except the custom messages.What should throw them?
In Win10 it should be apccontrol.bat and in linux apccontrol.
I'm not very experienced, but reading the code of these two files my opinion is that apccontrol doesn't even start. -
@whitetiger-it said in Some questions about APCUPSD:
What should throw them?
I guess you need something like this Wall
-
@fireodo
The Wall is for displaying messages to logged in users.
I have to display pop-ups, send an email and send a message with Telegram. So I have to use a script, but I can't get it to start when the state changes.
I've reread the documentation again, but I don't understand where I'm wrong. -
@whitetiger-it said in Some questions about APCUPSD:
I have to display pop-ups, send an email and send a message with Telegram. So I have to use a script, but I can't get it to start when the state changes.
Sorry - I have no Idea ...