[Nut-upsuser] upsd looking at wrong filename for socket?
Arjen de Korte
arjen at de-korte.org
Fri Feb 16 21:51:28 CET 2007
Forest Bond - Logic Supply wrote:
> When I start upsd under normal conditions, I get this:
>
> --------------------------------------------------------------------------------
> Network UPS Tools upsd 2.0.4
> /etc/nut/upsd.conf is world readable
> Can't connect to UPS [tripplite] (tripplite_usb-auto): No such file or directory
> /etc/nut/upsd.users is world readable
> Synchronizing........ giving up
> --------------------------------------------------------------------------------
You probably didn't use upsdrvctl to start the driver, but rather
started it directly from the commandline. That doesn't work.
> Looking at the state directory, it is obvious what the problem is:
>
> --------------------------------------------------------------------------------
> root at sandbox:~# ls -l /var/run/nut
> total 8
> srw-rw---- 1 nut nut 0 2007-02-16 14:41 tripplite
> -rw-r--r-- 1 nut nut 5 2007-02-16 14:41 tripplite_usb-tripplite.pid
> -rw-r--r-- 1 nut nut 5 2007-02-16 14:43 upsd.pid
> --------------------------------------------------------------------------------
>
> So, I try this:
>
> --------------------------------------------------------------------------------
> root at sandbox:~# cd /var/run/nut
> root at sandbox:/var/run/nut# ln -s tripplite tripplite_usb-auto
> root at sandbox:/var/run/nut# ls -l
> total 8
> srw-rw---- 1 nut nut 0 2007-02-16 14:41 tripplite
> lrwxrwxrwx 1 root root 9 2007-02-16 14:45 tripplite_usb-auto -> tripplite
> -rw-r--r-- 1 nut nut 5 2007-02-16 14:41 tripplite_usb-tripplite.pid
> -rw-r--r-- 1 nut nut 5 2007-02-16 14:43 upsd.pid
> root at sandbox:/var/run/nut# upsd
> Network UPS Tools upsd 2.0.4
> /etc/nut/upsd.conf is world readable
> Connected to UPS [tripplite]: tripplite_usb-auto
> /etc/nut/upsd.users is world readable
> Synchronizing...done
> --------------------------------------------------------------------------------
>
> So, why is upsd looking at the wrong file? Is my configuration just botched
> somewhere?
No, it's the way you're starting the driver. See 'man 8 upsdrvctl' and
'man 8 nutupsdrv'.
Best regards, Arjen
More information about the Nut-upsuser
mailing list