Advertisement
Guest User

Untitled

a guest
Jan 31st, 2017
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.96 KB | None | 0 0
  1. ## apcupsd.conf v1.1 ##
  2. #
  3. # for apcupsd release 3.14.14 (31 May 2016) - unknown
  4. #
  5. # "apcupsd" POSIX config file
  6.  
  7. #
  8. # Note that the apcupsd daemon must be restarted in order for changes to
  9. # this configuration file to become active.
  10. #
  11.  
  12. #
  13. # ========= General configuration parameters ============
  14. #
  15.  
  16. # UPSNAME xxx
  17. # Use this to give your UPS a name in log files and such. This
  18. # is particulary useful if you have multiple UPSes. This does not
  19. # set the EEPROM. It should be 8 characters or less.
  20. #UPSNAME
  21.  
  22. # UPSCABLE <cable>
  23. # Defines the type of cable connecting the UPS to your computer.
  24. #
  25. # Possible generic choices for <cable> are:
  26. # simple, smart, ether, usb
  27. #
  28. # Or a specific cable model number may be used:
  29. # 940-0119A, 940-0127A, 940-0128A, 940-0020B,
  30. # 940-0020C, 940-0023A, 940-0024B, 940-0024C,
  31. # 940-1524C, 940-0024G, 940-0095A, 940-0095B,
  32. # 940-0095C, 940-0625A, M-04-02-2000
  33. #
  34. UPSCABLE usb
  35.  
  36. # To get apcupsd to work, in addition to defining the cable
  37. # above, you must also define a UPSTYPE, which corresponds to
  38. # the type of UPS you have (see the Description for more details).
  39. # You must also specify a DEVICE, sometimes referred to as a port.
  40. # For USB UPSes, please leave the DEVICE directive blank. For
  41. # other UPS types, you must specify an appropriate port or address.
  42. #
  43. # UPSTYPE DEVICE Description
  44. # apcsmart /dev/tty** Newer serial character device, appropriate for
  45. # SmartUPS models using a serial cable (not USB).
  46. #
  47. # usb <BLANK> Most new UPSes are USB. A blank DEVICE
  48. # setting enables autodetection, which is
  49. # the best choice for most installations.
  50. #
  51. # net hostname:port Network link to a master apcupsd through apcupsd's
  52. # Network Information Server. This is used if the
  53. # UPS powering your computer is connected to a
  54. # different computer for monitoring.
  55. #
  56. # snmp hostname:port:vendor:community
  57. # SNMP network link to an SNMP-enabled UPS device.
  58. # Hostname is the ip address or hostname of the UPS
  59. # on the network. Vendor can be can be "APC" or
  60. # "APC_NOTRAP". "APC_NOTRAP" will disable SNMP trap
  61. # catching; you usually want "APC". Port is usually
  62. # 161. Community is usually "private".
  63. #
  64. # netsnmp hostname:port:vendor:community
  65. # OBSOLETE
  66. # Same as SNMP above but requires use of the
  67. # net-snmp library. Unless you have a specific need
  68. # for this old driver, you should use 'snmp' instead.
  69. #
  70. # dumb /dev/tty** Old serial character device for use with
  71. # simple-signaling UPSes.
  72. #
  73. # pcnet ipaddr:username:passphrase:port
  74. # PowerChute Network Shutdown protocol which can be
  75. # used as an alternative to SNMP with the AP9617
  76. # family of smart slot cards. ipaddr is the IP
  77. # address of the UPS management card. username and
  78. # passphrase are the credentials for which the card
  79. # has been configured. port is the port number on
  80. # which to listen for messages from the UPS, normally
  81. # 3052. If this parameter is empty or missing, the
  82. # default of 3052 will be used.
  83. #
  84. # modbus /dev/tty** Serial device for use with newest SmartUPS models
  85. # supporting the MODBUS protocol.
  86. # modbus <BLANK> Leave the DEVICE setting blank for MODBUS over USB
  87. # or set to the serial number of the UPS to ensure
  88. # that apcupsd binds to that particular unit
  89. # (helpful if you have more than one USB UPS).
  90. #
  91. UPSTYPE usb
  92. #DEVICE /dev/usb/hid/hiddev[0-9]
  93. DEVICE
  94.  
  95. # POLLTIME <int>
  96. # Interval (in seconds) at which apcupsd polls the UPS for status. This
  97. # setting applies both to directly-attached UPSes (UPSTYPE apcsmart, usb,
  98. # dumb) and networked UPSes (UPSTYPE net, snmp). Lowering this setting
  99. # will improve apcupsd's responsiveness to certain events at the cost of
  100. # higher CPU utilization. The default of 60 is appropriate for most
  101. # situations.
  102. #POLLTIME 60
  103.  
  104. # LOCKFILE <path to lockfile>
  105. # Path for device lock file. This is the directory into which the lock file
  106. # will be written. The directory must already exist; apcupsd will not create
  107. # it. The actual name of the lock file is computed from DEVICE.
  108. # Not used on Win32.
  109. LOCKFILE /run/apcupsd
  110.  
  111. # SCRIPTDIR <path to script directory>
  112. # Directory in which apccontrol and event scripts are located.
  113. SCRIPTDIR /etc/apcupsd
  114.  
  115. # PWRFAILDIR <path to powerfail directory>
  116. # Directory in which to write the powerfail flag file. This file
  117. # is created when apcupsd initiates a system shutdown and is
  118. # checked in the OS halt scripts to determine if a killpower
  119. # (turning off UPS output power) is required.
  120. PWRFAILDIR /etc/apcupsd
  121.  
  122. # NOLOGINDIR <path to nologin directory>
  123. # Directory in which to write the nologin file. The existence
  124. # of this flag file tells the OS to disallow new logins.
  125. NOLOGINDIR /etc
  126.  
  127.  
  128. #
  129. # ======== Configuration parameters used during power failures ==========
  130. #
  131.  
  132. # The ONBATTERYDELAY is the time in seconds from when a power failure
  133. # is detected until we react to it with an onbattery event.
  134. #
  135. # This means that, apccontrol will be called with the powerout argument
  136. # immediately when a power failure is detected. However, the
  137. # onbattery argument is passed to apccontrol only after the
  138. # ONBATTERYDELAY time. If you don't want to be annoyed by short
  139. # powerfailures, make sure that apccontrol powerout does nothing
  140. # i.e. comment out the wall.
  141. ONBATTERYDELAY 6
  142.  
  143. #
  144. # Note: BATTERYLEVEL, MINUTES, and TIMEOUT work in conjunction, so
  145. # the first that occurs will cause the initation of a shutdown.
  146. #
  147.  
  148. # If during a power failure, the remaining battery percentage
  149. # (as reported by the UPS) is below or equal to BATTERYLEVEL,
  150. # apcupsd will initiate a system shutdown.
  151. BATTERYLEVEL 5
  152.  
  153. # If during a power failure, the remaining runtime in minutes
  154. # (as calculated internally by the UPS) is below or equal to MINUTES,
  155. # apcupsd, will initiate a system shutdown.
  156. MINUTES 3
  157.  
  158. # If during a power failure, the UPS has run on batteries for TIMEOUT
  159. # many seconds or longer, apcupsd will initiate a system shutdown.
  160. # A value of 0 disables this timer.
  161. #
  162. # Note, if you have a Smart UPS, you will most likely want to disable
  163. # this timer by setting it to zero. That way, you UPS will continue
  164. # on batteries until either the % charge remaing drops to or below BATTERYLEVEL,
  165. # or the remaining battery runtime drops to or below MINUTES. Of course,
  166. # if you are testing, setting this to 60 causes a quick system shutdown
  167. # if you pull the power plug.
  168. # If you have an older dumb UPS, you will want to set this to less than
  169. # the time you know you can run on batteries.
  170. TIMEOUT 0
  171.  
  172. # Time in seconds between annoying users to signoff prior to
  173. # system shutdown. 0 disables.
  174. ANNOY 300
  175.  
  176. # Initial delay after power failure before warning users to get
  177. # off the system.
  178. ANNOYDELAY 60
  179.  
  180. # The condition which determines when users are prevented from
  181. # logging in during a power failure.
  182. # NOLOGON <string> [ disable | timeout | percent | minutes | always ]
  183. NOLOGON disable
  184.  
  185. # If KILLDELAY is non-zero, apcupsd will continue running after a
  186. # shutdown has been requested, and after the specified time in
  187. # seconds attempt to kill the power. This is for use on systems
  188. # where apcupsd cannot regain control after a shutdown.
  189. # KILLDELAY <seconds> 0 disables
  190. KILLDELAY 0
  191.  
  192. #
  193. # ==== Configuration statements for Network Information Server ====
  194. #
  195.  
  196. # NETSERVER [ on | off ] on enables, off disables the network
  197. # information server. If netstatus is on, a network information
  198. # server process will be started for serving the STATUS and
  199. # EVENT data over the network (used by CGI programs).
  200. NETSERVER on
  201.  
  202. # NISIP <dotted notation ip address>
  203. # IP address on which NIS server will listen for incoming connections.
  204. # This is useful if your server is multi-homed (has more than one
  205. # network interface and IP address). Default value is 0.0.0.0 which
  206. # means any incoming request will be serviced. Alternatively, you can
  207. # configure this setting to any specific IP address of your server and
  208. # NIS will listen for connections only on that interface. Use the
  209. # loopback address (127.0.0.1) to accept connections only from the
  210. # local machine.
  211. NISIP 0.0.0.0
  212.  
  213. # NISPORT <port> default is 3551 as registered with the IANA
  214. # port to use for sending STATUS and EVENTS data over the network.
  215. # It is not used unless NETSERVER is on. If you change this port,
  216. # you will need to change the corresponding value in the cgi directory
  217. # and rebuild the cgi programs.
  218. NISPORT 3551
  219.  
  220. # If you want the last few EVENTS to be available over the network
  221. # by the network information server, you must define an EVENTSFILE.
  222. EVENTSFILE /var/log/apcupsd.events
  223.  
  224. # EVENTSFILEMAX <kilobytes>
  225. # By default, the size of the EVENTSFILE will be not be allowed to exceed
  226. # 10 kilobytes. When the file grows beyond this limit, older EVENTS will
  227. # be removed from the beginning of the file (first in first out). The
  228. # parameter EVENTSFILEMAX can be set to a different kilobyte value, or set
  229. # to zero to allow the EVENTSFILE to grow without limit.
  230. EVENTSFILEMAX 10
  231.  
  232. #
  233. # ========== Configuration statements used if sharing =============
  234. # a UPS with more than one machine
  235.  
  236. #
  237. # Remaining items are for ShareUPS (APC expansion card) ONLY
  238. #
  239.  
  240. # UPSCLASS [ standalone | shareslave | sharemaster ]
  241. # Normally standalone unless you share an UPS using an APC ShareUPS
  242. # card.
  243. UPSCLASS standalone
  244.  
  245. # UPSMODE [ disable | share ]
  246. # Normally disable unless you share an UPS using an APC ShareUPS card.
  247. UPSMODE disable
  248.  
  249. #
  250. # ===== Configuration statements to control apcupsd system logging ========
  251. #
  252.  
  253. # Time interval in seconds between writing the STATUS file; 0 disables
  254. STATTIME 0
  255.  
  256. # Location of STATUS file (written to only if STATTIME is non-zero)
  257. STATFILE /var/log/apcupsd.status
  258.  
  259. # LOGSTATS [ on | off ] on enables, off disables
  260. # Note! This generates a lot of output, so if
  261. # you turn this on, be sure that the
  262. # file defined in syslog.conf for LOG_NOTICE is a named pipe.
  263. # You probably do not want this on.
  264. LOGSTATS off
  265.  
  266. # Time interval in seconds between writing the DATA records to
  267. # the log file. 0 disables.
  268. DATATIME 0
  269.  
  270. # FACILITY defines the logging facility (class) for logging to syslog.
  271. # If not specified, it defaults to "daemon". This is useful
  272. # if you want to separate the data logged by apcupsd from other
  273. # programs.
  274. #FACILITY DAEMON
  275.  
  276. #
  277. # ========== Configuration statements used in updating the UPS EPROM =========
  278. #
  279.  
  280. #
  281. # These statements are used only by apctest when choosing "Set EEPROM with conf
  282. # file values" from the EEPROM menu. THESE STATEMENTS HAVE NO EFFECT ON APCUPSD.
  283. #
  284.  
  285. # UPS name, max 8 characters
  286. #UPSNAME UPS_IDEN
  287.  
  288. # Battery date - 8 characters
  289. #BATTDATE mm/dd/yy
  290.  
  291. # Sensitivity to line voltage quality (H cause faster transfer to batteries)
  292. # SENSITIVITY H M L (default = H)
  293. #SENSITIVITY H
  294.  
  295. # UPS delay after power return (seconds)
  296. # WAKEUP 000 060 180 300 (default = 0)
  297. #WAKEUP 60
  298.  
  299. # UPS Grace period after request to power off (seconds)
  300. # SLEEP 020 180 300 600 (default = 20)
  301. #SLEEP 180
  302.  
  303. # Low line voltage causing transfer to batteries
  304. # The permitted values depend on your model as defined by last letter
  305. # of FIRMWARE or APCMODEL. Some representative values are:
  306. # D 106 103 100 097
  307. # M 177 172 168 182
  308. # A 092 090 088 086
  309. # I 208 204 200 196 (default = 0 => not valid)
  310. #LOTRANSFER 208
  311.  
  312. # High line voltage causing transfer to batteries
  313. # The permitted values depend on your model as defined by last letter
  314. # of FIRMWARE or APCMODEL. Some representative values are:
  315. # D 127 130 133 136
  316. # M 229 234 239 224
  317. # A 108 110 112 114
  318. # I 253 257 261 265 (default = 0 => not valid)
  319. #HITRANSFER 253
  320.  
  321. # Battery charge needed to restore power
  322. # RETURNCHARGE 00 15 50 90 (default = 15)
  323. #RETURNCHARGE 15
  324.  
  325. # Alarm delay
  326. # 0 = zero delay after pwr fail, T = power fail + 30 sec, L = low battery, N = never
  327. # BEEPSTATE 0 T L N (default = 0)
  328. #BEEPSTATE T
  329.  
  330. # Low battery warning delay in minutes
  331. # LOWBATT 02 05 07 10 (default = 02)
  332. #LOWBATT 2
  333.  
  334. # UPS Output voltage when running on batteries
  335. # The permitted values depend on your model as defined by last letter
  336. # of FIRMWARE or APCMODEL. Some representative values are:
  337. # D 115
  338. # M 208
  339. # A 100
  340. # I 230 240 220 225 (default = 0 => not valid)
  341. #OUTPUTVOLTS 230
  342.  
  343. # Self test interval in hours 336=2 weeks, 168=1 week, ON=at power on
  344. # SELFTEST 336 168 ON OFF (default = 336)
  345. #SELFTEST 336
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement