Advertisement
Guest User

apcupsd.conf

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