status.dat on /tmp causes status.cgi issues

Kyle Tucker kylet at panix.com
Tue May 30 19:35:46 CEST 2006


Thanks Eli. Even better, changing temp_file to reside in /tmp at the same 
time as status_file seems to have eliminated these status.cgi errors.

> Search the recent archives, as of the last three weeks this has been =
> addressed and resolved by Ethan.  Track down those posts for info, =
> there's a pending-confirmation fix in CVS as well as a workaround (move =
> your status.dat file back to the same filesystem).

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net on behalf of Kyle Tucker
> Sent: Tue 5/30/2006 8:39 AM
> To: Nagios Mailing List
> Subject: [Nagios-users] status.dat on /tmp causes status.cgi issues
> =20
> Hi,
> 	Nagios 2.0b5 on Solaris 10. I've been running this=20
> setup for some time and just recently started seeing "Internal=20
> Server Error" on page refreshes from Firefox, with Apache=20
> reporting "Premature end of script headers".  The only changes=20
> recently are that I increased the host and service checks=20
> significantly  (up to 250 and 5200 respectively)  and I moved=20
> status.dat from a UFS file system to /tmp  (tmpfs) per the=20
> performance page tip #2 on using RAM-based filesystem for it.=20
> 	I searched the mailing list archives and turned on debug=20
> level logging in Apache but it doesn't report any more.
> 	If I run status.cgi from command line, it dumps core for=20
> a seg fault as shown below. I tried the status.cgi from 2.3 with=20
> 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=20
> line. There are no core files created when the error occurs from
> Apache. Any idea why this may be occuring? Here's some command=20
> line output.
> 
> bash-3.00$ ./status.cgi     =20
> 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=3D'hostTotals'>Host Status Totals</DIV>
> <TABLE BORDER=3D0 CELLSPACING=3D0 CELLPADDING=3D0>
> <TR><TD>
> <TABLE BORDER=3D1 CLASS=3D'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)                       =3D 5
>     Incurred fault #6, FLTBOUNDS  %pc =3D 0xFF230BF0
>       siginfo: SIGSEGV SEGV_MAPERR addr=3D0x00000000
>     Received signal #11, SIGSEGV [default]
>       siginfo: SIGSEGV SEGV_MAPERR addr=3D0x00000000

-- 
- 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