extinfo.cgi seg fault

Jonathan Zuilkowski j_zuilkowski at hotmail.com
Fri Feb 25 15:40:54 CET 2005


When I click on a host in any of the summarys, the url

http://nagios/cgi-bin/extinfo.cgi?type=1&host=host1

I get an Internal Server Error.

Any help would be appreciated.

When I run from the command line after setting the appropriate variables, I 
get this:


---------------------------------------------------------------------------------------------------------------------

Cache-Control: no-store
Pragma: no-cache
Refresh: 90
Last-Modified: Fri, 25 Feb 2005 14:17:46 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-type: text/html

<html>
<head>
<title>
Extended Information
</title>
<LINK REL='stylesheet' TYPE='text/css' HREF='/stylesheets/common.css'><LINK 
REL='stylesheet' TYPE='text/css' HREF='/stylesheets/extinfo.css'></head>
<body CLASS='extinfo'>

<!-- Produced by Nagios (http://www.nagios.org).  Copyright (c) 1999-2003 
Ethan Galstad. -->
<table border=0 width=100%>
<tr>
<td align=left valign=top width=33%>
<TABLE CLASS='infoBox' BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD CLASS='infoBox'>
<DIV CLASS='infoBoxTitle'>Host Information</DIV>
Last Updated: Fri Feb 25 09:17:46 EST 2005<BR>
Updated every 90 seconds<br>
Nagios® - <A HREF='http://www.nagios.org' TARGET='_new' 
CLASS='homepageURL'>www.nagios.org</A><BR>
Logged in as <i>?</i><BR>
</TD></TR>
</TABLE>
</td>
<td align=center valign=center width=33%>
</td>
<td align=right valign=bottom width=33%>
</td>
</tr>
</table>
<BR>
<P><DIV CLASS='errorMessage'>It appears as though you do not have permission 
to view information for this host...</DIV></P>
<P><DIV CLASS='errorDescription'>If you believe this is an error, check the 
HTTP server authentication requirements for accessing this CGI<br>and check 
the authorization options in your CGI configuration file.</DIV></P>

<!-- Produced by Nagios (http://www.nagios.org).  Copyright (c) 1999-2003 
Ethan Galstad. -->
</body>
</html>
nagios at cpdbdev1: export QUERY_STRING="type=1&host=logs_rsh"
nagios at cpdbdev1: ./extinfo.cgi
Cache-Control: no-store
Pragma: no-cache
Refresh: 90
Last-Modified: Fri, 25 Feb 2005 14:18:07 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-type: text/html

<html>

<head>
<title>
Extended Information
</title>
<LINK REL='stylesheet' TYPE='text/css' HREF='/stylesheets/common.css'><LINK 
REL='stylesheet' TYPE='text/css' HREF='/stylesheets/extinfo.css'></head>
<body CLASS='extinfo'>

<!-- Produced by Nagios (http://www.nagios.org).  Copyright (c) 1999-2003 
Ethan Galstad. -->
<table border=0 width=100%>
<tr>
<td align=left valign=top width=33%>
<TABLE CLASS='infoBox' BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD CLASS='infoBox'>
<DIV CLASS='infoBoxTitle'>Host Information</DIV>
Last Updated: Fri Feb 25 09:18:07 EST 2005<BR>
Updated every 90 seconds<br>
Nagios® - <A HREF='http://www.nagios.org' TARGET='_new' 
CLASS='homepageURL'>www.nagios.org</A><BR>
Logged in as <i>?</i><BR>
</TD></TR>
</TABLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
function nagios_get_host_name()
{
return "logs_rsh";
}
function nagios_get_host_address()
{
return "x.x.x.x";
}
//-->
</SCRIPT>
<TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0 CLASS='linkBox'>
<TR><TD CLASS='linkBox'>
<A HREF='status.cgi?host=logs_rsh'>View Status Detail For This Host</A><BR>
<A HREF='history.cgi?host=logs_rsh'>View Alert History For This Host</A><BR>
<A HREF='trends.cgi?host=logs_rsh'>View Trends For This Host</A><BR>
<A HREF='histogram.cgi?host=logs_rsh'>View Alert Histogram For This 
Host</A><BR>
<A HREF='avail.cgi?host=logs_rsh&show_log_entries'>View Availability Report 
For This Host</A><BR>
<A HREF='notifications.cgi?host=logs_rsh'>View Notifications This Host</A>
</TD></TR>
</TABLE>
</td>
<td align=center valign=center width=33%>
<DIV CLASS='data'>Host</DIV>
<DIV CLASS='dataTitle'>LOGS_RSH</DIV>
<DIV CLASS='dataTitle'>(logs_rsh)</DIV><BR>
<DIV CLASS='data'>Member of</DIV><DIV CLASS='dataTitle'><A 
HREF='status.cgi?hostgroup=db&style=overview'>db</A></DIV><BR>
<DIV CLASS='data'>x.x.x.x</DIV>
</td>
<td align=right valign=bottom width=33%>
</td>
</tr>
</table>
<BR>
<DIV ALIGN=CENTER>
<TABLE BORDER=0 CELLPADDING=0 WIDTH=100%>
<TR>
<TD ALIGN=CENTER VALIGN=TOP CLASS='stateInfoPanel'>
<DIV CLASS='dataTitle'>Host State Information</DIV>
<TABLE BORDER=0>
<TR><TD>
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD class='stateInfoTable1'>
<TABLE BORDER=0>
<TR><TD CLASS='dataVar'>Host Status:</td><td CLASS='dataVal'><DIV 
CLASS='hostUP'>  UP    </DIV></td></tr>
Segmentation Fault (core dumped)




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click




More information about the Developers mailing list