status.dat on /tmp causes status.cgi issues

Kyle Tucker kylet at panix.com
Tue May 30 17:39:51 CEST 2006


Hi,
	Nagios 2.0b5 on Solaris 10. I've been running this 
setup for some time and just recently started seeing "Internal 
Server Error" on page refreshes from Firefox, with Apache 
reporting "Premature end of script headers".  The only changes 
recently are that I increased the host and service checks 
significantly  (up to 250 and 5200 respectively)  and I moved 
status.dat from a UFS file system to /tmp  (tmpfs) per the 
performance page tip #2 on using RAM-based filesystem for it. 
	I searched the mailing list archives and turned on debug 
level logging in Apache but it doesn't report any more.
	If I run status.cgi from command line, it dumps core for 
a seg fault as shown below. I tried the status.cgi from 2.3 with 
the same results. If I move status.dat back to disk, the CGI
errors stop, but I still get a seg fault running from command 
line. There are no core files created when the error occurs from
Apache. Any idea why this may be occuring? Here's some command 
line output.

bash-3.00$ ./status.cgi      
Cache-Control: no-store
Pragma: no-cache
Refresh: 90
Last-Modified: Tue, 30 May 2006 14:00:55 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-type: text/html

<html>
<head>
<title>
Current Network Status

 [ snipped ]

V CLASS='hostTotals'>Host Status Totals</DIV>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR><TD>
<TABLE BORDER=1 CLASS='hostTotals'>
<TR>
Segmentation Fault (core dumped)

bash-3.00$ file core
core:           ELF 32-bit MSB core file SPARC Version 1, from 'status.cgi'

Here's the tail'd output from truss.

write(1, " < T R >\n", 5)                       = 5
    Incurred fault #6, FLTBOUNDS  %pc = 0xFF230BF0
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
    Received signal #11, SIGSEGV [default]
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000

-- 
- Kyle 
---------------------------------------------
kylet at panix.com   http://www.panix.com/~kylet    
---------------------------------------------
-- 
- Kyle 
---------------------------------------------
kylet at panix.com   http://www.panix.com/~kylet    
---------------------------------------------


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list