Re: onduleur
Le ven 22 nov 2002, à 11 h 33 min 22 s exactement (UTC +0100),
Alexandre Boeglin a écrit :
> maintenant, si quelqu'un a une config qui tourne pour ce modèle
> d'onduleur, je lui serait reconnaissant de m'envoyer les quelques
> fichiers de conf ;-)
Ci-joint ma config de nut :
dans /etc/nut/hosts.conf :
MONITOR 192.168.1.1 serveur
dans /etc/nut/upsd.conf
UPS APC /var/lib/nut/apcsmart-ttyS1 apcsmart /dev/ttyS1
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACL mondomaine 192.168.1.0/24
ACCESS grant monitor localhost
ACCESS grant master localhost MonMotDePasse
ACCESS grant manager localhost ManagerLocalhost
ACCESS grant login mondomaine LoginMondomaine
ACCESS deny all all
dans /etc/nut/upsmon.conf :
MONITOR APC@localhost 1 MonMotDePasse master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
NOTIFYCMD /usr/local/sbin/notifiemoi
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/nut/killpower
NOTIFYMSG ONLINE "UPS %s is back online"
NOTIFYMSG ONBATT "UPS %s is on battery"
NOTIFYMSG LOWBATT "UPS %s is on battery and has a low battery (is critical)"
NOTIFYMSG FSD "UPS %s is being shutdown by the master"
NOTIFYMSG COMMOK "Communications established with the UPS %s"
NOTIFYMSG COMMBAD "Communications lost to the UPS %s"
NOTIFYMSG SHUTDOWN "The system is being shutdown"
NOTIFYFLAG ONLINE EXEC+SYSLOG+WALL
NOTIFYFLAG ONBATT EXEC+SYSLOG+WALL
NOTIFYFLAG LOWBATT EXEC+SYSLOG+WALL
NOTIFYFLAG FSD EXEC+SYSLOG+WALL
NOTIFYFLAG COMMOK EXEC+SYSLOG+WALL
NOTIFYFLAG COMMBAD EXEC+SYSLOG+WALL
NOTIFYFLAG SHUTDOWN EXEC+SYSLOG+WALL
Reply to:
- Follow-Ups:
- Re: onduleur
- From: Jean-Michel OLTRA <jm.oltra@libertysurf.fr>