[Nut-upsuser] Premature end of script headers: upsimage.cgi

Charles Lepple clepple at gmail.com
Fri Jul 10 01:57:13 UTC 2009


On Thu, Jul 9, 2009 at 6:31 PM, ben
thielsen<bthielsen at safarivideonetworks.com> wrote:
> Jean Delvare wrote:
[...]
>> You could try running upsimage.cgi manually, maybe you'll get a useful
>> error message.
>
> good idea, thanks.  i can't seem to figure out how though.  running the
> program without any arguments produces output that seems to perhaps be the
> beginnings of a png image, which would make sense, but it appears to be
> incomplete.  i've tried a few approaches to passing arguments from the
> shell, but none seem to have an impact on the output.

You might need to change "host=ups at example.org" to
host=ups%40example.org" on the command line. (I don't have NUT set up
on this machine, so I can't verify that, though.)

> some additional information - i've since added another smart-ups 1500 (not
> xlm), connected via usb to this same server, and it draws the voltage graph
> without incident.

Are both UPSes listed in /etc/nut/hosts.conf?

-- 
- Charles Lepple



More information about the Nut-upsuser mailing list