CGI segfaults

Kyle Gordon kyle at lodge.glasgownet.com
Thu Jul 27 17:33:29 CEST 2006


Hi all,

I have just compiled up v2.5 on Suse Linux Enterprise Server 9.3, and
installed Nagios with almost complete success. The only problem is the CGI
files, that are failing to run. They segfault with the following data from
strace. selinux is disabled on this machine, and I've been running the
commands with the following...

REQUEST_METHOD=GET ./status.cgi

The output is all good HTML, until this point...

write(1, "<!-- Produced by Nagios (http://"..., 93<!-- Produced by Nagios
(http://www.nagios.org).  Copyright (c) 1999-2003 Ethan Galstad. -->
) = 93
stat64("/usr/local/nagios/share/ssi/common-header.ssi", 0xbfffe28c) = -1
ENOENT (No such file or directory)
stat64("/usr/local/nagios/share/ssi/status-header.ssi", 0xbfffe28c) = -1
ENOENT (No such file or directory)
open("/usr/local/nagios/etc/cgi.cfg", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=16996, ...}) = 0
mmap2(NULL, 16996, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4001f000
open("/usr/local/nagios/etc/nagios.cfg", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=21573, ...}) = 0
mmap2(NULL, 21573, PROT_READ, MAP_PRIVATE, 5, 0) = 0x40143000
munmap(0x40143000, 21573)               = 0
close(5)                                = 0
munmap(0x4001f000, 16996)               = 0
close(4)                                = 0
open("/usr/local/nagios/var/comment.log", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0664, st_size=238, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x4001f000
read(4, "################################"..., 4096) = 238
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x4001f000, 4096)                = 0
open("/usr/local/nagios/etc/cgi.cfg", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=16996, ...}) = 0
mmap2(NULL, 16996, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4001f000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
sles9:/usr/local/nagios/sbin #

Any advice would be greatly appreciated :-)

Kyle


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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