From 2e45cd3ef2b36f239d1aa91baa0c60e7ce908ab5 Mon Sep 17 00:00:00 2001 From: mhoellein Date: Tue, 27 Dec 2022 15:53:52 +0100 Subject: [PATCH] daily autocommit --- .etckeeper | 1 + default/nut | 4 ++++ nut/nut.conf | 2 +- nut/ups.conf | 13 ++++++++++++- nut/upsmon.conf | 1 + 5 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 default/nut diff --git a/.etckeeper b/.etckeeper index 4d6205e5..6af80701 100755 --- a/.etckeeper +++ b/.etckeeper @@ -2267,6 +2267,7 @@ maybe chmod 0644 'default/nss' maybe chmod 0644 'default/ntfs-3g' maybe chmod 0644 'default/ntp' maybe chmod 0644 'default/ntpdate' +maybe chmod 0644 'default/nut' maybe chmod 0644 'default/openbsd-inetd' maybe chmod 0644 'default/openvpn' maybe chmod 0644 'default/proftpd' diff --git a/default/nut b/default/nut new file mode 100644 index 00000000..f7b13246 --- /dev/null +++ b/default/nut @@ -0,0 +1,4 @@ +START_UPSD=yes +UPSD_OPTIONS="" +START_UPSMON=yes +UPSMON_OPTIONS="" diff --git a/nut/nut.conf b/nut/nut.conf index 93098256..eead796a 100644 --- a/nut/nut.conf +++ b/nut/nut.conf @@ -29,4 +29,4 @@ # This file is intended to be sourced by shell scripts. # You MUST NOT use spaces around the equal sign! -MODE=none +MODE=standalone diff --git a/nut/ups.conf b/nut/ups.conf index 3ea13548..e067af81 100644 --- a/nut/ups.conf +++ b/nut/ups.conf @@ -108,6 +108,17 @@ # # The default is 'no' (i.e. asynchronous mode) for backward # compatibility of the driver behavior. + +[eaton3s] + driver=usbhid-ups + port=auto + desc="EATON UPS" + #offdelay=60 + #ondelay=70 + # Power down the server at a higher battery charge level (40%) than default 20% + # This should help with older, weaker batteries + ignorelb = yes + #override.battery.charge.low = 40 # # Anything else is passed through to the hardware-specific part of # the driver. @@ -137,4 +148,4 @@ # the -h option and/or read the driver's documentation. # Set maxretry to 3 by default, this should mitigate race with slow devices: -maxretry = 3 +#maxretry = 3 diff --git a/nut/upsmon.conf b/nut/upsmon.conf index f3a08629..5e106a7d 100644 --- a/nut/upsmon.conf +++ b/nut/upsmon.conf @@ -31,6 +31,7 @@ # -------------------------------------------------------------------------- # MONITOR ("master"|"slave") +eaton3s@localhost 1 monuser pass master # # List systems you want to monitor. Not all of these may supply power # to the system running upsmon, but if you want to watch it, it has to -- 2.43.0