83 lines
2.4 KiB
Diff
83 lines
2.4 KiB
Diff
|
--- conf/Makefile.in
|
||
|
+++ conf/Makefile.in
|
||
|
@@ -17,14 +17,14 @@
|
||
|
|
||
|
install:
|
||
|
@for f in $(SECFILES) ; do \
|
||
|
- $(INSTALLCMD) -m 0600 $$f $(CONFPATH)/$$f.sample; \
|
||
|
+ $(INSTALLCMD) -m 0600 $$f $(CONFPATH)/$$f; \
|
||
|
done
|
||
|
|
||
|
@for f in $(PUBFILES) ; do \
|
||
|
- $(INSTALLCMD) -m 0644 $$f $(CONFPATH)/$$f.sample; \
|
||
|
+ $(INSTALLCMD) -m 0644 $$f $(CONFPATH)/$$f; \
|
||
|
done
|
||
|
|
||
|
install-cgi-conf:
|
||
|
@for f in $(CGIPUB) ; do \
|
||
|
- $(INSTALLCMD) -m 0644 $$f $(CONFPATH)/$$f.sample; \
|
||
|
+ $(INSTALLCMD) -m 0644 $$f $(CONFPATH)/$$f; \
|
||
|
done
|
||
|
--- conf/hosts.conf
|
||
|
+++ conf/hosts.conf
|
||
|
@@ -27,3 +27,5 @@
|
||
|
# MONITOR myups@localhost "Local UPS"
|
||
|
# MONITOR su2200@10.64.1.1 "Finance department"
|
||
|
# MONITOR matrix@shs-server.example.edu "Sierra High School data room #1"
|
||
|
+
|
||
|
+MONITOR myups@localhost "Local UPS"
|
||
|
--- conf/ups.conf
|
||
|
+++ conf/ups.conf
|
||
|
@@ -102,3 +102,8 @@
|
||
|
#
|
||
|
# To find out if your driver supports any extra settings, start it with
|
||
|
# the -h option and/or read the driver's documentation.
|
||
|
+
|
||
|
+[myups]
|
||
|
+ driver = undefined
|
||
|
+ port = /dev/undefined
|
||
|
+ desc = "Local UPS"
|
||
|
--- conf/upsd.users
|
||
|
+++ conf/upsd.users
|
||
|
@@ -68,3 +68,13 @@
|
||
|
# The matching MONITOR line in your upsmon.conf would look like this:
|
||
|
#
|
||
|
# MONITOR myups@myhost 1 monuser pass master (or slave)
|
||
|
+
|
||
|
+[upsmaster]
|
||
|
+ password = @UPSD_INITIAL_MASTER_PASSWORD@
|
||
|
+ allowfrom = localhost
|
||
|
+ upsmon master
|
||
|
+
|
||
|
+[upsslave]
|
||
|
+ password = @UPSD_INITIAL_SLAVE_PASSWORD@
|
||
|
+ allowfrom = localhost
|
||
|
+ upsmon slave
|
||
|
--- conf/upsmon.conf
|
||
|
+++ conf/upsmon.conf
|
||
|
@@ -21,13 +21,13 @@
|
||
|
# user, since it creates an opportunity for an attack by changing the
|
||
|
# SHUTDOWNCMD to something malicious.
|
||
|
#
|
||
|
-# For best results, you should create a new normal user like "nutmon",
|
||
|
+# For best results, you should create a new normal user like "@UPSD_USER@",
|
||
|
# and make it a member of a "nut" group or similar. Then specify it
|
||
|
# here and grant read access to the upsmon.conf for that group.
|
||
|
#
|
||
|
# This user should not have write access to upsmon.conf.
|
||
|
#
|
||
|
-# RUN_AS_USER nutmon
|
||
|
+# RUN_AS_USER @UPSD_USER@
|
||
|
|
||
|
# --------------------------------------------------------------------------
|
||
|
# MONITOR <system> <powervalue> <username> <password> ("master"|"slave")
|
||
|
@@ -83,6 +83,8 @@
|
||
|
# MONITOR myups@bigserver 1 monmaster blah master
|
||
|
# MONITOR su700@server.example.com 1 upsmon secretpass slave
|
||
|
|
||
|
+MONITOR myups@localhost 1 upsmaster @UPSD_INITIAL_MASTER_PASSWORD@ master
|
||
|
+
|
||
|
# --------------------------------------------------------------------------
|
||
|
# MINSUPPLIES <num>
|
||
|
#
|