Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > 094536f010c39298a1b4d4f786e7edbd > files > 4

nut-server-0.45.4-1mdk.i586.rpm

# Network UPS Tools: example upsd configuration file
#
# This file contains passwords, so you should keep it secure.
# Having it owned by root, mode 0600 should be sufficient.

# =======================================================================
# UPS definitions (deprecated)
#
# If you are installing this for the first time, skip this section as it
# does not apply to you.
#
# Note: previously this file defined UPSes with UPS <name> <path>.
# This behavior is now deprecated.  You should switch to the ups.conf
# format which has a number of benefits, including simplified startup
# scripts.
#
# If you used to use the "UPS myups /var/state/ups/blahups-tty123" format,
# then you now need something like this _in your ups.conf_ (not this file!):
#
# 	[myups]
#     		driver = blahups
#     		port = /dev/tty123
#
# upsd will stop honoring the UPS definitions in this file eventually.

# =======================================================================
# Access Control Lists (ACLs)
#
# ACL <name> <ipblock>
# ACL myhost 10.0.0.1/32
#
# ACCESS <action> <level> <aclname> [<password>]
# ACCESS grant login myhost mypass
# 
# Use these to define blocks of addresses.  See access.txt for more
# information.
#
# This default configuration allows localhost to monitor things and denies
# access to the rest of the world.  To allow more, see the docs and 
# change these lines.

ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32

ACCESS grant monitor localhost
ACCESS deny all all

# =======================================================================
# MAXAGE <seconds>
# MAXAGE 45
#
# This defaults to 15 seconds.  After a UPS model has stopped updating
# the data for this many seconds, upsd marks it stale and stops making
# that information available to clients.  After all, the only thing worse
# than no data is bad data.
#
# You should only use this if your model program has difficulties keeping
# the data fresh within the normal 15 second interval.  Watch the syslog
# for notifications from upsd about staleness.