Hello, I've got a setup with NUT, where we've got two UPSes, ups1 and ups2. UPS1 supports our servers, while UPS2 supports our desktop boxes. We monitor both of them via USB on a box now called "upsmon". The interesting point comes here. We monitor both UPSes on the upsmon box, but if UPS2 fails, which supports our desktop boxes, NUT shouldn't initiate a shutdown in itself, or take any action on itself. It just should keep on monitoring and relaying the monitor information to the client boxes. So, the question is, how can I tell nut-upsmon, to not to initiate a shutdown according to UPS2, and even, don't take UPS2 into account when checking if a shutdown is needed, but only depend on UPS1? I saw that it has an option where the number of required UPSes to be online can be defined. But how can i specify which UPSes are needed to be online, and which ones are just being monitored(and the monitoring info relayed) on the current box? -- Your sincerely Gergely Czuczy Publishing Factory Ltd http://www.publishing.hu/
> I've got a setup with NUT, where we've got two UPSes, > ups1 and ups2. UPS1 supports our servers, while UPS2 > supports our desktop boxes. We monitor both of them > via USB on a box now called "upsmon". > > The interesting point comes here. We monitor both > UPSes on the upsmon box, but if UPS2 fails, which > supports our desktop boxes, NUT shouldn't initiate > a shutdown in itself, or take any action on itself. > It just should keep on monitoring and relaying the > monitor information to the client boxes. > > So, the question is, how can I tell nut-upsmon, > to not to initiate a shutdown according to UPS2, > and even, don't take UPS2 into account when checking > if a shutdown is needed, but only depend on UPS1?MONITOR ups1@localhost 1 monmaster blah master MONITOR ups2@localhost 0 monmaster blah master MINSUPPLIES 1> I saw that it has an option where the number of required > UPSes to be online can be defined. But how can i specify > which UPSes are needed to be online, and which ones are > just being monitored(and the monitoring info relayed) on > the current box?See 'man 5 upsmon.conf' for a more detailed explanation. Your setup looks exactly like the 'bizarre configuration' mentioned here by the way http://www.networkupstools.org/features/ Best regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
This is simple. On each machine that you potentially want to shut down, you need to run upsmon, and put one (or more) MONITOR statements into upsmon.conf telling the machine which UPS's it depends on. In your example, on each server, you put: MONITOR ups1@upsmon 1 monuser mypass master and on each desktop: MONITOR ups2@upsmon 1 monuser mypass master Note that the name "upsmon" is a bad name for the machine that your UPS's are attached to, since that machine's purpose is to run upsd and drivers, not upsmon. The program upsmon runs on a machine that you want to shut down, whereas the program upsd runs on a machine that drives a UPS. In case they are the same, you run both sets of programs. See also: upsmon(8) - the sections on "UPS definitions" and "power values" docs/data-room.txt docs/big-servers.txt docs/shutdown.txt - particularly the section on "multiple UPS shutdowns" http://www.networkupstools.org/features/ - the section on "monitoring diagrams" -- Peter Czuczy Gergely wrote:> > Hello, > > I've got a setup with NUT, where we've got two UPSes, > ups1 and ups2. UPS1 supports our servers, while UPS2 > supports our desktop boxes. We monitor both of them > via USB on a box now called "upsmon". > > The interesting point comes here. We monitor both > UPSes on the upsmon box, but if UPS2 fails, which > supports our desktop boxes, NUT shouldn't initiate > a shutdown in itself, or take any action on itself. > It just should keep on monitoring and relaying the > monitor information to the client boxes. > > So, the question is, how can I tell nut-upsmon, > to not to initiate a shutdown according to UPS2, > and even, don't take UPS2 into account when checking > if a shutdown is needed, but only depend on UPS1? > > I saw that it has an option where the number of required > UPSes to be online can be defined. But how can i specify > which UPSes are needed to be online, and which ones are > just being monitored(and the monitoring info relayed) on > the current box? > > -- > Your sincerely > > Gergely Czuczy > Publishing Factory Ltd > http://www.publishing.hu/ > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser >