LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ups not able to communicate with ups software (https://www.linuxquestions.org/questions/linux-software-2/ups-not-able-to-communicate-with-ups-software-4175518571/)

beopen 09-14-2014 02:10 PM

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.

Ser Olmy 09-14-2014 02:49 PM

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.)

beopen 09-15-2014 03:22 AM

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.


All times are GMT -5. The time now is 12:14 PM.