Difference between revisions of "Uninterruptable Power Supply:LatestGeekery"

From SME Server
Jump to navigationJump to search
Line 29: Line 29:
 
  udevtrigger
 
  udevtrigger
  
The follow the instructions at [[Uninterruptable_Power_Supply]]
+
=== hosts.allow ===
 +
 
 +
NUT uses TCP-Wrappers to provide controlled access to the daemon upsd. To allow this add a fragment to the templates
 +
 
 +
mkdir -p /etc/e-smith/templates-custom/etc/hosts.allow/
 +
mc -e /etc/e-smith/templates-custom/etc/hosts.allow/upsd
 +
 
 +
Paste in the fragment
 +
{
 +
$DB->hosts_allow_spec('nut','upsd');
 +
}
 +
 
 +
and expand the template & restart the service
 +
expand-template /etc/hosts.allow
 +
service nut restart
 +
 
 +
Then follow the excellent instructions at [[Uninterruptable_Power_Supply]]
  
 
* The Geekery is referenced at http://www.networkupstools.org/
 
* The Geekery is referenced at http://www.networkupstools.org/

Revision as of 10:09, 12 June 2013

Update to the Latest Nut Version From the Geekery

PythonIcon.png Skill level: Advanced
The instructions on this page may require deviations from standard procedures. A good understanding of linux and Koozali SME Server is recommended.



Warning.png Warning:
I can provide little feedback if this is without consequence - seems to work currently, these instructions are for SME 8 (repository is el5)


Install Geekery Repository

/sbin/e-smith/db yum_repositories set geekery repository \
 Name 'geekery repository' \
 BaseURL 'http://geekery.altervista.org/geekery/el5/$basearch' \
 EnableGroups no \
 GPGCheck yes \
 GPGKey http://geekery.altervista.org/download.php?filename=GEEKERY-GPG-KEY \
 Visible no \
 status disabled

After adding it to the database updating the configuration file is required:

signal-event yum-modify

Update Nut

yum --enablerepo=geekery update nut

If you are installing a USB UPS, softlink this file in udev rules directory:

ln -s /lib/udev/rules.d/62-nut-usbups.rules /etc/udev/rules.d/62-nut-usbups.rules

and reload udev rules and trigger device detection with these commands:

udevcontrol reload_rules
udevtrigger

hosts.allow

NUT uses TCP-Wrappers to provide controlled access to the daemon upsd. To allow this add a fragment to the templates

mkdir -p /etc/e-smith/templates-custom/etc/hosts.allow/
mc -e /etc/e-smith/templates-custom/etc/hosts.allow/upsd

Paste in the fragment

{
	$DB->hosts_allow_spec('nut','upsd');
}

and expand the template & restart the service

expand-template /etc/hosts.allow
service nut restart

Then follow the excellent instructions at Uninterruptable_Power_Supply

Why

I have a Dell UPS Rack 1920W - if doesn't work on the standard Nut version. After this upgrade it does on the default configuration.