ups plugin question

Added by Lynn Cress about 1 year ago

I have installed the Nexenta plugin for ups management on our DR system. The ups is a Tripplite SmartOnline and the driver I am using is 'tripplitesu', which seems to work fine. I can send commands to the Tripplite without problem, get statistics, etc.

However when I set the battery threshhold using the following in nmc: setup ups Tripplite modify lowbatt

and set the threshold to say 50%, then unplug the ups and watch the battery level drop, the battery level goes right past 50% but the Nexenta head never gracefully shuts down. Nothing happens until the battery completely discharges and kills the power (ouch).

The config files are in /etc/nut and in the upsd.users file there is a user called 'nzaups'. But no user with that name exists in the /etc/passwd file. Does this user need to be added to the system and given shutdown privileges?

Not sure why the system does not shut down past the battery threshold. Anybody have a clue as to what to do next?


Replies

RE: ups plugin question - Added by Linda Kateley about 1 year ago

have you looked at the nut documentation? i think we just use the standard nut

http://www.networkupstools.org/docs/user-manual.chunked/ar01s02.html#configuringand_using

RE: ups plugin question - Added by Lynn Cress about 1 year ago

Well, it doesn't look like the Nexnenta implementation is based entirely on standard nut. The docs from the link refer to settings for upsmon.conf, which don't seem to be used by the Nexenta plugin, because it only exists as upsmon.conf.sample in /etc/nut. Hence not configured by the NX ups plugin.

Also in answer to my own question, it doesn't appear that the user 'nzaups' is used at all in upsd.users. I found the following in /var/adm/messagess:

[ID 702911 daemon.warning] allowfrom in upsd.users is no longer used

If I can't find the secret to getting the ups plugin to work, I may have to revert to an earlier checkpoint and try to install the standard nut drivers, then try to configure going that way.

RE: ups plugin question - Added by Linda Kateley about 1 year ago

let's see what i can find.. might take me a day or so.. stand by

lk

RE: ups plugin question - Added by Lynn Cress about 1 year ago

Thanks, Linda.

On 12/20/2011 3:30 PM, NexentaStor.org wrote:

http://www.nexentastor.org/boards/1/topics/4420 Linda Kateley

let's see what i can find.. might take me a day or so.. stand by

lk

-- Lynn Cress Sr. Systems/Network Administrator Washburn University phone: (785) 670-2387

RE: ups plugin question - Added by Alek P about 1 year ago

Lynn, couple of questions:

What's the model number of your Tripplite SmartOnline UPS? How are you connecting to the UPS - serial or usb?

-Alek

RE: ups plugin question - Added by Lynn Cress about 1 year ago

Alek,

Thanks for the reply. I'm not in the office this week but our Tripplite model is very similar to a SU1500RTXL2UA http://www.tripplite.com/en/products/model.cfm?txtSeriesID=934&txtModelID=2949.

And I am hooked up using a serial connection. Couldn't get it to work with USB.

I appreciate any advice you can impart.

Lynn

On 12/27/2011 7:10 PM, NexentaStor.org wrote:

http://www.nexentastor.org/boards/1/topics/4420 Alek P

Lynn, couple of questions:

What's the model number of your Tripplite SmartOnline UPS? How are you connecting to the UPS - serial or usb?

-Alek

RE: ups plugin question - Added by Alek P about 1 year ago

I've got the shutdown working through upsmon without a UPS on my system. One problem is that upsmon.conf file is missing.

Give the following a shot:

cp /etc/nut/upsmon.conf.sample  /etc/nut/upsmon.conf
chown root:nut /etc/nut/upsmon.conf
chmod 0640 /etc/nut/upsmon.conf

add the MONITOR line in /etc/nut/upsmon.conf to monitor your UPS, for a simple set-up something like:

MONITOR *ur_ups_name*@localhost 1 nzaups *nzaups_password* master

will do (the password for nzaups is in upsd.users). Then edit /etc/nut/upsmon.conf SHUTDOWNCMD line to be

SHUTDOWNCMD "poweroff"

After reboot I'm now able to interact with upsmon, including a test forced shutdown sequence (FSD): "upsmon -c fsd".

Unfortunately my UPS is buried under some servers right now so this is as far as I got without it. Can you see if the above changes make it possible to battery level shutdown?

There is good info at http://www.networkupstools.org/docs/user-manual.chunked/ar01s06.html#UPS_shutdown including what "upsmon -c fsd" is suppose to do and a sample shutdown script that would also turn of your UPS as the system shuts down.

-Alek

RE: ups plugin question - Added by Lynn Cress about 1 year ago

Thanks, Alek! That did the trick.

Kind of makes you wonder why the Nexenta plugin doesn't setup upsmon.conf like it does the other config files.

BTW, I am using the following for my SHUTDOWN command:

   /usr/sbin/shutdown -y -g 10 -i 5

The plugin now sees the battery threshold and appears to run the above string, shuts down the OS, but doesn't actually kill the power on the head. On other UNIX systems init level 0 would shutdown and power off the box but in Solaris its init level 5?

RE: ups plugin question - Added by Linda Kateley about 1 year ago

Thanks for bringing the to our attention lynn, we will now file a bug and try to get it fixed.