LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-24-2024, 01:06 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 177Reputation: 177
apcupsd communications lost


I have an APC UPS connected to one computer: WEBSERVER, with apcupsd.conf settings UPSTYPE usb and NETSERVER on.

Another computer, FILESERVER with apcupsd.config settings UPSTYPE net, DEVICE webserver:3551, POLLTIME 40

For some year I've run this FILESERVER computer with POLLTIME 10 without problem. However, for the past couple of months I've been getting messages from that computer saying "Communications with UPS WEBSERVER lost". I've been moving the POLLTIME gradually up until it's now at 40, but I still keep getting these messages.

These messages are always immediately followed by "Communications with UPS WEBSERVER restored" within the same minute and typically within 5 to 30 seconds of the "lost" message, so nothing bad really happened.

Is there a setting to not send the apparently bogus messages? We don't have an actual power outage so ONBATTERYDELAY doesn't seem appropriate.

Last edited by mfoley; 02-24-2024 at 01:09 PM.
 
Old 02-25-2024, 12:07 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Are there any lost or other status messages in the webserver apcupsd log?

It could be just about anything... software updates, hardware etc. Are any of the servers connecting over wifi?
Have you tried replacing WEBSERVER with IP address to see if it is an intermittent DNS problem?

You manually get status from the file via the apcaccess command. That might provide some indication if you have a network problem.

apcaccess status WEBSERVER:3551
 
1 members found this post helpful.
Old 03-02-2024, 10:48 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,559

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by michaelk View Post
Are there any lost or other status messages in the webserver apcupsd log?
There are 3 Power Failure messages from yesterday in WEBSERVER's log (and power is back within 2 seconds), but only 1 "Communications with UPS WEBSERVER lost" messages from yesterday and 11 today in the FILESERVER's log.
Quote:
It could be just about anything... software updates, hardware etc. Are any of the servers connecting over wifi?
no WiFi.
Quote:
Have you tried replacing WEBSERVER with IP address to see if it is an intermittent DNS problem?

You manually get status from the file via the apcaccess command. That might provide some indication if you have a network problem.

apcaccess status WEBSERVER:3551
That's an idea. I'll change to an IP address and see what happens.

Last edited by mfoley; 03-02-2024 at 10:50 PM.
 
Old 03-11-2024, 01:20 AM   #4
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,559

Original Poster
Rep: Reputation: 177Reputation: 177
It's been over a week using the server IP address and no communication lost messages. So that appears to have solved it. Why it has trouble with the hostname is another question, but one I'm not going to worry about.
 
  


Reply

Tags
apcupsd, communications, lost



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
Pcksh error: communications with remote host lost - Connection timed out vaibhavs17 Linux - Server 0 02-16-2013 02:44 PM
Pcksh error: communications with remote host lost - Connection timed out vaibhavs17 Linux - Networking 1 02-15-2013 06:45 AM
apcupsd says it installed but can't find it alksys7 Linux - Software 1 04-02-2004 10:33 AM
I have a problema using APCUPSD Dapernia Linux - Hardware 0 07-21-2003 04:46 PM
gui for apcupsd tatwell Linux - Software 2 07-14-2003 02:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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