Antwort: Re: [hobbit] bb-histlog.sh
cits.bogajewski at daimlerchrysler.com
cits.bogajewski at daimlerchrysler.com
Thu Aug 3 15:24:59 CEST 2006
Henrik,
henrik at hswn.dk schrieb am 03.08.2006 14:36:31:
> The interesting stuff is in the URL that doesn't work. If you cut the
> part of the URL after the '?', what happens if you run (by hand):
>
myhost:/opt/hobbit/cgi-bin # REQUEST_METHOD=GET \
> SCRIPT_NAME=bb-histlog.sh \
>
QUERY_STRING="HOST=myhost&SERVICE=procs&TIMEBUF=Wed_Jul_26_15:37:01_2006"
\
> ./bb-histlog.sh
Content-type: text/html
Memory fault(coredump)
myhost:/opt/hobbit/cgi-bin # gdb /opt/hobbit/server/bin/hobbitsvc.cgi core
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "hppa2.0w-hp-hpux11.11"...
Core was generated by `hobbitsvc.cgi'.
Program terminated with signal 11, Segmentation fault.
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.
Reading symbols from /usr/local/lib/libpcre.sl...done.
Reading symbols from /usr/lib/libnsl.1...done.
Reading symbols from /usr/lib/libxti.2...done.
Reading symbols from /usr/lib/libc.2...done.
Reading symbols from /usr/lib/libdld.2...done.
#0 0xc019833c in _sigfillset () from /usr/lib/libc.2
(gdb) bt
#0 0xc019833c in _sigfillset () from /usr/lib/libc.2
#1 0xc019b364 in free () from /usr/lib/libc.2
#2 0x0000944c in expand_env (s=0x210f4 "4.2-RC-20060712") at
environ.c:293
#3 0x00009038 in xgetenv (name=0x229e0 "HOBBITDREL") at environ.c:165
#4 0x0000cc2c in headfoot (output=0x77fdd438, template=0x23168 "histlog",
pagepath=0x23184 "", head_or_foot=0x40039ffc "", bgcolor=5) at
headfoot.c:1107
#5 0x0000e344 in generate_html_log (hostname=0x40006ae0 "myhost",
displayname=0x40006ae0 "myhost", service=0x40006af8 "procs",
ip=0x4000a838 "xx.xx.xx.xx", color=5, sender=0x40037ce0 "xx.xx.xx.xx",
flags=0x1f150 "", logtime=0, timesincechange=0x77ff0758 "0.00 minutes",
firstline=0x40037c88 "red Wed Jul 26 15:36:50 METDST 2006 - Processes
NOT ok",
restofmsg=0x40034157 "&green cmcld (found 1, req. 1 or more)\n&red
ichbineintest (found 0, req. 1 or more)\n\n PID PPID USER STIME S
PRI %CPU TIME VSZ COMMAND\n 0 0 root Mar 23 S 127
0.02 04:"..., acktime=0, ackmsg=0x0, acklist=0x0, disabletime=0,
dismsg=0x0, is_history=1,
wantserviceid=0, htmlfmt=0, hobbitd=0, multigraphs=0x1f0a0
",disk,inode,qtree,",
linktoclient=0x40006c48
"bb-histlog.sh?CLIENT=myhost&TIMEBTF=1153921021", nkprio=0x0,
nkttgroup=0x0, nkttextra=0x0, output=0x77fdd438)
at htmllog.c:150
#6 0x000047f0 in do_request () at hobbitsvc.c:417
#7 0x00004bd8 in main (argc=4, argv=0x77ff0594) at hobbitsvc.c:514
More information about the Xymon
mailing list