wiki:apc
Различия
Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слеваПредыдущая версия | |||
| wiki:apc [2026/04/09 09:28] – odmin | wiki:apc [2026/04/09 09:30] (текущий) – odmin | ||
|---|---|---|---|
| Строка 52: | Строка 52: | ||
| < | < | ||
| - | |||
| APC : 001, | APC : 001, | ||
| DATE : 2017-01-31 11:31:15 +0300 | DATE : 2017-01-31 11:31:15 +0300 | ||
| Строка 90: | Строка 89: | ||
| </ | </ | ||
| - | |||
| < | < | ||
| - | |||
| - | root@pve:/ | ||
| - | |||
| - | # \\ # Note that the apcupsd daemon must be restarted in order for changes to \\ # this configuration file to become active. \\ # | ||
| - | |||
| - | # \\ # ========= General configuration parameters ============ \\ # | ||
| - | |||
| - | # UPSNAME xxx \\ # Use this to give your UPS a name in log files and such. This \\ # is particulary useful if you have multiple UPSes. This does not \\ # set the EEPROM. It should be 8 characters or less. \\ UPSNAME APC_SmartUPS_1000RM | ||
| - | |||
| - | # UPSCABLE < | ||
| - | |||
| - | # To get apcupsd to work, in addition to defining the cable \\ # above, you must also define a UPSTYPE, which corresponds to \\ # the type of UPS you have (see the Description for more details). \\ # You must also specify a DEVICE, sometimes referred to as a port. \\ # For USB UPSes, please leave the DEVICE directive blank. For \\ # other UPS types, you must specify an appropriate port or address. \\ # \\ # UPSTYPE | ||
| - | |||
| - | # POLLTIME <int> \\ # | ||
| - | |||
| - | # LOCKFILE <path to lockfile> | ||
| - | |||
| - | # SCRIPTDIR <path to script directory> | ||
| - | |||
| - | # PWRFAILDIR <path to powerfail directory> | ||
| - | |||
| - | # NOLOGINDIR <path to nologin directory> | ||
| - | |||
| - | \\ # \\ # ======== Configuration parameters used during power failures ========== \\ # | ||
| - | |||
| - | # The ONBATTERYDELAY is the time in seconds from when a power failure \\ # is detected until we react to it with an onbattery event. \\ # \\ # This means that, apccontrol will be called with the powerout argument \\ # | ||
| - | |||
| - | # \\ # Note: BATTERYLEVEL, | ||
| - | |||
| - | # If during a power failure, the remaining battery percentage \\ # (as reported by the UPS) is below or equal to BATTERYLEVEL, | ||
| - | |||
| - | # If during a power failure, the remaining runtime in minutes \\ # (as calculated internally by the UPS) is below or equal to MINUTES, \\ # apcupsd, will initiate a system shutdown. \\ MINUTES 10 | ||
| - | |||
| - | # If during a power failure, the UPS has run on batteries for TIMEOUT \\ # many seconds or longer, apcupsd will initiate a system shutdown. \\ # A value of 0 disables this timer. \\ # \\ # Note, if you have a Smart UPS, you will most likely want to disable \\ # this timer by setting it to zero. That way, you UPS will continue \\ # on batteries until either the % charge remaing drops to or below BATTERYLEVEL, | ||
| - | |||
| - | # Time in seconds between annoying users to signoff prior to \\ # system shutdown. 0 disables. \\ ANNOY 300 | ||
| - | |||
| - | # Initial delay after power failure before warning users to get \\ # off the system. \\ ANNOYDELAY 60 | ||
| - | |||
| - | # The condition which determines when users are prevented from \\ # logging in during a power failure. \\ # NOLOGON < | ||
| - | |||
| - | # If KILLDELAY is non-zero, apcupsd will continue running after a \\ # shutdown has been requested, and after the specified time in \\ # seconds attempt to kill the power. This is for use on systems \\ # where apcupsd cannot regain control after a shutdown. \\ # KILLDELAY < | ||
| - | |||
| - | # \\ # ==== Configuration statements for Network Information Server ==== \\ # | ||
| - | |||
| - | # NETSERVER [ on | off ] on enables, off disables the network \\ # information server. If netstatus is on, a network information \\ # server process will be started for serving the STATUS and \\ # EVENT data over the network (used by CGI programs). \\ NETSERVER on | ||
| - | |||
| - | # NISIP <dotted notation ip address> \\ # IP address on which NIS server will listen for incoming connections. \\ # This is useful if your server is multi-homed (has more than one \\ # network interface and IP address). Default value is 0.0.0.0 which \\ # means any incoming request will be serviced. Alternatively, | ||
| - | |||
| - | # NISPORT < | ||
| - | |||
| - | # If you want the last few EVENTS to be available over the network \\ # by the network information server, you must define an EVENTSFILE. \\ EVENTSFILE / | ||
| - | |||
| - | # EVENTSFILEMAX < | ||
| - | |||
| - | # \\ # ========== Configuration statements used if sharing ============= \\ # a UPS with more than one machine | ||
| - | |||
| - | # \\ # Remaining items are for ShareUPS (APC expansion card) ONLY \\ # | ||
| - | |||
| - | # UPSCLASS [ standalone | shareslave | sharemaster ] \\ # | ||
| - | |||
| - | # UPSMODE [ disable | share ] \\ # | ||
| - | |||
| - | # \\ # ===== Configuration statements to control apcupsd system logging ======== \\ # | ||
| - | |||
| - | # Time interval in seconds between writing the STATUS file; 0 disables \\ STATTIME 0 | ||
| - | |||
| - | # Location of STATUS file (written to only if STATTIME is non-zero) \\ STATFILE / | ||
| - | |||
| - | # LOGSTATS [ on | off ] on enables, off disables \\ # Note! This generates a lot of output, so if \\ # you turn this on, be sure that the \\ # file defined in syslog.conf for LOG_NOTICE is a named pipe. \\ # You probably do not want this on. \\ LOGSTATS off | ||
| - | |||
| - | # Time interval in seconds between writing the DATA records to \\ # the log file. 0 disables. \\ DATATIME 0 | ||
| - | |||
| - | # FACILITY defines the logging facility (class) for logging to syslog. \\ # If not specified, it defaults to " | ||
| - | |||
| - | # \\ # ========== Configuration statements used in updating the UPS EPROM ========= \\ # | ||
| - | |||
| - | # \\ # These statements are used only by apctest when choosing "Set EEPROM with conf \\ # file values" | ||
| - | |||
| - | # UPS name, max 8 characters \\ #UPSNAME UPS_IDEN | ||
| - | |||
| - | # Battery date - 8 characters \\ #BATTDATE mm/dd/yy | ||
| - | |||
| - | # Sensitivity to line voltage quality (H cause faster transfer to batteries) \\ # SENSITIVITY H M L (default = H) \\ # | ||
| - | |||
| - | # UPS delay after power return (seconds) \\ # WAKEUP 000 060 180 300 | ||
| - | |||
| - | # UPS Grace period after request to power off (seconds) \\ # SLEEP 020 180 300 600 (default = 20) \\ #SLEEP 180 | ||
| - | |||
| - | # Low line voltage causing transfer to batteries \\ # The permitted values depend on your model as defined by last letter \\ # of FIRMWARE or APCMODEL. Some representative values are: \\ # D 106 103 100 097 \\ # M 177 172 168 182 \\ # A 092 090 088 086 \\ # I 208 204 200 196 | ||
| - | |||
| - | # High line voltage causing transfer to batteries \\ # The permitted values depend on your model as defined by last letter \\ # of FIRMWARE or APCMODEL. Some representative values are: \\ # D 127 130 133 136 \\ # M 229 234 239 224 \\ # A 108 110 112 114 \\ # I 253 257 261 265 | ||
| - | |||
| - | # Battery charge needed to restore power \\ # RETURNCHARGE 00 15 50 90 (default = 15) \\ # | ||
| - | |||
| - | # Alarm delay \\ # 0 = zero delay after pwr fail, T = power fail + 30 sec, L = low battery, N = never \\ # BEEPSTATE 0 T L N (default = 0) \\ #BEEPSTATE T | ||
| - | |||
| - | # Low battery warning delay in minutes \\ # LOWBATT 02 05 07 10 (default = 02) \\ #LOWBATT 2 | ||
| - | |||
| - | # UPS Output voltage when running on batteries \\ # The permitted values depend on your model as defined by last letter \\ # of FIRMWARE or APCMODEL. Some representative values are: \\ # D 115 \\ # M 208 \\ # A 100 \\ # I 230 240 220 225 | ||
| - | |||
| - | # Self test interval in hours 336=2 weeks, 168=1 week, ON=at power on \\ # SELFTEST 336 168 ON OFF (default = 336) \\ #SELFTEST 336 | ||
wiki/apc.txt · Последнее изменение: — odmin
