{"id":291,"date":"2019-12-25T12:02:57","date_gmt":"2019-12-25T20:02:57","guid":{"rendered":"http:\/\/nramkumar.org\/tech\/?p=291"},"modified":"2019-12-25T12:02:57","modified_gmt":"2019-12-25T20:02:57","slug":"apcupsd-configuration-issue-in-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/nramkumar.org\/tech\/blog\/2019\/12\/25\/apcupsd-configuration-issue-in-ubuntu-18-04\/","title":{"rendered":"APCUPSD Configuration Issue in Ubuntu 18.04"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">As part of my home network setup, I have an APC UPS (<a href=\"https:\/\/www.apc.com\/shop\/us\/en\/products\/APC-BACK-UPS-XS-1500VA-LCD-120V-RETAIL\/P-BX1500LCD\">XS 1500 LCD<\/a> if you&#8217;re curious). I have the UPS monitoring cable hooked up to my Ubuntu home server and run <a href=\"https:\/\/wiki.ubuntu.com\/apcupsd\">apcupsd<\/a> to monitor and control the UPS behavior. After I upgraded to Ubuntu 18.04, I didn&#8217;t pay attention to the UPS setup and recently noticed that apcupsd was reporting comms failure with the UPS (other symptoms included a defunct apccontrol process &#8211; from apcupsd unsuccessfully trying to recover the comms failure). <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A little bit of digging revealed that the problem was in my <code>\/etc\/apcupsd\/apcupsd.conf<\/code> &#8211; it had the line stating <code>DEVICE \/dev\/ttyS0<\/code> but you should not set the DEVICE parameter if you&#8217;re connecting via a USB cable. Simply commenting out that line and restarting the apcupsd fixed the problem. Now I just need to replace the batteries since it&#8217;s been 5 years since the last battery replacement \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As part of my home network setup, I have an APC UPS (XS 1500 LCD if you&#8217;re curious). I have the UPS monitoring cable hooked up to my Ubuntu home server and run apcupsd to monitor and control the UPS behavior. After I upgraded to Ubuntu 18.04, I didn&#8217;t pay attention to the UPS setup&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-291","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/posts\/291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/comments?post=291"}],"version-history":[{"count":1,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/posts\/291\/revisions"}],"predecessor-version":[{"id":292,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/posts\/291\/revisions\/292"}],"wp:attachment":[{"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/media?parent=291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/categories?post=291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/tags?post=291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}