upsd.conf 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Network UPS Tools: example upsd configuration file
  2. #
  3. # This file contains access control data, you should keep it secure.
  4. #
  5. # It should only be readable by the user that upsd becomes. See the FAQ.
  6. # =======================================================================
  7. # Access Control Lists (ACLs)
  8. #
  9. # ACL <name> <ipblock>
  10. # ACL myhost 10.0.0.1/32
  11. #
  12. # ACCEPT <aclname> [<aclname>...]
  13. # REJECT <aclname> [<aclname>...]
  14. #
  15. # Define lists of hosts or networks with ACL definitions.
  16. #
  17. # ACCEPT and REJECT use ACL definitions to control whether a host is
  18. # allowed to connect to upsd.
  19. #
  20. # This default configuration only gives access to localhost. To allow
  21. # other hosts or networks to connect, see the documentation and change
  22. # these lines.
  23. ACL all 0.0.0.0/0
  24. ACL localhost 127.0.0.1/32
  25. ACCEPT localhost
  26. REJECT all
  27. # =======================================================================
  28. # MAXAGE <seconds>
  29. # MAXAGE 15
  30. #
  31. # This defaults to 15 seconds. After a UPS driver has stopped updating
  32. # the data for this many seconds, upsd marks it stale and stops making
  33. # that information available to clients. After all, the only thing worse
  34. # than no data is bad data.
  35. #
  36. # You should only use this if your driver has difficulties keeping
  37. # the data fresh within the normal 15 second interval. Watch the syslog
  38. # for notifications from upsd about staleness.