Kod: Zaznacz cały
MONITOR PowerMust@localhost 1 login pass master
SHUTDOWNCMD "/sbin/shutdown -h now"Kod: Zaznacz cały
upsmon -c fsdKod: Zaznacz cały
MONITOR PowerMust@localhost 1 login pass master
SHUTDOWNCMD "/sbin/shutdown -h now"Kod: Zaznacz cały
upsmon -c fsd" pisze:Ups Definitions
In the upsmon.conf(5), you must specify at least one UPS that will be monitored. Use the MONITOR directive.
MONITOR system powervalue username
password type
The system refers to a upsd(8) server, in the form upsname[@hostname[ort]]. The default hostname is "localhost". Some examples follow:
- "su700@mybox" means a UPS called "su700" on a system called "mybox".
This is the normal form.
- "fenton@bigbox:5678" is a UPS called "fenton" on a system called
"bigbox" which runs upsd(8) on port "5678".
The powervalue refers to how many power supplies on this system are being driven this UPS. This is typically set to 1, but see the section on power values below.
The username is a section in your upsd.users(5) file. Whatever password you set in that section must match the password set in this file.
The type set in that section must also match the type here - master or slave. In general, a master process is one running on the system with the UPS actually plugged into a serial port, and a slave is drawing power from the UPS but can't talk to it directly. See the section on UPS types for more.
Kod: Zaznacz cały
MONITOR PowerMust@localhost 1 login pass master