BrightcoveOS / Diamond

1.18k stars 384 forks source link

apcupsd.py connection refused when running as nobody/nobody #121

Closed Dieterbe closed 12 years ago

Dieterbe commented 12 years ago

configure diamond to run as nobody/nobody. everything works, except for this:

  File "/usr/lib/python2.6/site-packages/diamond/collector.py", line 230, in _run
    self.collect()
  File "/usr/share/diamond/collectors/apcupsd/apcupsd.py", line 67, in collect
    data = self.getData()
  File "/usr/share/diamond/collectors/apcupsd/apcupsd.py", line 49, in getData
    s.connect((self.config['hostname'], int(self.config['port'])))
  File "<string>", line 1, in connect
error: [Errno 111] Connection refused
kormoc commented 12 years ago

Is the hostname/port open? Can you telnet to the host/port combo successfully?

Dieterbe commented 12 years ago

should have mentioned I don't use apcupsd, you fixed it in 764da599