LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-14-2014, 02:10 PM   #1
beopen
LQ Newbie
 
Registered: May 2012
Posts: 21

Rep: Reputation: Disabled
ups not able to communicate with ups software


system - debian jessie

i am using winpower s/w for my ups.
an previous version of the same is working well both on ubuntu and windows.
a new version i downloaded today and installed on my debian system.
and the ups is not detected by the winpower s/w.
i installed the same as root as per the install manual.
The ups uses a rs232 serial port.

When the previous version i installed on ubuntu, i followed the same procedure and it works fine.
Same only is the procedure even now.

How should i now proceed for the same.
 
Old 09-14-2014, 02:49 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
Are you getting a specific error message?

Could the older version still be running in the background, locking the serial port? (Uninstalling a program and deleting an executable does not kill a running process.)
 
Old 09-15-2014, 03:22 AM   #3
beopen
LQ Newbie
 
Registered: May 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
see first i make some things clear to avoid confusion.
1.this is the first time install on this debian system of a ups s/w.This is a 64 bit ver.
2.The old version of this s/w i had installed on ubuntu and it worked fine there and is still working on my ubuntu. it was 32bit ver.
3.On ubuntu i installed and the s/w upon startup loads the agent and all we have to do later is to open the manager program, in case should we have to change any settings. Else after install it is a forget chapter issue. Everything is fine by itself.
4.On debian also it is supposed to be the same.Unfortunately it is not working that way as of now. Which is what i am investigating.
5.Now next is how this s/w works. it first loads the agent s/w upon startup as i mentioned above and everything is fine.Once after reaching the desktop,Should you need to do any changes all you have do is to click the manager / monitor program and the ups manager gets loaded, where you can do whatever you want.
else there is no need for any fiddling once the s/w is installed. If power goes, it automatically warns.
6.On debian as of now with the new version which i installed for the first time, i am finding, the ups agent services and monitoring services are not getting started on startup.
Hence the ups is also not getting detected.
7.I reproduce below a portion from the faq. Should in case this may be of any help.
Quote:
UPS can’t communicate with Winpower under Debian Etch Stable Core 2.6 18-5-486
Method to fix it :
1.
Here are the procedures to solve this question:
Login in Debian as root, the permission of general user is limited to install winpower.
Debian refuse to login as root, some special settings is needed.
Remark
a. In the login interface, there are three icons: “Language“, “Session“, “Action“, choose
“Action“
b. Choose the last icon of “configure the login manager” in the dialog pop-up
c. Choose the icon of “security” in the dialog pop-up
d. Choose “allow local system administrator login”
2.
Input the user name of root and the password, and then install the winpower
manually.
Use the command “./agent start“ to start Winpower service, and then use the command
of “./monitor“ to start the monitor interface
3.
Copy the document of s99UPS from Linux (attached CD) to /etc/rcS.d,
The file s99UPS is used to start Winpower service automatically.
When the computer reboots, Winpower service will be started automatically. Just need to
start the monitor interface by the command “./monitor“
Remark:
a. If the third step is executed, no matter what the user login in as root or a
general user, the communication with UPS will be successful.
b. If the third step have not been executed, you should login as root, and use the
command “./agent start“ to start Winpower service. If login in as a general user, the
communication with UPS will be failed
8.To the quoted text above, i would like to mention that the file S99ups is already there in the /etc/init.d/ folder.
So the s/w does it automatically. I saw the same even in that ubuntu system of mine, where everything is started automatically.
9. lastly when i did this now after all these typing,
i opened thunar as root and cd to the ups s/w folder. and then opened the same in terminal.
and then try to start the services manually.
./agent start

the agent gets started
and thereafter
./monitor
and the s/w manager also gets started.
The s/w is monitoring the ups.
upon a poweroff it also gives me warning
LINE-INT in /dev/ttyS0 input power failed
&
LINE-INT in /dev/ttyS0 input power restored.

10. So how do i now get about this to make the things load on startup and dont need to have to do this whole procedure manually. For by default the s/w is supposed to start the service on startup.
 
  


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
APC UPS backup-ups ES RJ-45 augurseer Linux - Hardware 3 11-18-2009 11:32 PM
UPS Monitoring software for Ubuntu bahadirtonguc Linux - Server 4 11-30-2008 09:34 AM
UPS Software Development pete1234 Programming 2 06-13-2007 09:50 PM
universal ups software? Red Squirrel Linux - Software 5 07-07-2006 06:25 AM
UPS software for linux shanenin Linux - Software 3 06-04-2004 04:18 PM

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

All times are GMT -5. The time now is 04:17 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