Line 63:
Line 63:
See the [http://www.apcupsd.com/manual/manual.html documentation] for further details
See the [http://www.apcupsd.com/manual/manual.html documentation] for further details
−
+
{{Note box|The UPS EEPROM value for RETPCT (Return Percentage - battery charge required before UPS powers up/on after failure) should be greater than the value of BATTERYLEVEL (battery charge level that initiates a shutdown) in ''/etc/apcupsd/apcupsd.conf''}}
===Configure Multimon etc Scripts===
===Configure Multimon etc Scripts===
The apcupsd-multimon rpm contains four cgi scripts that can be run via the webserver to monitor the UPS(s). The rpm does not install them correctly for SME however so the following modifications are needed.
The apcupsd-multimon rpm contains four cgi scripts that can be run via the webserver to monitor the UPS(s). The rpm does not install them correctly for SME however so the following modifications are needed.
Line 130:
Line 130:
{
{
−
if ((exists $apcupsd{'URL'}) && ($apcupsd{'URL'} ne ''))
+
if ((exists $apcupsd{'URL'}) && ($apcupsd{'URL'} ne '')) {
−
{ $OUT .= "Alias /$apcupsd{'URL'} /opt/apcupsd\n";
+
$OUT .= "Alias /$apcupsd{'URL'} /opt/apcupsd\n";
−
$OUT .= "ScriptAlias /$apcupsd{'URL'} /opt/apcupsd\n"; }
+
}
}
}
Line 156:
Line 156:
}
}
−
Configure and expand the template
+
Configure databases and expand the template
+
db accounts set apcupsd reserved
config setprop apcupsd PublicAccess local
config setprop apcupsd PublicAccess local
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
Line 174:
Line 175:
/etc/init.d/apcupsd stop
/etc/init.d/apcupsd stop
config delete apcupsd
config delete apcupsd
+
db accounts delete apcupsd
rm /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/92apcupsdmon
rm /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/92apcupsdmon
expand-template /etc/httpd/conf/httpd.conf
expand-template /etc/httpd/conf/httpd.conf