Linux - ServerThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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"
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"
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.