Jump to content

Gentoo Nut UPS [solved]


Recommended Posts

I'm trying to get my ups configured using nuts. But I'm getting the following errors:

localhost init.d # /etc/init.d/upsd restart
* Stopping upsd ...													  [ ok ]
* Starting upsd ...													  [ !! ]
localhost init.d # /etc/init.d/upsdrv restart
* Stopping UPS drivers ...
Network UPS Tools - UPS driver controller 2.0.5
Can't open /var/lib/nut/belkinunv-Belkin-ups.pid: No such file or directory
* Failed to stop UPS drivers!

 

In /var/lib/nut I have belkinunv-myups.pid

 

I've been googling for two days. If you have any ideas I'd appreciate it!

Link to comment
Share on other sites

  • Replies 36
  • Created
  • Last Reply

Top Posters In This Topic

I don't have either one of those files now. I deleted them. Removed nuts and then reinstalled and tried to restart. It should have generated new files but it didn't.

I've never used nuts (lol), but do you have any hidden config files in your ~/home? If so remove them and try again.

Link to comment
Share on other sites

From syslog

ay  4 11:34:01 localhost rc-scripts: Failed to start UPS drivers!
May  4 11:34:01 localhost rc-scripts: ERROR:  cannot start upsd as upsdrv could not start

 

From messages

May  4 12:03:33 localhost upsmon[17508]: Startup successful
May  4 12:03:33 localhost upsd[17315]: Connection from 127.0.0.1
May  4 12:03:38 localhost upsmon[17509]: Communications with UPS server@localhost lost
May  4 12:03:38 localhost wall[17518]: wall: user root broadcasted 1 lines (47 chars)
May  4 12:03:43 localhost upsmon[17509]: UPS server@localhost is unavailable
May  4 12:03:43 localhost wall[17521]: wall: user root broadcasted 1 lines (37 chars)
May  4 12:04:18 localhost upsd[17315]: Connection from 127.0.0.1
May  4 12:04:18 localhost upsd[17315]: Client on 127.0.0.1 logged out

Link to comment
Share on other sites

From syslog

ay  4 11:34:01 localhost rc-scripts: Failed to start UPS drivers!
May  4 11:34:01 localhost rc-scripts: ERROR:  cannot start upsd as upsdrv could not start

A quick search shows that your driver should be newhidups.

 

So check for a ups.conf, upsd.conf file and be sure that the driver is 'driver = newhidups'

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...