No data after the upgrade
list Asif Iqbal
I just upgrade hobbit from 4.1.2 to 4.2.0. Now I do not see any data or graph in this page https://server.foo.net/hobbit-cgi/bb-hostsvc.sh?HOST=client.foo.com&SERVICE=bbtest -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Asif Iqbal
▸
On 8/15/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
I just upgrade hobbit from 4.1.2 to 4.2.0. Now I do not see any data or graph in this page https://server.foo.net/hobbit-cgi/bb-hostsvc.sh?HOST=client.foo.com&SERVICE=bbtest
When I run it from shell like this or view the source I get all the output. Do I need to fix the CSS or something? REQUEST_METHOD="GET" QUERY_STRING="HOST=client.foo.com&SERVICE=bbtest" SCRIPT_NAME="bb-hostsvc.sh" ~hobbit/cgi-bin/bb-hostsvc.sh Thanks
▸
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Henrik Størner
▸
On Tue, Aug 15, 2006 at 10:42:45AM -0400, Asif Iqbal wrote:
On 8/15/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:I just upgrade hobbit from 4.1.2 to 4.2.0. Now I do not see any data or graph in this page https://server.foo.net/hobbit-cgi/bb-hostsvc.sh?HOST=client.foo.com&SERVICE=bbtestWhen I run it from shell like this or view the source I get all the output. Do I need to fix the CSS or something?
Hobbit only uses plain HTML4, not any CSS.
REQUEST_METHOD="GET" QUERY_STRING="HOST=client.foo.com&SERVICE=bbtest" SCRIPT_NAME="bb-hostsvc.sh" ~hobbit/cgi-bin/bb-hostsvc.sh
When you run it from the shell, is the first line Content-type: text/html ? Have you checked the webserver logs for any errors? Also, you can try creating a "cgierror.log" file in the hobbit "logs" directory, owned by the group your webserver runs as, and group-write access. Errors from the CGI will then go into that file. Henrik
list Asif Iqbal
▸
On 8/15/06, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Tue, Aug 15, 2006 at 10:42:45AM -0400, Asif Iqbal wrote:On 8/15/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:I just upgrade hobbit from 4.1.2 to 4.2.0. Now I do not see any data or graph in this page https://server.foo.net/hobbit-cgi/bb-hostsvc.sh?HOST=client.foo.com&SERVICE=bbtestWhen I run it from shell like this or view the source I get all the output. Do I need to fix the CSS or something?Hobbit only uses plain HTML4, not any CSS.REQUEST_METHOD="GET" QUERY_STRING="HOST=client.foo.com&SERVICE=bbtest" SCRIPT_NAME="bb-hostsvc.sh" ~hobbit/cgi-bin/bb-hostsvc.shWhen you run it from the shell, is the first line Content-type: text/html ?
Yes, and then an empty line and then rest of the html stuff
Have you checked the webserver logs for any errors?
Not until now :-) [Thu Aug 3 08:03:38 2006] [error] [client 155.70.39.45] File does not exist: /usr/local/apache/htdocs/_vti_bin/owssvr.dll [Thu Aug 3 08:03:38 2006] [error] [client 155.70.39.45] File does not exist: /usr/local/apache/htdocs/MSOffice/cltreq.asp [Fri Aug 4 15:06:54 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.sh [Fri Aug 4 16:18:13 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.sh [Tue Aug 8 15:14:59 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.sh [Tue Aug 8 15:15:04 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.sh [Tue Aug 8 15:15:06 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.sh [Tue Aug 8 15:15:35 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.sh [Fri Aug 11 15:41:45 2006] [error] [client 155.70.39.45] File does not exist: /usr/local/apache/htdocs/_vti_bin/owssvr.dll [Fri Aug 11 15:41:46 2006] [error] [client 155.70.39.45] File does not exist: /usr/local/apache/htdocs/MSOffice/cltreq.asp
▸
Also, you can try creating a "cgierror.log" file in the hobbit "logs" directory, owned by the group your webserver runs as, and group-write access. Errors from the CGI will then go into that file.
Did that now
Henrik
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Asif Iqbal
▸
On 8/15/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On 8/15/06, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:On Tue, Aug 15, 2006 at 10:42:45AM -0400, Asif Iqbal wrote:On 8/15/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:I just upgrade hobbit from 4.1.2 to 4.2.0. Now I do not see any data or graph in this page https://server.foo.net/hobbit-cgi/bb-hostsvc.sh?HOST=client.foo.com&SERVICE=bbtestWhen I run it from shell like this or view the source I get all the output. Do I need to fix the CSS or something?Hobbit only uses plain HTML4, not any CSS.REQUEST_METHOD="GET" QUERY_STRING="HOST=client.foo.com&SERVICE=bbtest" SCRIPT_NAME="bb-hostsvc.sh" ~hobbit/cgi-bin/bb-hostsvc.shWhen you run it from the shell, is the first line Content-type: text/html ?Yes, and then an empty line and then rest of the html stuffHave you checked the webserver logs for any errors?Not until now :-) [Thu Aug 3 08:03:38 2006] [error] [client 155.70.39.45] File does not exist: /usr/local/apache/htdocs/_vti_bin/owssvr.dll [Thu Aug 3 08:03:38 2006] [error] [client 155.70.39.45] File does not exist: /usr/local/apache/htdocs/MSOffice/cltreq.asp [Fri Aug 4 15:06:54 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.sh [Fri Aug 4 16:18:13 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.sh
Here is my bb-hostsvc.sh looks like
#!/bin/sh
# This is a wrapper for the Hobbit hobbitsvc.cgi script
. /export/home/hobbit/server/etc/hobbitcgi.cfg
exec /export/home/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS
Here is how CGI_SVC_OPTS defined in
/export/home/hobbit/server/etc/hobbitcgi.cfg
# hobbitsvc.cgi options for a normal (current) status display
CGI_SVC_OPTS="--env=/export/home/hobbit/server/etc/hobbitserver.cfg
--no-svcid --history=top"
▸
[Tue Aug 8 15:14:59 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.sh [Tue Aug 8 15:15:04 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.sh [Tue Aug 8 15:15:06 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.sh [Tue Aug 8 15:15:35 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.sh [Fri Aug 11 15:41:45 2006] [error] [client 155.70.39.45] File does not exist: /usr/local/apache/htdocs/_vti_bin/owssvr.dll [Fri Aug 11 15:41:46 2006] [error] [client 155.70.39.45] File does not exist: /usr/local/apache/htdocs/MSOffice/cltreq.aspAlso, you can try creating a "cgierror.log" file in the hobbit "logs" directory, owned by the group your webserver runs as, and group-write access. Errors from the CGI will then go into that file.Did that nowHenrik-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Henrik Størner
▸
On Tue, Aug 15, 2006 at 11:47:32AM -0400, Asif Iqbal wrote:
Have you checked the webserver logs for any errors?Not until now :-) [Fri Aug 4 15:06:54 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.sh
Seems like the CGI is crashing. Could you edit the
~hobbit/cgi-bin/bb-hostsvc.sh file and add these two lines
cd /tmp
ulimit -c 1024000
just before the "exec ..." line ? Then make your browser try and fetch
the status page, and it should dump a core-file in /tmp/core* . Run that
through gdb with
$ gdb ~hobbit/server/bin/hobbitsvc.cgi /tmp/core*
...
gdb> bt
and lets see what it says.
Regards,
Henrik
list Asif Iqbal
▸
On 8/15/06, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Tue, Aug 15, 2006 at 11:47:32AM -0400, Asif Iqbal wrote:Have you checked the webserver logs for any errors?Not until now :-) [Fri Aug 4 15:06:54 2006] [error] [client 155.70.141.45] Premature end of script headers: /export/home/hobbit/cgi-bin/bb-hostsvc.shSeems like the CGI is crashing. Could you edit the ~hobbit/cgi-bin/bb-hostsvc.sh file and add these two lines cd /tmp ulimit -c 1024000 just before the "exec ..." line ? Then make your browser try and fetch the status page, and it should dump a core-file in /tmp/core* . Run that
Do not follow "try and fetch status page". You mean try to view the content of a column as I have been trying?
▸
through gdb with $ gdb ~hobbit/server/bin/hobbitsvc.cgi /tmp/core* ... gdb> bt and lets see what it says. Regards, Henrik
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Asif Iqbal
▸
On 8/15/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On 8/15/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:On 8/15/06, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:On Tue, Aug 15, 2006 at 10:42:45AM -0400, Asif Iqbal wrote:On 8/15/06, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:I just upgrade hobbit from 4.1.2 to 4.2.0. Now I do not see any data or graph in this page https://server.foo.net/hobbit-cgi/bb-hostsvc.sh?HOST=client.foo.com&SERVICE=bbtestWhen I run it from shell like this or view the source I get all the output. Do I need to fix the CSS or something?Hobbit only uses plain HTML4, not any CSS.REQUEST_METHOD="GET" QUERY_STRING="HOST=client.foo.com&SERVICE=bbtest" SCRIPT_NAME="bb-hostsvc.sh" ~hobbit/cgi-bin/bb-hostsvc.shWhen you run it from the shell, is the first line Content-type: text/html ?Yes, and then an empty line and then rest of the html stuff
After replacing HOBBITLOGO="<IMG SRC=/hobbit/gifs/qwest_logo.gif width=185 height=77 alt='My Company Logo™' title='My Company Slogan™'>" with HOBBITLOGO= And now I can see all pages and graphs How do I put it back and can still make it work -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Henrik Størner
▸
On Tue, Aug 15, 2006 at 02:19:06PM -0400, Asif Iqbal wrote:
After replacing HOBBITLOGO="<IMG SRC=/hobbit/gifs/qwest_logo.gif width=185 height=77 alt='My Company Logo™' title='My Company Slogan™'>" with HOBBITLOGO= And now I can see all pages and graphs
I haven't tried running this through the code, but I *think* the hash-sign is the culprit: Hobbit probably drops everything after the first hash-sign, assuming the rest of that hobbitserver.cfg line is a comment. Hmm ... getting that line-parsing code right is darned difficult. Henrik
list Werner Gmail Lists
▸
On Tue, Aug 15, 2006 at 02:19:06PM -0400, Asif Iqbal wrote:After replacing HOBBITLOGO="<IMG SRC=/hobbit/gifs/qwest_logo.gif width=185 height=77 alt='My Company Logo™' title='My Company Slogan™'>" with HOBBITLOGO= And now I can see all pages and graphsI haven't tried running this through the code, but I *think* the hash-sign is the culprit: Hobbit probably drops everything after the first hash-sign, assuming the rest of that hobbitserver.cfg line is a comment. Hmm ... getting that line-parsing code right is darned difficult.
To help Henrik get a rest :) maybe you can/should change from "™" to "™" (without quotes). I know, HTML 4 says you should/can use &#<number> syntax, but as a workaround, most of these number syntax have also an alfa syntax. (http://www.faqs.org/docs/htmltut/characterentities_famsupp_69.html) Obrigado. Werner
list Asif Iqbal
▸
On 8/15/06, Werner (gmail Lists) <user-fc53c34471bb@xymon.invalid> wrote:
On Tue, Aug 15, 2006 at 02:19:06PM -0400, Asif Iqbal wrote:After replacing HOBBITLOGO="<IMG SRC=/hobbit/gifs/qwest_logo.gif width=185 height=77 alt='My Company Logo™' title='My Company Slogan™'>" with HOBBITLOGO= And now I can see all pages and graphsI haven't tried running this through the code, but I *think* the hash-sign is the culprit: Hobbit probably drops everything after the first hash-sign, assuming the rest of that hobbitserver.cfg line is a comment. Hmm ... getting that line-parsing code right is darned difficult.To help Henrik get a rest :) maybe you can/should change from "™" to "™" (without quotes).
That did it. Thanks a lot to Henrik and Werner
▸
I know, HTML 4 says you should/can use &#<number> syntax, but as a workaround, most of these number syntax have also an alfa syntax. (http://www.faqs.org/docs/htmltut/characterentities_famsupp_69.html) Obrigado. Werner
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu