{"id":1147,"date":"2014-04-09T14:07:25","date_gmt":"2014-04-09T12:07:25","guid":{"rendered":"http:\/\/clark.tipistrani.it\/?p=1147"},"modified":"2014-04-09T14:07:25","modified_gmt":"2014-04-09T12:07:25","slug":"apcupsd-versione-network","status":"publish","type":"post","link":"http:\/\/clark.tipistrani.it\/?p=1147","title":{"rendered":"apcupsd versione network"},"content":{"rendered":"<p>Poco tempo fa abbiamo comprato un UPS da 3 Kw da mettere nel rack dove gira l&#8217;ambiente di test e un paio di macchine critical mission (antivirus e monitoring della rete).<br \/>\nL&#8217;UPS \u00e8 un Elsist IRIS 50 RT, il software fornito e&#8217; indicato per Linux 2.x ammetto di averci provato pi\u00f9 per curiosit\u00e0 che altro con risultati facilmente immaginabili.<br \/>\nAd ogni modo il problema era sempre vivo, cio\u00e8 ho quattro server in quel rack che in caso di mancanza di corrente devono andare gi\u00f9 bene, ricordandomi che apcupsd non \u00e8 SOLO per apc ho cominciato a lavorarci su e in un paio d&#8217;ore ho messo in piedi la cosa, di seguito i 2 files di configurazione lato server e lato client<br \/>\nLato server (IP 192.168.2.7)<\/p>\n<p>apcupsd.conf<\/p>\n<p>UPSCABLE simple<br \/>\nUPSTYPE BackUPS<br \/>\nDEVICE \/dev\/ttyS0<br \/>\nLOCKFILE \/var\/lock<br \/>\nSCRIPTDIR \/etc\/apcupsd<br \/>\nPWRFAILDIR \/etc\/apcupsd<br \/>\nNOLOGINDIR \/etc<br \/>\nONBATTERYDELAY 6<br \/>\nBATTERYLEVEL 5<br \/>\nMINUTES 3<br \/>\nTIMEOUT 0<br \/>\nANNOY 300<br \/>\nNOLOGON disable<br \/>\nKILLDELAY 0<br \/>\nNETSERVER on<br \/>\nNISIP 0.0.0.0<br \/>\nNISPORT 3551<br \/>\nEVENTSFILE \/var\/log\/apcupsd.events<br \/>\nEVENTSFILEMAX 10<br \/>\nUPSCLASS standalone<br \/>\nUPSMODE disable<br \/>\nSTATTIME 0<br \/>\nSTATFILE \/var\/log\/apcupsd.status<br \/>\nLOGSTATS off<br \/>\nDATATIME 0<br \/>\nSELFTEST 336<\/p>\n<p>Lato client (IP ininfluente l&#8217;alimentazione parte comunque dall&#8217;UPS)<\/p>\n<p>UPSCABLE ether<br \/>\nUPSTYPE net<br \/>\nLOCKFILE \/var\/lock<br \/>\nDEVICE 192.168.2.7:3551<br \/>\nUPSCLASS standalone<br \/>\nUPSMODE disable<br \/>\nNETTIME 10<\/p>\n<p>Con questa semplice configurazione il tutto funziona a puntino.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Poco tempo fa abbiamo comprato un UPS da 3 Kw da mettere nel rack dove gira l&#8217;ambiente di test e un paio di macchine critical mission (antivirus e monitoring della rete). L&#8217;UPS \u00e8 un Elsist IRIS 50 RT, il software fornito e&#8217; indicato per Linux 2.x ammetto di averci provato pi\u00f9 per curiosit\u00e0 che altro [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,14,6],"tags":[72,74,73],"class_list":["post-1147","post","type-post","status-publish","format-standard","hentry","category-linux","category-networking","category-work","tag-apcupsd","tag-multiserver","tag-ups"],"_links":{"self":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1147"}],"version-history":[{"count":4,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1147\/revisions"}],"predecessor-version":[{"id":1151,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1147\/revisions\/1151"}],"wp:attachment":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1147"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}