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

Arjen de Korte nut+users at de-korte.org
Fri Jul 10 16:06:58 UTC 2009

Citeren benjamin thielsen <bthielsen op safarivideonetworks.com>:

> working voltage graph:
> [ups2]
>     driver = usbhid-ups
>     port = auto


> battery.voltage: 27.7
> battery.voltage.nominal: 24.0

This looks normal.

> non-working voltage graph:
> [ups4]
>     driver = snmp-ups
>     port = ups4
>     community = xxxxxxxxxx
>     snmp_version = v1
>     pollfreq = 5


> battery.voltage: 55.00
> battery.voltage.nominal: 0.00

But here we have located the problem. A 'battery.voltage.nominal'  
equal to zero will mean that the calculated 'battery.voltage.minimum'  
and 'battery.voltage.maximum' will both be zero. This results in a  
divide by zero error in the range calculation. You can work around  
this by adding

       override.battery.voltage.nominal = 48

in 'ups.conf' for these drivers. This will make them ignore the  
reported value from the UPS and use the correct nominal value. You can  
also set

       default.battery.voltage.minimum = 38.4
       default.battery.voltage.maximum = 55.2

to preset the minimum and maximum voltage range of the battery, since  
neither are reported by the UPS.

What remains is the question if this is a problem in the snmp-ups  
driver or the UPS. I honestly don't know.

Best regards, Arjen
Please keep list traffic on the list

More information about the Nut-upsuser mailing list