{"id":372,"date":"2010-06-03T22:08:26","date_gmt":"2010-06-03T21:08:26","guid":{"rendered":"http:\/\/www.sciencetronics.com\/greenphotons\/?p=372"},"modified":"2025-06-16T18:38:27","modified_gmt":"2025-06-16T16:38:27","slug":"webmin-and-apcupsd","status":"publish","type":"post","link":"https:\/\/www.sciencetronics.com\/greenphotons\/?p=372","title":{"rendered":"Webmin and apcupsd"},"content":{"rendered":"<p>As I have reported earlier, I decided to run <a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/?p=294\"><em>webmin<\/em> on my new server<\/a>. I have also reported about my UPS which keeps my server running whenever Vattenf*ll fails to supply my flat with electricity &mdash; at least for about half an hour before the server is controllably shut down.<\/p>\n<p>Now with <a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/?p=319\">new batteries in the UPS<\/a> I can relax, but I still would like to know the status of the UPS and even check it remotely. The <em>webmin<\/em> administration tool, however, does not directly support querying the <em>apcupsd<\/em> daemon controlling the UPS. This is amazing given the fact which variety of system components of a regular linux system are supported by webmin.<\/p>\n<p>Searching the net <a href=\"http:\/\/diego.caravana.to\/software\/webmin-apc-ups-modules-mirror\/\" target=\"_blank\">I found another blog<\/a> describing exactly this missing link. I don&#8217;t know the deeper reasons why this module is not included in the <em>webmin<\/em> repository. I gave it a try not only on my server but also on a linux server at work and it works flawlessly. In order to spread the knowledge about this module even further I decided to write these few lines about its usage and installation, and I also uploaded it onto my own server: you can download <a href=\"http:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2010\/06\/apcupsd0.812.wbm_.gz\"><em>apcupsd0.812.wbm.gz<\/em><\/a> here.<\/p>\n<p>The installation of this module is quite simple &mdash; even though it took me some more time than necessary both times. This was because I didn&#8217;t succeed in uploading the module package through the <em>webmin<\/em> interface. This might be a misconfiguration of <em>webmin<\/em> on my server, but I found a simple way: transfer the un-zipped module file onto your server &mdash; make sure that the un-zipped file is named <em>apcupsd0.812.wbm<\/em>. Then install it into <em>webmin<\/em> as a local file. In my configuration I then had to adapt the configuration of the module, especially the location of the <em>cgi<\/em> files of the <em>apcupsd<\/em> daemon. Finished&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I have reported earlier, I decided to run webmin on my new server. I have also reported about my UPS which keeps my server running whenever Vattenf*ll fails to supply my flat with electricity &mdash; at least for about half an hour before the server is controllably shut down. Now with new batteries in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":309,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[22,8],"tags":[],"class_list":["post-372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computers_en","category-everything_en","entry","has-media"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.sciencetronics.com\/greenphotons\/wp-content\/uploads\/2010\/04\/20100419_APCUPS.png","jetpack_shortlink":"https:\/\/wp.me\/p48grL-60","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=372"}],"version-history":[{"count":8,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":2550,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/posts\/372\/revisions\/2550"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=\/wp\/v2\/media\/309"}],"wp:attachment":[{"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sciencetronics.com\/greenphotons\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}