[opensuse] Getting apcupsd to work
I just installed apcupsd and have connected an APC BE600M1 600VA UPS. I installed the apcupsd package, along with apcupsd cgi & gui. According to Yast Services Manager, apcupsd has failed. What am I missing to get this to work? tnx jk -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2019-04-14 01:35 PM, James Knott wrote:
I just installed apcupsd and have connected an APC BE600M1 600VA UPS. I installed the apcupsd package, along with apcupsd cgi & gui. According to Yast Services Manager, apcupsd has failed. What am I missing to get this to work? With a new installation, this is usually due to not configuring /etc/apcupsd/apcupsd.conf.
The BE600M1 is connects via a USB port so you need to make the following changes or additions in that file: UPSCABLE usb UPSTYPE usb Also comment out or delete the DEVICETYPE line, which by default is set to /dev/ttyS0 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/14/2019 04:05 PM, Darryl Gregorash wrote:
On 2019-04-14 01:35 PM, James Knott wrote:
I just installed apcupsd and have connected an APC BE600M1 600VA UPS. I installed the apcupsd package, along with apcupsd cgi & gui. According to Yast Services Manager, apcupsd has failed. What am I missing to get this to work? With a new installation, this is usually due to not configuring /etc/apcupsd/apcupsd.conf.
The BE600M1 is connects via a USB port so you need to make the following changes or additions in that file:
UPSCABLE usb
UPSTYPE usb
Also comment out or delete the DEVICETYPE line, which by default is set to /dev/ttyS0
Done that. When I run apctest, with apcupsd stopped and monitor stopped, I get: 2019-04-14 16:27:32 apctest 3.14.14 (31 May 2016) suse Checking configuration ... sharenet.type = Network & ShareUPS Disabled cable.type = Custom Cable Smart mode.type = APC Smart UPS (any) apctest FATAL ERROR in apctest.c at line 313 Unable to create UPS lock file. If apcupsd or apctest is already running, please stop it and run this program again. apctest error termination completed -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2019-04-14 02:28 PM, James Knott wrote:
Done that. When I run apctest, with apcupsd stopped and monitor stopped, I get:
2019-04-14 16:27:32 apctest 3.14.14 (31 May 2016) suse Checking configuration ... sharenet.type = Network & ShareUPS Disabled cable.type = Custom Cable Smart mode.type = APC Smart UPS (any) apctest FATAL ERROR in apctest.c at line 313 Unable to create UPS lock file. If apcupsd or apctest is already running, please stop it and run this program again. apctest error termination completed I have only ever seen that with apcupsd already running; fire up htop to check this, and if it is, kill it and try running apctest again. (NOTE: I tried stopping my running instance in YaST, and for some reason that didn't work -- just gave me "will stop" instead of "active". The daemon was still running.) Your output should look like this:
~ # apctest 2019-04-14 14:46:29 apctest 3.14.14 (31 May 2016) suse Checking configuration ... sharenet.type = Network & ShareUPS Disabled cable.type = USB Cable mode.type = USB UPS Driver Setting up the port ... Doing prep_device() ... You are using a USB cable type, so I'm entering USB test mode Hello, this is the apcupsd Cable Test program. This part of apctest is for testing USB UPSes. Getting UPS capabilities...SUCCESS Please select the function you want to perform. 1) Test kill UPS power 2) Perform self-test 3) Read last self-test result 4) View/Change battery date 5) View manufacturing date 6) View/Change alarm behavior 7) View/Change sensitivity 8) View/Change low transfer voltage 9) View/Change high transfer voltage 10) Perform battery calibration 11) Test alarm 12) View/Change self-test interval Q) Quit Select function number: -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/14/2019 03:35 PM, James Knott wrote:
I just installed apcupsd and have connected an APC BE600M1 600VA UPS. I installed the apcupsd package, along with apcupsd cgi & gui. According to Yast Services Manager, apcupsd has failed. What am I missing to get this to work?
tnx jk
Forgot to mention, I have set the device in apcupsd.conf to /dev/usb/hiddev0. On the monitor, I'm also getting an error "unknown@localhost is NISERR NIS network error...". -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2019-04-14 02:07 PM, James Knott wrote:
On 04/14/2019 03:35 PM, James Knott wrote:
I just installed apcupsd and have connected an APC BE600M1 600VA UPS. I installed the apcupsd package, along with apcupsd cgi & gui. According to Yast Services Manager, apcupsd has failed. What am I missing to get this to work?
tnx jk
Forgot to mention, I have set the device in apcupsd.conf to /dev/usb/hiddev0.
On the monitor, I'm also getting an error "unknown@localhost is NISERR NIS network error...".
You don't want to define the device for a USB connection. Comment out that line. That should get rid of the error, but if it does not, I don't have a clue where it might be coming from. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/14/2019 04:19 PM, Darryl Gregorash wrote:
On 2019-04-14 02:07 PM, James Knott wrote:
On 04/14/2019 03:35 PM, James Knott wrote:
I just installed apcupsd and have connected an APC BE600M1 600VA UPS. I installed the apcupsd package, along with apcupsd cgi & gui. According to Yast Services Manager, apcupsd has failed. What am I missing to get this to work?
tnx jk
Forgot to mention, I have set the device in apcupsd.conf to /dev/usb/hiddev0.
On the monitor, I'm also getting an error "unknown@localhost is NISERR NIS network error...".
You don't want to define the device for a USB connection. Comment out that line. That should get rid of the error, but if it does not, I don't have a clue where it might be coming from.
After going through apcupsd.conf and not finding errors, I rebooted and it seems to be working now. The ups monitor is now showing my system up and the various tabs show appropriate data. I also see the sample info appearing on the graph. Next, get it working on pfSense... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Darryl Gregorash
-
James Knott