OPNsense Forum

English Forums => General Discussion => Topic started by: h.bork on August 10, 2019, 06:17:06 pm

Title: NUT Plugin not properly working
Post by: h.bork on August 10, 2019, 06:17:06 pm
After installing the nut-plugin I encountered some serious problems. I finally found out that the ups.conf file contains a duplicate entry:

[CS350]
driver=usbhid-ups
port=auto
[CS350]
driver=apcsmart
port=auto

During startup the system complains about this duplicate entry and tries to use the apcsmart driver which does not work, so nut_daemon does not run.

If I delete the second half of the ups.conf file and restart net_upsmon everything runs fine.

But ... after a reboot the ups.conf contains the duplicate entry again and the ups connection fails.

Does anybody know where this duplcate entries are saved besides ups.conf ? It must be somehow restored during boot and I don't know how to get rid of it. I tried every alternative uninstalling and reinstalling the plugin but no success.
Can anybody help ?
Thank you.
Title: Re: NUT Plugin not properly working
Post by: mimugmail on August 10, 2019, 06:47:02 pm
You enabled both drivers in the UI, just disable apcsmart
Title: Re: NUT Plugin not properly working
Post by: h.bork on August 10, 2019, 07:28:55 pm
Thank you, that solved it.
I was not aware that it is possible to enable more than one driver.
Does that make sense ? If not, it should be prevented in the UI.
Title: Re: NUT Plugin not properly working
Post by: Tripple_Delta on August 16, 2019, 05:50:46 pm
Didn’t know about the double driver. Anyway, I still keep seeing a blank page, no diagnostics. Browser seems to hang too.
Title: Re: NUT Plugin not properly working
Post by: mimugmail on August 16, 2019, 08:15:10 pm
Then your driver doesnt work with the UPS. Nut Tools are badly maintained (software, not plugin)
Title: Re: NUT Plugin not properly working
Post by: Tripple_Delta on August 18, 2019, 07:21:33 pm
It's a APC Smart-UPS 1500.
The funny part is that I recently changed my hardware. Did a complete new install from scratch and imported my config. Before I could see the UPS status but I'm not sure I was using NUT.
Title: Re: NUT Plugin not properly working
Post by: mimugmail on August 18, 2019, 08:25:40 pm
Did you try the usbhid driver? Unplug and plug cable again? Reboot?