[Pkg-nagios-devel] Bug#545956: /usr/lib/cgi-bin/nagios2/status.cgi segfault after upgrade

Marek Grzybowski marek.grzybowski at atm.com.pl
Fri Sep 11 08:35:06 UTC 2009


Giuseppe Iuculano pisze:
> Hi,
> 
> Could you provide steps to reproduce the segfault please?

Thanks for answer, its my reproduction :


nagios-services:~# debsums nagios2
/usr/sbin/nagios2                                                             OK
/usr/sbin/nagios2stats                                                        OK
/usr/lib/nagios2/p1.pl                                                        OK
/usr/lib/cgi-bin/nagios2/statuswrl.cgi                                        OK
/usr/lib/cgi-bin/nagios2/status.cgi                                           OK
/usr/lib/cgi-bin/nagios2/showlog.cgi                                          OK
/usr/lib/cgi-bin/nagios2/notifications.cgi                                    OK
/usr/lib/cgi-bin/nagios2/avail.cgi                                            OK
/usr/lib/cgi-bin/nagios2/tac.cgi                                              OK
/usr/lib/cgi-bin/nagios2/history.cgi                                          OK
/usr/lib/cgi-bin/nagios2/statusmap.cgi                                        OK
/usr/lib/cgi-bin/nagios2/summary.cgi                                          OK
/usr/lib/cgi-bin/nagios2/statuswml.cgi                                        OK
/usr/lib/cgi-bin/nagios2/histogram.cgi                                        OK
/usr/lib/cgi-bin/nagios2/cmd.cgi                                              OK
/usr/lib/cgi-bin/nagios2/config.cgi                                           OK
/usr/lib/cgi-bin/nagios2/outages.cgi                                          OK
/usr/lib/cgi-bin/nagios2/extinfo.cgi                                          OK
/usr/lib/cgi-bin/nagios2/trends.cgi                                           OK
/usr/share/man/man8/nagios2stats.8.gz                                         OK
/usr/share/man/man8/nagios2.8.gz                                              OK



# su nagios
$ cd /usr/lib/cgi-bin/nagios2/
$ export REQUEST_METHOD=GET
$ ./status.cgi
Cache-Control: no-store
Pragma: no-cache
Refresh: 90
Last-Modified: Fri, 11 Sep 2009 08:19:57 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-type: text/html

<html>
<head>
<title>
Current Network Status
</title>
<LINK REL='stylesheet' TYPE='text/css' HREF='/nagios2/stylesheets/common.css'><LINK REL='stylesheet' TYPE='text/css' HREF='/nagios2/stylesheets/status.css'></head>
<body CLASS='status'>

<!-- Produced by Nagios (http://www.nagios.org).  Copyright (c) 1999-2003 Ethan Galstad. -->
<table border=0 width=100% cellspacing=0 cellpadding=0>
<tr>
<td align=left valign=top width=33%>
<TABLE CLASS='infoBox' BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD CLASS='infoBox'>
<DIV CLASS='infoBoxTitle'>Current Network Status</DIV>
Last Updated: Fri Sep 11 10:20:01 CEST 2009<BR>
Updated every 90 seconds<br>
Nagios&reg; - <A HREF='http://www.nagios.org' TARGET='_new' CLASS='homepageURL'>www.nagios.org</A><BR>
Logged in as <i>?</i><BR>
</TD></TR>
</TABLE>
<TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0 CLASS='linkBox'>
<TR><TD CLASS='linkBox'>
<a href='history.cgi?host=all'>View History For all hosts</a><br>
<a href='notifications.cgi?host=all'>View Notifications For All Hosts</a>
<br><a href='status.cgi?hostgroup=all&style=hostdetail'>View Host Status Detail For All Hosts</a>
</TD></TR>
</TABLE>
</td>
<td align=center valign=top width=33%>
<DIV CLASS='hostTotals'>Host Status Totals</DIV>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR><TD>
<TABLE BORDER=1 CLASS='hostTotals'>
<TR>
Naruszenie ochrony pamięci


We heve several nagios'es, most of them are in OpenVZ containers,
but one of them is in a raw hardware, and the problem is the same for all of them (debian etch).


My temporary solution is switching  /usr/lib/cgi-bin/nagios2/status.cgi from backup.



-- 
Pozdrawiam
Marek Grzybowski - Zespół Wsparcia Systemów i Aplikacji
ATM S.A., ul. Grochowska 21a, 04-186 Warszawa, POLAND
tel. +48 22 5156100, http://atm.com.pl , GPG KEY ID: 0x22201773






More information about the Pkg-nagios-devel mailing list