Changes

From SME Server
Jump to navigationJump to search
m
no edit summary
Line 1: Line 1:  
==To set up apcupsd on SME 7.4==
 
==To set up apcupsd on SME 7.4==
   −
===Setup the DAG repository===
+
----------------------------------------------------------------------------------------
   −
{{Repository|Dag}}
+
First setup DAG repository
   −
===Installation===
+
http://wiki.contribs.org/Dag
Install ''apcupsd''
+
 
 +
INSTALL APCUPSD
 
  yum install --enablerepo=dag --enablerepo=base apcupsd
 
  yum install --enablerepo=dag --enablerepo=base apcupsd
   −
Copy original ''conf'' file
+
COPY ORIGINAL CONF
  cp apcupsd.conf apcupsd.conf.orig
+
  cp /etc/apcupsd/apcupsd.conf /etc/apcupsd/apcupsd.conf.orig
   −
Copy ''CGI'' files
+
COPY CGI FILES
 
  cp /var/www/apcupsd/* /home/e-smith/files/ibays/Primary/cgi-bin/
 
  cp /var/www/apcupsd/* /home/e-smith/files/ibays/Primary/cgi-bin/
   −
Link the startup script
+
LINK STARTUP SCRIPT
 
  ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99apcupsd
 
  ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99apcupsd
   −
Set the Service in SME
+
SET SERVICE IN SME
 
  config set apcupsd service status enabled
 
  config set apcupsd service status enabled
   −
===Configuration===
+
-------------------------------------------------------------------------
 +
 
 
Edit /etc/apcupsd/apcupsd.conf. The conf file has good detail on setup options.
 
Edit /etc/apcupsd/apcupsd.conf. The conf file has good detail on setup options.
   Line 27: Line 29:  
Set TIMEOUT to 10 for testing.
 
Set TIMEOUT to 10 for testing.
   −
Reboot or  
+
Reboot or /etc/init.d/apcupsd start to start the service.
/etc/init.d/apcupsd start  
  −
to start the service.
     −
===Usage===
+
http://host.domain/cgi-bin/multimon.cgi  gives a nice look at the UPS status, including a log of past events
http://yourdomain.tld/cgi-bin/multimon.cgi  gives a nice look at the UPS status, including a log of past events
     −
----
   
[[Category:Howto]]
 
[[Category:Howto]]
[[Category:Administration]]
 

Navigation menu