Hi - I have 5 Linux servers connected to 1 SmartUPS 2200 VA. The software from APC for Linux requires a Windows machine be present on the network as a server in order to manage the Linux machines. This is a show stopper for us since we don't have access to any Windows machines. My first impression of NUT is it can shutdown the machine connected to the UPS via the serial cable but it can't shutdown the other machines. Is this true? If this is true, any ideas on how to shutdown the other machines? -- Ken
Simpson, Kenneth wrote:> > > Hi - I have 5 Linux servers connected to 1 SmartUPS 2200 VA. > > The software from APC for Linux requires a Windows machine be > present on the network as a server in order to manage the Linux > machines. > > This is a show stopper for us since we don't have access to any > Windows machines. > > My first impression of NUT is it can shutdown the machine connected > to the UPS via the serial cable but it can't shutdown the other > machines. > > Is this true?No.> If this is true, any ideas on how to shutdown the other machines?You can shut down any number of machines, connected to any number of UPSs. You just have to run upsmon on every machine you want to shut down ("slave", "client"), and upsd on every machine that controls a UPS ("master", "server"). See the sections on the MONITOR directive in the file INSTALL, and in upsmon.conf(5). See also the file docs/data-room.txt. -- Peter
On Tue, Feb 20, 2007 at 02:21:35PM -0800, Simpson, Kenneth wrote:> My first impression of NUT is it can shutdown the machine connected > to the UPS via the serial cable but it can't shutdown the other machines. > > Is this true?No. You run upsmon on any machine that must be shut down. On the one connected to the ups you put MONITOR ups ..... master and on the others MONITOR ups ... slave in the upsmon.conf file /Niels -- Niels Baggesen - @home - ?rhus - Denmark - nba@users.sourceforge.net The purpose of computing is insight, not numbers --- R W Hamming
No, you can shut down any number of machines connected to any number of UPS's. The flow of UPS state data goes like so: 1) UPS Driver connects via serial/USB to UPS, provides data through socket (in /var/lib/nut on my system). 2) upsd reads data from socket, provides access to it via tcp port 3493 3) upsmon connects to tcp socket to monitor one or more UPSs and trigger shutdown when conditions are met. On the multiple system/UPS thing: 1) You need as many ups drivers as there are UPSs, one monitors each. 2) There only needs to be one copy of upsd, it concatenates the data from multiple UPS drivers (that is ignoring situations where you have multiple UPSs but attached to different machines). 3) Every machine that is to be shut down needs its own copy of upsmon, all reading from upsd on the host machine with the UPS attached. As well as upsmon, there are monitoring apps that connect to upsd to to show UPS status, NUT comes with 'upsc' (command line), but there are graphical ones too, 'knutclient' (http://www.alo.cz/knutclient/) for instance. Someone has made diagrams that explain this perfectly, but I can't find them. They're probably on http://www.networkupstools.org somewhere. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20070221/22300bcb/attachment.pgp