<div dir="ltr">I have a Raspberry PI that I have connected to a Deltec UPS via serial (upscode2 driver). I had an older version of Rasbian running. The nut configuration worked fine but I had mail issues I couldn't resolve when gmail changed how it handled MTAs. Plus it was running an old version of Deb that is no longer supported. It was broken enough I could not upgrade to a never version so I started from scratch. <div><br></div><div>I have NUT running but can not get upssched.conf to work.  On the old OS when I pull the power I would see a message in the syslog that a timer was set. On the new system I never see that message. I do get these new messages when I unplug the UPS to test</div><div><br></div><div>Jan 26 16:51:27 nutpi upscode2[453]: Unknown response to UPDS: DI STLR<br>Jan 26 16:51:27 nutpi upscode2[453]: Unknown response to UPDS: NO STOK<br>Jan 26 16:51:27 nutpi upscode2[453]: Unknown response to UPDS: 11 STBO<br>Jan 26 16:51:27 nutpi upscode2[453]: Unknown response to UPDS: 11 STBL<br>Jan 26 16:51:27 nutpi upscode2[453]: Unknown response to UPDS: 00 STBM<br>Jan 26 16:51:27 nutpi upscode2[453]: Unknown response to UPDS: DI STLR<br>Jan 26 16:51:27 nutpi upscode2[453]: Unknown response to UPDS: NO STAT<br>Jan 26 16:51:27 nutpi upscode2[453]: Unknown response to UPDS: US BTIME<br>Jan 26 16:51:27 nutpi upscode2[453]: Unknown response to UPDS: 0015.00 MIUL1<br>Jan 26 16:51:27 nutpi upscode2[453]: Unknown response to UPDS: 0001.00 MBUUU<br>Jan 26 16:51:27 nutpi upscode2[453]: Unknown response to UPDS: 0025.00 MBIII<br>Jan 26 16:51:28 nutpi upscode2[453]: Unknown response to UPDS: -020.00 MOUL1<br>Jan 26 16:51:28 nutpi upscode2[453]: Unknown response to UPDS: 0117.00 MOIL1<br>Jan 26 16:51:28 nutpi upscode2[453]: Unknown response to UPDS: 0004.00 MOPL1<br>Jan 26 16:51:28 nutpi upscode2[453]: Unknown response to UPDS: 0000.38 MOFFF<br>Jan 26 16:51:30 nutpi upscode2[453]: Communications with UPS lost: Empty value from UPS for UPDS 0060.00!<br>Jan 26 16:51:34 nutpi upscode2[453]: Communications with UPS re-established<br></div><div><br></div><div><span id="gmail-docs-internal-guid-e59be1a7-7fff-6dca-4e42-16265f2fe62f"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">I stopped the upsmon service and started manually with upsmon -DDD. Here is the output</span></p>:<br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"> 55.140869     parse_status: [OB]</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">  55.141018     parsing: [OB]</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">  55.141105     ups_on_batt: deltec-PRA1500@localhost (first time)</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">  55.141193     do_notify: ntype 0x0001 (ONBATT)</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"> 90.160602     Poll UPS [deltec-PRA1500@localhost] failed - Data stale</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">  90.160764     do_notify: ntype 0x0005 (COMMBAD)</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">  90.160889     Communications with UPS deltec-PRA1500@localhost lost</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">90.160889     Communications with UPS deltec-PRA1500@localhost lost</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">  90.162235     Current power value: 1</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">  90.162541     Minimum power value: 1</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">  95.162828     pollups: deltec-PRA1500@localhost</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">  95.163045     get_var: deltec-PRA1500@localhost / status</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">  95.164228     parse_status: [OB]</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">  95.164385     do_notify: ntype 0x0004 (COMMOK)</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">  95.164502     Communications with UPS deltec-PRA1500@localhost established</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"> 160.214327     ups_on_line: deltec-PRA1500@localhost (first time)</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"> 160.214426     do_notify: ntype 0x0000 (ONLINE)</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"> 160.214537     UPS deltec-PRA1500@localhost on line power</span></p></span><br class="gmail-Apple-interchange-newline"></div><div>I've checked to make sure PIPEFN LOCKFIN directory can be written to by my nut user. I never see a pid file created after the power is pulled however.  </div><div><br></div><div><span id="gmail-docs-internal-guid-f64823ec-7fff-bc57-4798-7dfc7e2e7e00"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">here is my upssched.conf</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"><br></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">CMDSCRIPT /bin/upssched-cmd</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">PIPEFN /home/nutmon/upssched/upssched.pipe</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">LOCKFN /home/nutmon/upssched/upssched.lock</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">AT COMMBAD deltec-PRA1500@localhost START-TIMER upsgone 10</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">AT ONBATT deltec-PRA1500@localhost START-TIMER upsonbat 60</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">AT COMMOK deltec-PRA1500@localhost CANCEL-TIMER upsgone</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">AT ONLINE deltec-PRA1500@localhost CANCEL-TIMER upsonbat</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">AT COMMOK deltec-PRA1500@localhost EXECUTE upsback</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">AT ONLINE deltec-PRA1500@localhost EXECUTE upsonac</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">AT LOWBATT deltec-PRA1500@localhost EXECUTE upslow</span></p></span><br class="gmail-Apple-interchange-newline"></div><div><div>Not that I am getting there but /bin/upssched-cmd is executable by my Nut user and works. </div><div><br></div><div>Thanks for any help with this. </div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Greg<br><br><a href="http://www.linkedin.com/in/gregtreantos" target="_blank">http://www.linkedin.com/in/gregtreantos</a>I </div></div></div>