User Tools

Site Tools


install_webmin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
install_webmin [2021/01/25 16:26] chrisinstall_webmin [2021/01/25 16:54] (current) chris
Line 8: Line 8:
  
    nano /etc/apcupsd/apcupsd.conf    nano /etc/apcupsd/apcupsd.conf
 +
 +and edit the following lines:
  
    UPSNAME smartups750    UPSNAME smartups750
Line 15: Line 17:
    POLLTIME 60    POLLTIME 60
  
 +   cp /etc/default/apcupsd /etc/default/apcupsd.bak
 +
 +   nano /etc/default/apcupsd
 +
 +and set the following line to yes:
 +
 +   ISCONFIGURED=yes
 +
 +Do a test to see if your APC communicates with your server with:
 +
 +   apcaccess status
 +
 +You should see something like:
 +
 +   APC      : 001,017,0423
 +   DATE     : 2021-01-01 12:00:00 +0100  
 +   HOSTNAME : validate
 +   VERSION  : 3.14.14 (31 May 2016) debian
 +   CABLE    : USB Cable
 +   DRIVER   : USB UPS Driver
 +   UPSMODE  : Stand Alone
 +   STARTTIME: 2021-01-25 16:25:30 +0100  
 +   STATUS   : COMMLOST 
 +   MBATTCHG : 5 Percent
 +   MINTIMEL : 3 Minutes
 +   MAXTIME  : 0 Seconds
 +   NUMXFERS : 0
 +   TONBATT  : 0 Seconds
 +   CUMONBATT: 0 Seconds
 +   XOFFBATT : N/A
 +   STATFLAG : 0x05000100
 +   END APC  : 2021-01-01 12:00:00 +0100 
 +
 +If you see this, you have installed the drivers correctly and you can move on to configure Webmin. Herefore we need de graphicle module of the Apache Webserver. To do this enter the following in your terminal:
 +
 +   apt-get -y install apcupsd-cgi
 +   
 +If you use the webmin module you need to configure the following:
 +
 +   cp /usr/lib/cgi-bin/apcupsd/*.cgi /etc/apcupsd/
 +
 +Download this file {{ ::apcupsd0.812.wbm_.gz |}} and head over to your Webmin Interface.
 +
 +Go to "Webmin Configuration" in the left navigation pane and select "Webmin Modules".
 +
 +In "Install From" select "from uploaded file" and head over to the file you just downloaded. Press the button Install Module at the bottom of the page. The message should say that the installation went successful. Re-boot your server and login to your Webmin-Interface again. If you have done everthing right you should see the graphical status when going to TOOLS - APC UPS DAEMON in the navigation pane. 
 +
 +{{ ::screenshot_2021-01-25_at_16.53.13.png |}}
 +
 +That's all!
 \\ \\
 \\ \\
install_webmin.1611588409.txt.gz · Last modified: 2021/01/25 16:26 by chris