| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-03-2013, 10:26 PM
|
#1
|
|
Member
Registered: Aug 2011
Posts: 83
Rep: 
|
Set up UPS on Ubuntu Server
Hi,
I just got a UPS Eaton Powerware 5110 1000A that I'd like to plug into my Ubuntu Server 12.04 LTS. I have done this with machine running on Windows XP SP3. However, as I'm quite familiar but not too savvy with Linux machine, I'm not sure if I should set it up using the CD that comes with the UPS or from the following link that teaches how to install 5110 on Ubuntu
https://help.ubuntu.com/community/Po...5110UPSin12.04
Any help would be greatly appreciated.
Thank you
|
|
|
|
01-03-2013, 10:59 PM
|
#2
|
|
Member
Registered: Jan 2012
Distribution: Slackware
Posts: 752
Rep: 
|
Eaton has their own, propriatary management software which come bundled with their UPS units and can be downloaded from their web site as well.
The link points to an article describing how monitor a 5110 using Network UPS Tools, a free, open-source power management tool.
You may use either program to manage your UPS.
|
|
|
|
01-17-2013, 02:24 AM
|
#3
|
|
Member
Registered: Aug 2011
Posts: 83
Original Poster
Rep: 
|
Thank you for your reply.
Sorry for the late reply.
I decided to follow the steps from the link mentioned in my opening thread which is https://help.ubuntu.com/community/Po...5110UPSin12.04
1. install nut by "apt-get install nut"
<...>
However, I was stuck at the point where I need to edit the following file:
gksudo gedit /etc/udev/rules.d/99_nut-serialups.rules
Well, there is no such file as 99_nut-serialups.rules under /etc/udev/rules.d.
I'm not sure if this procedure is designed for a normal Ubuntu desktop 12.04, not for Server 12.04.
Any help would be greatly appreciated.
Thank you
|
|
|
|
01-17-2013, 03:00 AM
|
#4
|
|
Member
Registered: Jan 2012
Distribution: Slackware
Posts: 752
Rep: 
|
Quote:
Originally Posted by said76
However, I was stuck at the point where I need to edit the following file:
gksudo gedit /etc/udev/rules.d/99_nut-serialups.rules
Well, there is no such file as 99_nut-serialups.rules under /etc/udev/rules.d.
|
Did you try creating one?
|
|
|
|
01-17-2013, 07:50 PM
|
#5
|
|
Member
Registered: Aug 2011
Posts: 83
Original Poster
Rep: 
|
Thank you for your reply.
No, I didn't. I can try to create one and see what happens.
Thank you very much
|
|
|
|
01-22-2013, 03:46 PM
|
#6
|
|
Member
Registered: Aug 2011
Posts: 83
Original Poster
Rep: 
|
Thank you for your reply.
I have been testing it for a couple of days consecutively because the first and the second days did not work as I wanted it to.
What happened was it did not shut down immediately when the power went out although I had set "SHUTDOWNCMD" to "/sbin/shutdown -h now". I actually waited for a couple of minutes and it still did not shut down. I did not get any message that's indicating it's going to shutdown in x minutes or something at all.
This is how I installed it based on the link I mentioned in my opening post.
Installing: apt-get install nut
Editing /etc/nut/ups.conf :
[Powerware5110]
driver = bcmxcp_usb
port = auto
I use port=auto Since I use USB cable to connect my Powerware 5110 to my Ubuntu server 12.04 LTS
I created a file /etc/udev/rules.d/99_nut-serialups.rules and add the following:
KERNEL=="ttyS0", GROUP="nut"
Then, Start:
$ sudo udevadm control --reload-rules
$ sudo udevadm trigger
$ sudo upsdrvctl start
Network UPS Tools - UPS driver controller 2.4.6
Network UPS Tools - BCMXCP UPS driver 0.25 (2.4.6)
USB communication subdriver 0.19
Editing /etc/nut/upsd.conf by adding and save:
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCEPT localhost
REJECT all
Editing /etc/nut/upsd.users by adding and save:
[mysystemuser]
password = __YOUR_PASSWORD_HERE__
allowfrom = localhost
upsmon master
Editing /etc/nut/upsmon.conf
This, I'm not sure if I did it right. I actually commented those existing variables in every lines and add the followings to the last line:
MONITOR Powerware5110@localhost 1 mysystemuser __YOUR_PASSWORD_HERE__ master
POWERDOWNFLAG /etc/killpower
SHUTDOWNCMD "/sbin/shutdown -h now"
and save.
then, change permissions
sudo chown root:nut /etc/nut/*
sudo chmod 640 /etc/nut/*
Editing /etc/default/nut
START_UPSD=yes
START_UPSMON=yes
Editing /etc/nut/nut.conf
MODE=standalone
Start nut: sudo /etc/init.d/nut start
Then, did sudo upsc Powerware5110 and received the following:
ambient.temperature.high: 137
ambient.temperature.low: 34
battery.charge.low: 22
battery.voltage: 26.9
device.mfr: Eaton
device.model: POWERWARE UPS 1000i
device.serial:
device.type: ups
driver.name: bcmxcp_usb
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.6.3
driver.version.internal: 0.25
input.frequency: 50.1
input.frequency.high: 55
input.frequency.low: 45
input.frequency.nominal: 50
input.transfer.boost.high: 216
input.transfer.high: 280
input.transfer.low: 186
input.transfer.trim.low: 260
input.voltage: 246
input.voltage.nominal: 240
output.current: 0.6
output.current.nominal: 2.5
output.frequency: 50.1
output.phases: 1
output.voltage: 246
output.voltage.nominal: 240
ups.beeper.status: enabled
ups.firmware: Cont:00.50 Inve:01.50
ups.load: 24.0
ups.mfr: Eaton
ups.model: POWERWARE UPS 1000i
ups.power.nominal: 1000
ups.serial:
ups.status: OL
So it seems like everything is working fine.
When I deliberately switched my main power off, I could hear my powerware 5110 start beeping and saw the "ups.status: ALARM OB".
So everything looks fine. But it didn't turn off the server right away.
WOndering if you could advice me where I did it wrong that might cause it not to work properly.
Thank you
|
|
|
|
01-22-2013, 06:35 PM
|
#7
|
|
Member
Registered: Jan 2012
Distribution: Slackware
Posts: 752
Rep: 
|
Normally, nut will not initiate shutdown until the UPS reports a low battery condition. If that's not wat you want, take a look at man upssched.
|
|
|
|
01-23-2013, 05:00 PM
|
#8
|
|
Member
Registered: Aug 2011
Posts: 83
Original Poster
Rep: 
|
Thank you for your reply.
Yes, you're absolutely right about using the upssched. After reading the upssched manual as suggested, it now does what I want it to do that is wait for 60 secs before shutting down.
It's all good now
Thank you for your help
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:46 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|