Nut: Difference between revisions

From DWIKI
No edit summary
 
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== NUT - Network UPS Tools ==
* [http://www.networkupstools.org/ Network UPS Tools]
The primary goal of the Network UPS Tools (NUT) project is to provide reliable monitoring of UPS hardware and ensure safe shutdowns of the systems which are connected.


./configure --prefix=/usr/local --sysconfdir=/etc/ups --with-user=ups
=== building ===
make
#maybe consider using 'nut' for username, to avoid possible confusion with existing tools
make install
./configure --prefix=/usr/local --sysconfdir=/etc/ups --with-user=ups
make install-conf
make
groupadd ups
make install
useradd ups
make install-conf
groupadd ups
useradd -g ups ups
chown ups.ups /dev/ttyS0
chmod 0600 /dev/ttyS0
mkdir /var/state/ups
chmod 0700 /var/state/ups
chown ups.ups /var/state/ups
 
=== configuring ===
first ups.conf
 
=== running ===
upsdrvctl start
upsd -u ups &
upsmon -u ups
#query the ups
upsc myups@localhost
 
=== notes ===
 
newhidups uses libusb, which means disable hiddev in kernel config?

Latest revision as of 14:54, 1 September 2006

NUT - Network UPS Tools

The primary goal of the Network UPS Tools (NUT) project is to provide reliable monitoring of UPS hardware and ensure safe shutdowns of the systems which are connected.

building

#maybe consider using 'nut' for username, to avoid possible confusion with existing tools
./configure --prefix=/usr/local --sysconfdir=/etc/ups --with-user=ups
make
make install
make install-conf
groupadd ups
useradd -g ups ups
chown ups.ups /dev/ttyS0
chmod 0600 /dev/ttyS0
mkdir /var/state/ups
chmod 0700 /var/state/ups
chown ups.ups /var/state/ups

configuring

first ups.conf

running

upsdrvctl start
upsd -u ups &
upsmon -u ups
#query the ups
upsc myups@localhost

notes

newhidups uses libusb, which means disable hiddev in kernel config?