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

benjamin thielsen bthielsen at safarivideonetworks.com
Fri Jul 10 12:30:00 UTC 2009


On Jul 10, 2009, at 04.37, Arjen de Korte wrote:

> Citeren ben thielsen <bthielsen at safarivideonetworks.com>:
>
> [...]
>
>> 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.
>
> The latter is useful information, since it means that the problems  
> is probably in the values reported by the 'apcsmart' and 'usbhid- 
> ups' drivers that you're using to monitor these devices. Could you  
> post the 'upsc' output for both?
>
> Chances are that the difference is in the reported values for the  
> 'battery.voltage(.*)' values. It might confuse upsimage.cgi when it  
> tries to calculate 'battery.voltage.minimum' and  
> 'battery.voltage.maximum' (those are not reported by either driver),  
> which is needed to draw the scale of the battery voltage graph.

working voltage graph:

[ups2]
     driver = usbhid-ups
     port = auto

 >upsc ups2 at upsmon
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.mfr.date: 2003/07/01
battery.runtime: 1920
battery.runtime.low: 120
battery.temperature: 25.2
battery.type: PbAc
battery.voltage: 27.7
battery.voltage.nominal: 24.0
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.4.1
driver.version.data: APC HID 0.93
driver.version.internal: 0.34
input.voltage: 123.8
output.voltage: 123.8
output.voltage.nominal: 120.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.firmware: 617.3.D
ups.firmware.aux: 1.5
ups.load: 46.1
ups.mfr: American Power Conversion
ups.mfr.date: 2003/07/01
ups.model: Smart-UPS 1500 RM
ups.productid: 0002
ups.serial: AS0327210919
ups.status: OL
ups.test.result: No test initiated
ups.timer.reboot: -1
ups.timer.shutdown: -1
ups.vendorid: 051d

non-working voltage graph:

[ups4]
     driver = snmp-ups
     port = ups4
     community = xxxxxxxxxx
     snmp_version = v1
     pollfreq = 5

 >upsc ups4 at upsmon
ambient.humidity: -1.00
ambient.temperature: 27.8
battery.charge: 100.00
battery.charge.restart: 0
battery.current: 0.00
battery.date: 01/16/07
battery.packs: 0.00
battery.packs.bad: 0.00
battery.runtime: 1380.00
battery.runtime.low: 120
battery.voltage: 55.00
battery.voltage.nominal: 0.00
driver.name: snmp-ups
driver.parameter.pollfreq: 5
driver.parameter.pollinterval: 2
driver.parameter.port: ups4
driver.parameter.snmp_version: v1
driver.version: 2.4.1
driver.version.internal: 0.44
input.frequency: 0.00
input.L1-L2.voltage: 0.00
input.L1-L2.voltage.maximum: 0.00
input.L1-L2.voltage.minimum: 0.00
input.L1.current: 0.00
input.L1.current.maximum: 0.00
input.L1.current.minimum: 0.00
input.phases: 0
input.sensitivity: high
input.transfer.high: 127
input.transfer.low: 106
input.voltage: 120.00
output.current: 6.00
output.frequency: 60.00
output.L1-L2.voltage: 0.00
output.L1.current: 0.00
output.L1.current.maximum: 0.00
output.L1.current.minimum: 0.00
output.L1.power: 0.00
output.L1.power.maximum: 0.00
output.L1.power.maximum.percent: 0.00
output.L1.power.minimum: 0.00
output.L1.power.minimum.percent: 0.00
output.L1.power.percent: 0.00
output.phases: 0
output.voltage: 120.00
output.voltage.nominal: 120
ups.delay.shutdown: 90
ups.delay.start: 0
ups.firmware: 716.3.D
ups.id: ups4
ups.load: 54.00
ups.mfr: APC
ups.mfr.date: 01/16/07
ups.model: Smart-UPS 1500 XLM
ups.serial: QS0703121476
ups.status: OL
ups.temperature: 25.00
ups.test.result: Ok

-ben




More information about the Nut-upsuser mailing list