Drew Plaster
2017-Oct-18 20:49 UTC
[Nut-upsuser] debian 8 "jessie" nut 2.7.2 slaves not shutting down
MASTER SYSTEM nut.conf MODE=netserver ups.conf [TOPAPC] driver = usbhid-ups port = auto pollonly serial = "IS1309002707" desc = "TOPAPC" [MIDAPC] driver = usbhid-ups port = auto pollonly serial = "IS1309001233" desc = "MIDAPC" [BOTAPC] driver = usbhid-ups port = auto pollonly serial = "IS1309001213" desc = "BOTAPC" upsd.conf LISTEN 127.0.0.1 3493 LISTEN 172.16.1.158 3493 upsd.users [admin] password = XXXXXXXXX actions = SET instcmds = ALL [user] password = XXXXXXXXX instcmds = ALL [upsmon] password = XXXXXXXXX upsmon master [upsmonslave] password = XXXXXXXXX upsmonslave slave [geaaetst01] password = XXXXXXXXX geaaetst01 slave [pdxvhtst02] password = XXXXXXXXX pdxvhtst02 slave upsmon.conf MONITOR TOPAPC at localhost 1 upsmon pass master MONITOR MIDAPC at localhost 1 upsmon pass master MONITOR BOTAPC at localhost 1 upsmon pass master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h now" NOTIFYCMD /bin/notifynetadmins POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 NOTIFYMSG ONLINE "UPS %s on line power" NOTIFYMSG ONBATT "UPS %s on battery" NOTIFYMSG LOWBATT "UPS %s battery is low" NOTIFYMSG FSD "UPS %s: forced shutdown in progress" NOTIFYMSG COMMOK "Communications with UPS %s established" NOTIFYMSG COMMBAD "Communications with UPS %s lost" NOTIFYMSG SHUTDOWN "Auto logout and shutdown proceeding" NOTIFYMSG REPLBATT "UPS %s battery needs to be replaced" NOTIFYMSG NOCOMM "UPS %s is unavailable" NOTIFYMSG NOPARENT "upsmon parent process died - shutdown impossible" 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 NOTIFYFLAG REPLBATT EXEC+SYSLOG+WALL NOTIFYFLAG NOCOMM EXEC+SYSLOG+WALL NOTIFYFLAG NOPARENT EXEC+SYSLOG+WALL RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5 upssched.conf CMDSCRIPT /bin/upssched-cmd SLAVE SYSTEM (1) nut.conf MODE=netclient upsmon.conf MONITOR TOPAPC at 172.16.1.158 1 geaaetst01 pass slave MONITOR MIDAPC at 172.16.1.158 1 geaaetst01 pass slave MONITOR BOTAPC at 171.16.1.158 1 geaaetst01 pass slave MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h now" POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 1 upssched.conf CMDSCRIPT /bin/upssched-cmd SLAVE SYSTEM (2) nut.conf MODE=netclient upsmon.conf MONITOR TOPAPC at 172.16.1.158 1 pdxvhtst02 pass slave MONITOR MIDAPC at 172.16.1.158 1 pdxvhtst02 pass slave MONITOR BOTAPC at 171.16.1.158 1 pdxvhtst02 pass slave MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h now" POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 1 upssched.conf CMDSCRIPT /bin/upssched-cmd ? Drew Plaster | Systems Administrator 808 SW 3rd Avenue, Suite 300 |?Portland, OR 97204 o: 503.415.2385 |?c: 503.484.0168 | f:?503.415.2498 www.otak.com ? ??at Otak, we consider the environment before printing emails. ? Disclaimer: The information transmitted in this e-mail message and attachments, if any, may contain confidential material, and is intended only for the use of the individual or entity named above. Distribution to, or review by, unauthorized persons is prohibited. In the event of the unauthorized use of any material in this transmission, neither Otak nor the sender shall have any liability and the recipient shall defend, indemnify and hold harmless the sender, Otak and its principals, agents, employees and subconsultants from all related claims and damages. The recipient understands and agrees that any use or distribution of the material in this transmission is conditioned upon the acceptance of the terms stated in this disclaimer. If you have received this transmission in error, immediately notify the sender and permanently delete this?transmission including attachments, if any. -----Original Message----- From: Nut-upsuser [mailto:nut-upsuser-bounces+drew.plaster=otak.com at lists.alioth.debian.org] On Behalf Of Roger Price Sent: Wednesday, October 18, 2017 12:54 PM To: nut-upsuser Mailing List Subject: Re: [Nut-upsuser] debian 8 "jessie" nut 2.7.2 slaves not shutting down On Wed, 18 Oct 2017, Drew Plaster wrote:> ??????????????? there are three APC smart ups connected via usb cables > to the master system, the master system shuts down as expected but the > slave systems never shutdown eventhough I believe that all the configs > are properly set the slaves should either shutdown when there is only > one ups and it is running low on battery power offline or worst case > shutdown after they cannot communicate with the master for longer than > the HOSTSYNC 15 or UPS for longer than the DEADTIME 15Hi, Could you show us your NUT configuration files? Please omit the comments, and double spacing will not be needed. Roger> Disclaimer: The information transmitted in this e-mail message and > attachments, if any, may contain confidential material, and is > intended only for the use of the individual or entity named above....It's probably best not to send such a disclaimer to a public mailing list with hundreds of subscribers.
Roger Price
2017-Oct-19 09:48 UTC
[Nut-upsuser] debian 8 "jessie" nut 2.7.2 slaves not shutting down
On Wed, 18 Oct 2017, Drew Plaster wrote:> MASTER SYSTEM > > nut.conf > MODE=netserver > > ups.conf > [TOPAPC] > driver = usbhid-ups > port = auto > pollonly > serial = "IS1309002707" > desc = "TOPAPC" > [MIDAPC] > driver = usbhid-ups > port = auto > pollonly > serial = "IS1309001233" > desc = "MIDAPC" > [BOTAPC] > driver = usbhid-ups > port = auto > pollonly > serial = "IS1309001213" > desc = "BOTAPC"Just to be sure that I understand your topology: UPS TOPAPC, Data link to master, Power supply to master UPS MIDAPC, Data link to master, Power supply to slave1 UPS BOTAPC, Data link to master, Power supply to slave2 Shutdown plan: When wall power fails for any one of the three UPS units, they continue powering the master and the two slaves. When any one of the three UPS units reaches the status [OB LB]. the two slaves are shut down, and then the master is shutdown. Is this correct? Roger
Drew Plaster
2017-Oct-19 15:05 UTC
[Nut-upsuser] debian 8 "jessie" nut 2.7.2 slaves not shutting down
Roger, The topology is: UPS TOPAPC, Data link to master, Power supply to master, slave1 and slave2 UPS MIDAPC, Data link to master, Power supply to master, slave1 and slave2 UPS BOTAPC, Data link to master, Power supply to master, slave1 and slave2 Shutdown plan: When wall power fails for any of the three UPS units, they continue powering the master and the two slaves. When two of the UPS battery have been depleted and the last (MINSUPPLIES 1) UPS unit reaches the status [OB LB]. the two slaves are shut down, and then the master is shutdown and sends shutdown signal to UPS (#POWERDOWNFLAG /etc/killpower) has been temporarily remarked out in the masters upsmon.conf to test if the slaves would shutdown vai hotsync or deadtime. Anyway, that is how I was envisioning it functioning with the current config files; I may be mis-understanding something but that is the desired shutdown plan. I don't know if this helps with anything but if I execute upsmon -c fsd on any of the three systems that system does shutdown but when I execute it on the master system it does not shutdown either of the slave systems. ? Drew Plaster | Systems Administrator 808 SW 3rd Avenue, Suite 300 |?Portland, OR 97204 o: 503.415.2385 |?c: 503.484.0168 | f:?503.415.2498 www.otak.com ? ??at Otak, we consider the environment before printing emails. ? Disclaimer: The information transmitted in this e-mail message and attachments, if any, may contain confidential material, and is intended only for the use of the individual or entity named above. Distribution to, or review by, unauthorized persons is prohibited. In the event of the unauthorized use of any material in this transmission, neither Otak nor the sender shall have any liability and the recipient shall defend, indemnify and hold harmless the sender, Otak and its principals, agents, employees and subconsultants from all related claims and damages. The recipient understands and agrees that any use or distribution of the material in this transmission is conditioned upon the acceptance of the terms stated in this disclaimer. If you have received this transmission in error, immediately notify the sender and permanently delete this?transmission including attachments, if any. -----Original Message----- From: Nut-upsuser [mailto:nut-upsuser-bounces+drew.plaster=otak.com at lists.alioth.debian.org] On Behalf Of Roger Price Sent: Thursday, October 19, 2017 2:49 AM To: nut-upsuser Mailing List Subject: Re: [Nut-upsuser] debian 8 "jessie" nut 2.7.2 slaves not shutting down On Wed, 18 Oct 2017, Drew Plaster wrote:> MASTER SYSTEM > > nut.conf > MODE=netserver > > ups.conf > [TOPAPC] > driver = usbhid-ups > port = auto > pollonly > serial = "IS1309002707" > desc = "TOPAPC" > [MIDAPC] > driver = usbhid-ups > port = auto > pollonly > serial = "IS1309001233" > desc = "MIDAPC" > [BOTAPC] > driver = usbhid-ups > port = auto > pollonly > serial = "IS1309001213" > desc = "BOTAPC"Just to be sure that I understand your topology: UPS TOPAPC, Data link to master, Power supply to master UPS MIDAPC, Data link to master, Power supply to slave1 UPS BOTAPC, Data link to master, Power supply to slave2 Shutdown plan: When wall power fails for any one of the three UPS units, they continue powering the master and the two slaves. When any one of the three UPS units reaches the status [OB LB]. the two slaves are shut down, and then the master is shutdown. Is this correct? Roger _______________________________________________ Nut-upsuser mailing list Nut-upsuser at lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser