Bug 5946

Summary: segfault
Product: ALT Linux 2.4 Reporter: Denis Ovsienko <pilot>
Component: nut-cgiAssignee: Dmitry V. Levin <ldv>
Status: CLOSED FIXED QA Contact: Andrey Cherepanov <cas>
Severity: normal    
Priority: P2    
Version: 2.4   
Hardware: all   
OS: Linux   

Description Denis Ovsienko 2005-01-25 11:40:03 MSK
$ upsc smart1000i@localhost
[ данные есть ]
$ /var/www/cgi-bin/upsstats.cgi
Content-type: text/html
Pragma: no-cache

<!-- upsstats template file -->

<!-- 
        This (upsstats.html) is the default template file which is used
        when upsstats.cgi is loaded with no arguments.

        It usually contains a FOREACHUPS block to iterate through every
        UPS in the hosts.conf.

        See upsstats.html(5) for more information on template files.
-->

<!-- change this to TEMPF if you don't like Celsius. -->


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
        "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>
Network UPS Tools upsstats 
2.0.0
: UPS Status
</title>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000EE" VLINK="#551A8B">

<table BGCOLOR="#50A0A0" ALIGN="CENTER">
<tr><td>

<table CELLPADDING="5">
<tr>
<th COLSPAN="8" BGCOLOR="#60B0B0">

<font SIZE="+2">Network UPS Tools upsstats
2.0.0
</font>

<br>
Tue Jan 25 10:32:09 EET 2005
</th>

</tr>

<tr BGCOLOR="#60B0B0">
<th COLSPAN="1">System</th>
<th COLSPAN="1">Model</th>
<th COLSPAN="1">Status</th>
<th COLSPAN="1">Battery</th>
<th COLSPAN="1">Input</th>
<th COLSPAN="1">Output</th>
<th COLSPAN="1">Load</th>
<th COLSPAN="1">UPS<br>Temp</th>
</tr>

Segmentation fault
Comment 1 Dmitry V. Levin 2005-02-12 22:23:25 MSK
А что в /etc/nut/hosts.conf?
Comment 2 Denis Ovsienko 2005-02-16 19:57:43 MSK
Кроме комментариев ничего.
Comment 3 Dmitry V. Levin 2005-03-05 16:07:29 MSK
Проявляется только в случае, когда в /etc/nut/hosts.conf не сконфигурировано ни
одного монитора.
Исправлено в nut-cgi-2.0.1-alt1