LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2004, 07:27 AM   #1
Denis Basta
LQ Newbie
 
Registered: Jan 2004
Location: Latvia, Riga
Posts: 12

Rep: Reputation: 0
Ups & Nut


I've downloaded Nut software for UPS monitoring.

http://eu1.networkupstools.org/source.html

Here are configuration files:

ups.conf
------------------------------------------------------------------------
[empire]
driver = powermust
port = /dev/ttyS0
desc = "EMPIRE UPS"
------------------------------------------------------------------------

upsd.conf
------------------------------------------------------------------------
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32

ACCESS grant all localhost
ACCESS deny all all
------------------------------------------------------------------------

upsd.users
------------------------------------------------------------------------
[admin]
password = qq
allowfrom = localhost
actions = set
instcmds = all

[empire]
password = qq
allowfrom = localhost
upsmon master
------------------------------------------------------------------------

upsmon.conf
------------------------------------------------------------------------
RUN_AS_USER nut
MONITOR empire@localhost empire qq master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/reboot"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG "/etc/killpower"
NOTIFYFLAG ONLINE WALL
NOTIFYFLAG ONBATT WALL
NOTIFYFLAG LOWBATT WALL
NOTIFYFLAG SHUTDOWN WALL
FINALDELAY 5
------------------------------------------------------------------------



Starting scripts:
------------------------------------------------------------------------
/usr/local/ups/bin/upsdrvctl start
/usr/local/ups/sbin/upsd
------------------------------------------------------------------------

This two scripts runs great -- everything looks like it must be.

But after I run:
/usr/local/ups/sbin/upsmon

I get this error:

Network UPS Tools upsmon 1.4.1
Unable to use old-style MONITOR line without a username
Convert it and add a username to upsd.users - see the documentation
Fatal error: unusable configuration



But I am using new MONITOR line.

Maybe someone has had something similar?
 
Old 09-27-2005, 08:09 PM   #2
jlkaus
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Rep: Reputation: 2
howdy. Relatively simple fix.
Your monitor line should be
MONITOR empire@localhost 1 empire qq master

Looks like you forgot the "1" there. That number says how many actual UPSs are connected to the machine, as I recall.

--Kaus
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
‎Logitech RumblePad 2 USB is seen as a UPS in Mandriva 2005LE. bb002 Linux - Hardware 1 10-09-2005 08:04 PM
NUT and CyberPower UPSs cellist Linux - Hardware 3 07-05-2005 03:55 PM
going nut with linux tv sathia Slackware 3 03-12-2005 10:58 PM
Usb & Ups LinxAI Linux - Hardware 1 05-11-2004 02:39 PM
sound is doing my nut (alsa) dhbiker Slackware 2 04-11-2004 06:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration