Over the weekend the xymon CGI scripts seem to have started to coredump. In the Web server logs I see this...
[Mon Jun 24 10:19:27 2013] [error] [client 10.133.24.119] Premature end of script headers: svcstatus.sh, referer: http://monaix/xymon/nongreen.html [Mon Jun 24 10:39:38 2013] [error] [client 10.133.24.119] Premature end of script headers: enadis.sh, referer: http://monaix/xymon-cgi/report.sh
In the cgi-bin and cgi-secure directories I see a core file which references the actual C cgi apps, when I try to run gdb backtrace it just tells me signal 4, illegal instruction, I assume It has no more info since there are no symbols.
I am really at a loss for what would have started to cause this happen, can anyone provide some insight or direction?
CONFIDENTIALITY NOTICE: This email message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please contact the sender by reply email and destroy all copies of the original message.
Den 24-06-2013 17:05, Glenn Brown skrev:
Over the weekend the xymon CGI scripts seem to have started to coredump. In the cgi-bin and cgi-secure directories I see a core file which references the actual C cgi apps, when I try to run gdb backtrace it just tells me signal 4, illegal instruction, I assume It has no more info since there are no symbols.
It usually comes down to some configuration setting that has been changed .... any of your config files changed recently ?
You could try running one of the CGI's by hand. If you have a URL like this (for one of the detailed status pages):
http://www.xymon.com/xymon-cgi/svcstatus.sh?HOST=blixen.hswn.dk&SERVICE=cpu
then you can run it by hand with
SCRIPT_NAME="svcstatus.sh" REQUEST_METHOD=GET QUERY_STRING="HOST=blixen.hswn.dk&SERVICE=cpu" export SCRIPT_NAME QUERY_STRING REQUEST_METHOD /usr/lib/xymon/cgi-bin/svcstatus.sh
(the QUERY_STRING is the bit of the URL after the '?')
With a bit of luck you'll get some error-message. If not, then I would probably try re-compiling the binaries with debugging symbols (the '-g' option in gcc) and then see if running the cgi-program from a gdb session gives you a better idea of what is happening.
Regards, Henrik
Den 24-06-2013 17:34, Henrik Størner skrev:
Den 24-06-2013 17:05, Glenn Brown skrev:
Over the weekend the xymon CGI scripts seem to have started to coredump.
It usually comes down to some configuration setting that has been changed .... any of your config files changed recently ?
I just remembered - we had a similar problem some time ago where the permissions on some of the Xymon data-directories (hist, histlogs, rrd, tmp and so on) had been changed.
Regards, Henrik
participants (2)
-
Brown.Glenn@healthnow.org
-
henrik@hswn.dk