{"id":3190,"date":"2018-12-14T00:00:08","date_gmt":"2018-12-13T15:00:08","guid":{"rendered":"https:\/\/shell-mag.com\/?p=3190"},"modified":"2018-12-26T10:32:56","modified_gmt":"2018-12-26T01:32:56","slug":"27th_linuxoperations","status":"publish","type":"post","link":"https:\/\/shell-mag.com\/27th_linuxoperations\/","title":{"rendered":"\u7b2c27\u56de\u3000\u96fb\u6e90\u969c\u5bb3\u304b\u3089\u30b5\u30fc\u30d0\u30fc\u3092\u5b88\u308b\uff08UPS\uff09"},"content":{"rendered":"<p>\u793e\u5185\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u306e\u904b\u7528\u7ba1\u7406\u3067\u898b\u843d\u3068\u3057\u304c\u3061\u306a\u306e\u304c\u300c\u96fb\u6e90\u300d\u306b\u5bfe\u3059\u308b\u4fdd\u8b77\u3067\u3059\u3002\u5b89\u5b9a\u3057\u305f\u96fb\u5727\u3084\u96fb\u6d41\u3092\u5e38\u306b\u4f9b\u7d66\u3057\u306a\u3051\u308c\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u3063\u3066\u505c\u6b62\u3084\u6545\u969c\u3057\u304b\u306d\u307e\u305b\u3093\u3002<br \/>\n\u5b89\u5b9a\u3057\u305f\u96fb\u6e90\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2\u304c\u300c\u7121\u505c\u96fb\u96fb\u6e90\u88c5\u7f6e\u300d\uff08UPS\uff1aUninterruptible Power Supply\uff09\u3067\u3059\u3002UPS\u3092\u7528\u3044\u308b\u3068\u3001\u96fb\u5727\u5024\u3084\u96fb\u6d41\u5024\u304c\u4f4e\u4e0b\u3057\u305f\u3068\u304d\u306b\u88dc\u3048\u305f\u308a\u3001\u96fb\u6e90\u65ad\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306b\u81ea\u52d5\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3067\u30b5\u30fc\u30d0\u30fc\u3092\u5b89\u5168\u306b\u505c\u6b62\u3055\u305b\u305f\u308a\u3001\u96f7\u306a\u3069\u306b\u3088\u308b\u7570\u5e38\u306a\u9ad8\u96fb\u5727\u3092\u9632\u3044\u3060\u308a\u3067\u304d\u307e\u3059\uff08<strong>\u56f31<\/strong>\uff09\u3002<\/p>\n<div id=\"attachment_3191\" style=\"width: 536px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3191\" class=\" wp-image-3191\" src=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu1-300x203.png\" alt=\"\" width=\"526\" height=\"356\" srcset=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu1-300x203.png 300w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu1-768x519.png 768w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu1.png 811w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><p id=\"caption-attachment-3191\" class=\"wp-caption-text\">\u56f31\u3000\u96fb\u6e90\u3092\u4fdd\u8b77\u3059\u308b\u7121\u505c\u96fb\u96fb\u6e90\u88c5\u7f6e\uff08UPS\uff09<\/p><\/div>\n<p>\u4eca\u56de\u306f\u3001\u3053\u306eUPS\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u3064\u306a\u3044\u3067\u30b5\u30fc\u30d0\u30fc\u306e\u96fb\u6e90\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u7ba1\u7406\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u306b\u306f\u3001Ubuntu Server 16.04 LTS\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3068\u3057\u307e\u3059\u3002<\/p>\n<p><!--nextpage--><\/p>\n<h2>UPS\u3068\u30b5\u30fc\u30d0\u30fc\u3092\u63a5\u7d9a\u3059\u308b<\/h2>\n<p>UPS\u306f\u3001<a href=\"https:\/\/www.apc.com\/jp\/ja\/\">\u30b7\u30e5\u30ca\u30a4\u30c0\u30fc\u30a8\u30ec\u30af\u30c8\u30ea\u30c3\u30af<\/a>\u3084<a href=\"https:\/\/www.oss.omron.co.jp\/ups\/\">\u30aa\u30e0\u30ed\u30f3 \u30bd\u30fc\u30b7\u30a2\u30eb\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u30ba<\/a>\u306a\u3069\u306e\u30e1\u30fc\u30ab\u30fc\u304c\u958b\u767a\u30fb\u8ca9\u58f2\u3057\u3066\u3044\u307e\u3059\u3002\u30e1\u30fc\u30ab\u30fc\u306b\u3088\u3063\u3066\u4ed5\u69d8\u304c\u7570\u306a\u308a\u3001\u7ba1\u7406\u3059\u308b\u30bd\u30d5\u30c8\u30a6\u30a8\u30a2\u304c\u9055\u3044\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u306f\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a8\u30a2\u306e\u7ba1\u7406\u30c4\u30fc\u30eb\u300c<a href=\"http:\/\/www.apcupsd.org\/\">Apcupsd<\/a>\u300d\u3067\u5236\u5fa1\u3067\u304d\u308b\u3001\u30b7\u30e5\u30ca\u30a4\u30c0\u30fc\u30a8\u30ec\u30af\u30c8\u30ea\u30c3\u30af\u306e\u300cAPC Smart-UPS 500 LCD 100V\u300d\uff08\u4ee5\u4e0b\u3001Smart-UPS\uff09\u3092\u6271\u3044\u307e\u3059\uff08<strong>\u56f32<\/strong>\uff09\u3002\u5b9a\u683c\u51fa\u529b\u96fb\u5727\u306f100V\u3067\u3001\u6700\u5927\u3067360W\u306e\u96fb\u529b\u3092\u4f9b\u7d66\u3067\u304d\u307e\u3059\u3002<\/p>\n<div id=\"attachment_3192\" style=\"width: 433px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3192\" class=\" wp-image-3192\" src=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu2-300x270.jpg\" alt=\"\" width=\"423\" height=\"381\" srcset=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu2-300x270.jpg 300w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu2.jpg 500w\" sizes=\"auto, (max-width: 423px) 100vw, 423px\" \/><p id=\"caption-attachment-3192\" class=\"wp-caption-text\">\u56f32\u3000APC Smart-UPS 500 LCD 100V<\/p><\/div>\n<p>Smart-UPS\u306e<a href=\"https:\/\/www.apc.com\/salestools\/ASTE-6Z8LVG\/ASTE-6Z8LVG_R5_JA.pdf\">\u30de\u30cb\u30e5\u30a2\u30eb<\/a>\u306b\u5f93\u3063\u3066\u3001\u521d\u671f\u8a2d\u5b9a\u3092\u65bd\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u96fb\u6e90\u30b1\u30fc\u30d6\u30eb\u3068USB\u30b1\u30fc\u30d6\u30eb\u3092<strong>\u56f33<\/strong>\u306e\u3088\u3046\u306b\u633f\u3057\u305f\u72b6\u614b\u3067Smart-UPS\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<div id=\"attachment_3193\" style=\"width: 468px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3193\" class=\" wp-image-3193\" src=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu3-300x273.png\" alt=\"\" width=\"458\" height=\"417\" srcset=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu3-300x273.png 300w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu3.png 519w\" sizes=\"auto, (max-width: 458px) 100vw, 458px\" \/><p id=\"caption-attachment-3193\" class=\"wp-caption-text\">\u56f33\u3000UPS\u3068\u30b5\u30fc\u30d0\u30fc\u3092\u3064\u306a\u3050<\/p><\/div>\n<p>\u524d\u9762\u306e\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u30b9\u30af\u30ea\u30fc\u30f3\u306f\u3001<strong>\u56f34<\/strong>\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u300c\u30d5\u30ab\u300d\u306f\u30b5\u30fc\u30d0\u30fc\u306b\u7d66\u96fb\u3059\u308b\u8ca0\u8377\u3001\u300cBatt\u300d\u306f\u30d0\u30c3\u30c6\u30ea\u30fc\u306e\u5145\u96fb\u72b6\u614b\u3067\u3059\u3002<\/p>\n<div id=\"attachment_3194\" style=\"width: 473px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3194\" class=\" wp-image-3194\" src=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu4-300x262.jpg\" alt=\"\" width=\"463\" height=\"404\" srcset=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu4-300x262.jpg 300w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu4-768x670.jpg 768w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu4-1024x893.jpg 1024w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu4.jpg 2021w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><p id=\"caption-attachment-3194\" class=\"wp-caption-text\">\u56f34\u3000\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u30b9\u30af\u30ea\u30fc\u30f3\u306e\u72b6\u614b<\/p><\/div>\n<p><!--nextpage--><\/p>\n<h2>Apcupsd\u3092\u5c0e\u5165\u3059\u308b<\/h2>\n<p>Smart-UPS\u3068\u30b5\u30fc\u30d0\u30fc\u306e\u63a5\u7d9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30b5\u30fc\u30d0\u30fc\u306bApcupsd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002Ubuntu Server 16.04 LTS\u3067\u306f\u3001Apcupsd\u304c\u6a19\u6e96\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5c11\u3057\u53e4\u3044\u306e\u3067\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u6700\u65b0\u7248\u3092\u5c0e\u5165\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30e2\u30fc\u30c8\u30a2\u30af\u30bb\u30b9\u7528\u30d1\u30bd\u30b3\u30f3\u3067<a href=\"https:\/\/sourceforge.net\/projects\/apcupsd\/files\/apcupsd%20-%20Stable\/3.14.14\/apcupsd-3.14.14.tar.gz\/download\">\u3053\u3053<\/a>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001Apcupsd\u306e\u4e00\u756a\u65b0\u3057\u3044\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\uff08apcupsd-3.14.14.tar.gz\uff09\u3092\u5165\u624b\u3057\u307e\u3059\u3002\u3053\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30b5\u30fc\u30d0\u30fc\u306b<a href=\"https:\/\/winscp.net\/\">WinSCP<\/a>\u306a\u3069\u3092\u5229\u7528\u3057\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30d3\u30eb\u30c9\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u300c[sudo] taro \u306e\u30d1\u30b9\u30ef\u30fc\u30c9:\u300d\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u81ea\u5206\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u300c\u7d9a\u884c\u3057\u307e\u3059\u304b? [Y\/n]\u300d\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u300cy\u300d\u3092\u5165\u529b\u3057\u3066\uff3bEnter\uff3d\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true \">$ sudo apt update\n$ sudo apt install build-essential libgd-dev\n<\/pre>\n<p>\u5c0e\u5165\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001Apcupsd\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u5c55\u958b\u30fb\u30d3\u30eb\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true \">$ tar zxvf apcupsd-3.14.14.tar.gz\n$ cd apcupsd-3.14.14\n$ .\/configure --enable-usb --enable-cgi\n$ sudo make install<\/pre>\n<p>\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u306a\u3051\u308c\u3070\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p><!--nextpage--><\/p>\n<p>Apcupsd\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u65bd\u3057\u3001Smart-UPS\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u306f\u3001Apcupsd\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\uff08\/etc\/apcupsd\/apcupsd.conf\uff09\u3092\u300cnano\u300d\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true \">$ sudo nano \/etc\/apcupsd\/apcupsd.conf\n<\/pre>\n<p>20\u884c\u76ee\u306e\u300c#UPSNAME\u300d\u3092\u3001<\/p>\n<pre class=\"lang:default decode:true \">UPSNAME Smart-UPS500\n<\/pre>\n<p>\u306b\u300134\u884c\u76ee\u306e\u300cUPSCABLE smart\u300d\u3092\u3001<\/p>\n<pre class=\"lang:default decode:true \">UPSCABLE usb\n<\/pre>\n<p>\u306b\u300191\u884c\u76ee\u306e\u300cUPSTYPE apcsmart\u300d\u306892\u884c\u76ee\u306e\u300cDEVICE \/dev\/ttyS0\u300d\u3092\u3001<\/p>\n<pre class=\"lang:default decode:true \">UPSTYPE usb\nDEVICE<\/pre>\n<p>\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002\u4fdd\u5b58\u3057\u305f\u3089\u3001\u8a2d\u5b9a\u3092\u53cd\u6620\u3059\u308b\u305f\u3081\u306bApcupsd\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true \">$ sudo systemctl restart apcupsd\n<\/pre>\n<p>\u300capcaccess\u300d\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001Smart-UPS\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u300211\u884c\u76ee\u306e\u300cSTATUS\u300d\u304c\u300cONLINE\u300d\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u3068Smart-UPS\u304c\u6b63\u3057\u304f\u63a5\u7d9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true \">$ sudo apcaccess\nAPC      : 001,027,0661\nDATE     : 2018-12-03 17:36:15 +0900\nHOSTNAME : shmag1\nVERSION  : 3.14.14 (31 May 2016) debian\nUPSNAME  : Smart-UPS500\nCABLE    : USB Cable\nDRIVER   : USB UPS Driver\nUPSMODE  : Stand Alone\nSTARTTIME: 2018-12-03 17:36:13 +0900\nMODEL    : Smart-UPS 500\nSTATUS   : ONLINE\nBCHARGE  : 100.0 Percent\nTIMELEFT : 197.0 Minutes\nMBATTCHG : 5 Percent\nMINTIMEL : 3 Minutes\nMAXTIME  : 0 Seconds\nALARMDEL : 30 Seconds\nBATTV    : 27.0 Volts\nNUMXFERS : 0\nTONBATT  : 0 Seconds\nCUMONBATT: 0 Seconds\nXOFFBATT : N\/A\nSTATFLAG : 0x05000008\nMANDATE  : 2012-12-17\nSERIALNO : AS1251110872\nNOMBATTV : 24.0 Volts\nFIRMWARE : UPS 09.3 \/ ID=18\nEND APC  : 2018-12-03 17:37:08 +0900\n<\/pre>\n<p><!--nextpage--><\/p>\n<h2>\u81ea\u52d5\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3092\u8a2d\u5b9a\u3059\u308b<\/h2>\n<p>UPS\u306b\u3088\u308b\u96fb\u6e90\u5236\u5fa1\u306e\u307b\u3068\u3093\u3069\u306f\u3001UPS\u5074\u3067\u81ea\u52d5\u7684\u306b\u5b9f\u65bd\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u3068\u9023\u643a\u3059\u308b\u81ea\u52d5\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3060\u3051\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u518d\u5ea6\u3001Apcupsd\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\uff08\/etc\/apcupsd\/apcupsd.conf\uff09\u3092\u300cnano\u300d\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true \">$ sudo nano \/etc\/apcupsd\/apcupsd.conf\n<\/pre>\n<p>169\u884c\u76ee\u306e\u300cTIMEOUT 0\u300d\u304c\u81ea\u52d5\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u306e\u8a2d\u5b9a\u3067\u3059\u3002TIMEOUT\u304c\u30d0\u30c3\u30c6\u30ea\u30fc\u7d66\u96fb\u306b\u5207\u308a\u66ff\u308f\u3063\u3066\u304b\u3089\u81ea\u52d5\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3092\u5b9f\u884c\u3059\u308b\u307e\u3067\u306e\u6642\u9593\u306b\u306a\u308a\u307e\u3059\u3002\u306a\u304a\u3001\u300c0\u300d\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u81ea\u52d5\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">TIMEOUT 30\n<\/pre>\n<p>\u30b3\u30f3\u30bb\u30f3\u30c8\u304b\u3089\u306e\u7d66\u96fb\u304c\u505c\u6b62\u3057\u3066\u304b\u308930\u79d2\u5f8c\u306b\u30b5\u30fc\u30d0\u30fc\u306e\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u304c\u958b\u59cb\u3057\u307e\u3059\u3002\u9593\u9055\u3063\u3066\u30b3\u30f3\u30bb\u30f3\u30c8\u3092\u629c\u3044\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3067\u308230\u79d2\u4ee5\u5185\u306b\u633f\u3057\u306a\u304a\u305b\u3070\u3001\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002\u3053\u306e\u8a2d\u5b9a\u3092\u53cd\u6620\u3059\u308b\u305f\u3081\u306b\u3001Apcupsd\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true\">$ sudo systemctl restart apcupsd\n<\/pre>\n<p>\u5b9f\u969b\u306b\u3001UPS\u306e\u96fb\u6e90\u30b1\u30fc\u30d6\u30eb\u3092\u30b3\u30f3\u30bb\u30f3\u30c8\u304b\u3089\u629c\u304d\u3001\u52d5\u4f5c\u3092\u78ba\u304b\u3081\u3066\u307f\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><!--nextpage--><\/p>\n<h2>Web\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u3046<\/h2>\n<p>Apcupsd\u3067\u306f\u3001Web\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u304cCGI\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u3057\u3066\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305a\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067Web\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u300cApache HTTP Server\u300d\u3092\u5c0e\u5165\u3057\u3001CGI\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true\">$ sudo apt install apache2\n$ sudo a2enmod cgid\n$ sudo systemctl restart apache2\n<\/pre>\n<p>\u5148\u307b\u3069\u306eApcupsd\u306e\u30d3\u30eb\u30c9\u3067\u4f5c\u6210\u3055\u308c\u305f\u56db\u3064\u306eCGI\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u300c\/usr\/lib\/cgi-bin\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306b\u30b3\u30d4\u30fc\u3057\u3001\u6240\u6709\u8005\u3092Apache HTTP Server\u306e\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\uff08www-data\uff09\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true \">$ sudo cp ~\/apcupsd-3.14.14\/src\/cgi\/*.cgi \/usr\/lib\/cgi-bin\n$ cd \/usr\/lib\/cgi-bin\n$ sudo chown www-data.www-data multimon.cgi upsfstats.cgi upsimage.cgi upsstats.cgi<\/pre>\n<p>\u3053\u3053\u307e\u3067\u7d42\u3048\u305f\u3089\u3001\u30ea\u30e2\u30fc\u30c8\u30a2\u30af\u30bb\u30b9\u7528\u30d1\u30bd\u30b3\u30f3\u306eWeb\u30d6\u30e9\u30a6\u30b6\u30fc\u3092\u8d77\u52d5\u3057\u3066\u300chttp:\/\/Ubuntu Server\u306eIP\u30a2\u30c9\u30ec\u30b9\/cgi-bin\/multimon.cgi\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<strong>\u56f35<\/strong>\u306e\u753b\u9762\u304c\u958b\u304d\u307e\u3059\u3002\u300cStatus\u300d\u304c\u300cONLINE\u300d\u3067\u3042\u308c\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u3068Smart-UPS\u304c\u3064\u306a\u304c\u3063\u3066\u3044\u307e\u3059\u3002\u300cBattery Chg\u300d\u304c\u30d0\u30c3\u30c6\u30ea\u30fc\u306e\u5145\u96fb\u72b6\u614b\u3001\u300cBatt. Run Time\u300d\u304c\u30d0\u30c3\u30c6\u30ea\u30fc\u99c6\u52d5\u6642\u9593\u3067\u3059\u3002\u30d0\u30c3\u30c6\u30ea\u30fc\u99c6\u52d5\u6642\u9593\u306f\u7d66\u96fb\u3059\u308b\u96fb\u529b\u306b\u3088\u3063\u3066\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<div id=\"attachment_3195\" style=\"width: 600px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3195\" class=\" wp-image-3195\" src=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu5-300x63.png\" alt=\"\" width=\"590\" height=\"124\" srcset=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu5-300x63.png 300w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu5-768x160.png 768w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu5.png 931w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><p id=\"caption-attachment-3195\" class=\"wp-caption-text\">\u56f35\u3000Web\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9<\/p><\/div>\n<p>\u300cLocal Host\u300d\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001Smart-UPS\u306e\u8a73\u7d30\u306a\u72b6\u614b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff08<strong>\u56f36<\/strong>\uff09\u3002<\/p>\n<div id=\"attachment_3196\" style=\"width: 554px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3196\" class=\" wp-image-3196\" src=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu6-300x214.png\" alt=\"\" width=\"544\" height=\"388\" srcset=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu6-300x214.png 300w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu6-768x547.png 768w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/12\/zu6.png 818w\" sizes=\"auto, (max-width: 544px) 100vw, 544px\" \/><p id=\"caption-attachment-3196\" class=\"wp-caption-text\">\u56f36\u3000UPS\u306e\u72b6\u614b\u306e\u8a73\u7d30<\/p><\/div>\n<h2>\u6b21\u56de\u306f<\/h2>\n<p>\u4eca\u56de\u306f\u3001UPS\u3092\u6271\u3044\u307e\u3057\u305f\u3002UPS\u306f\u3001\u30d0\u30c3\u30c6\u30ea\u30fc\u3092\u5185\u8535\u3057\u3066\u3044\u307e\u3059\u3002\u30d0\u30c3\u30c6\u30ea\u30fc\u306b\u306f\u5bff\u547d\u304c\u3042\u308a\u3001\u53d6\u308a\u63db\u3048\u6642\u671f\uff08\u8a73\u3057\u3044\u4ea4\u63db\u6642\u671f\u306f<a href=\"https:\/\/www.se.com\/jp\/ja\/faqs\/FA53025\/\">\u3053\u3061\u3089<\/a>\uff09\u306b\u306f\u65b0\u3057\u3044\u3082\u306e\u3068\u4ea4\u63db\u3057\u307e\u3059\u3002\u30d0\u30c3\u30c6\u30ea\u30fc\u304c\u52a3\u5316\u3057\u3066\u3044\u308b\u3068\u3001\u30d0\u30c3\u30c6\u30ea\u30fc\u7d66\u96fb\u306b\u5207\u308a\u66ff\u308f\u3063\u305f\u77ac\u9593\u306b\u96fb\u6e90\u304c\u843d\u3061\u305f\u308a\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2\u306e\u6545\u969c\u306b\u3082\u3064\u306a\u304c\u308a\u307e\u3059\u306e\u3067\u3001\u5341\u5206\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u6b21\u56de\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u623b\u3063\u3066\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306e\u6697\u53f7\u5316\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p style=\"text-align: right;\">written by \u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u30de\u30ac\u30b8\u30f3\u7de8\u96c6\u90e8\uff08\u3042\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u793e\u5185\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u306e\u904b\u7528\u7ba1\u7406\u3067\u898b\u843d\u3068\u3057\u304c\u3061\u306a\u306e\u304c\u300c\u96fb\u6e90\u300d\u306b\u5bfe\u3059\u308b\u4fdd\u8b77\u3067\u3059\u3002\u5b89\u5b9a\u3057\u305f\u96fb\u5727\u3084\u96fb\u6d41\u3092\u5e38\u306b\u4f9b\u7d66\u3057\u306a\u3051\u308c\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u3063\u3066\u505c\u6b62\u3084\u6545\u969c\u3057\u304b\u306d\u307e\u305b\u3093\u3002 \u5b89\u5b9a\u3057\u305f\u96fb\u6e90\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2\u304c\u300c\u7121\u505c\u96fb\u96fb\u6e90\u88c5\u7f6e\u300d\uff08UPS\uff1aUninterruptible Power Supply\uff09\u3067\u3059\u3002UPS\u3092\u7528\u3044\u308b\u3068\u3001\u96fb\u5727\u5024\u3084\u96fb\u6d41\u5024\u304c\u4f4e\u4e0b\u3057\u305f\u3068\u304d\u306b\u88dc\u3048\u305f\u308a\u3001\u96fb\u6e90\u65ad\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306b\u81ea\u52d5\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3<a href=\"https:\/\/shell-mag.com\/27th_linuxoperations\/\">\uff3b\u2026\uff3d<\/a><\/p>\n","protected":false},"author":9,"featured_media":3191,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-3190","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-article"],"_links":{"self":[{"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/posts\/3190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/comments?post=3190"}],"version-history":[{"count":7,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/posts\/3190\/revisions"}],"predecessor-version":[{"id":3216,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/posts\/3190\/revisions\/3216"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/media\/3191"}],"wp:attachment":[{"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/media?parent=3190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/categories?post=3190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/tags?post=3190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}