Xymon Mailing List Archive search

Availability Report not working

8 messages in this thread

list Eric Meddaugh · Thu, 03 Jan 2008 08:59:43 -0500 ·
 

The Availability Report on the web just stopped working.  It created the
directory in the "rep", but nothing goes inside it.  The webpage redirects
to the correct location, but it's empty.  

 
Any ideas on what to look for?  Nothing I can see in any of the logs
indicates a problem.. Is there any "debug" that can be turned on to figure
out why it's not working now?   Not sure how long it's been this way, but it
has the problem when it try to generate it on the web, it appears to be able
to generate it via our daily script, just not via the web anymore.

 
Thanks.

 
---Eric
list Henrik Størner · Thu, 3 Jan 2008 15:07:19 +0100 ·
quoted from Eric Meddaugh
On Thu, Jan 03, 2008 at 08:59:43AM -0500, Eric Meddaugh wrote:
Any ideas on what to look for?  Nothing I can see in any of the logs
indicates a problem.. Is there any "debug" that can be turned on to figure
out why it's not working now?   Not sure how long it's been this way, but it
has the problem when it try to generate it on the web, it appears to be able
to generate it via our daily script, just not via the web anymore.
This smells like a permissions problem to me. Check that the webserver
userid/group has write permissions to the www/rep/ directory.

If that doesn't help, you can login/su so you have the user/group-ID of
your webserver, and then run the CGI by hand like this:

REQUEST_METHOD=GET \
SCRIPT_NAME=bb-rep.sh \
QUERY_STRING="start-mon=Jan&start-day=1&start-yr=2008&end-mon=1&end-day=3&end-yr=2008&style=crit" \
~hobbit/cgi-bin/bb-rep.sh


Henrik
list Eric Meddaugh · Thu, 3 Jan 2008 09:16:39 -0500 ·
I did check permissions, the directory is getting created correctly,
just nothing going inside of it, after running this:


Content-type: multipart/mixed;boundary=bbrep-29231-1199369692

--bbrep-29231-1199369692
Content-type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Set-Cookie" CONTENT="pagepath=; path=/">
<META HTTP-EQUIV="Set-Cookie" CONTENT="host=; path=/">
<TITLE>Hobbit Availability Report : Jan 01 2008 - Jan 03 2008</TITLE>

<!-- Styles for the menu bar -->
<link rel="stylesheet" type="text/css" href="/menu/menu.css">

<!-- The favicon image -->
<link rel="shortcut icon" href="/gifs/favicon-blue.ico">

</HEAD>

<BODY BGCOLOR="blue" BACKGROUND="/gifs/bkg-blue.gif" TEXT="#D8D8BF"
LINK="#00FFAA" VLINK="#FFFF44">

<TABLE SUMMARY="Topline" WIDTH="100%">
<TR><TD HEIGHT=16>&nbsp;</TD></TR>  <!-- For the menu bar -->
<TR>
  <TD VALIGN=MIDDLE ALIGN=LEFT WIDTH="30%">
    <FONT FACE="Arial, Helvetica" SIZE="+1" COLOR="silver"><B>RIT
Hobbit</B></FONT>
  </TD>
  <TD VALIGN=MIDDLE ALIGN=CENTER WIDTH="40%">
    <CENTER><FONT FACE="Arial, Helvetica" SIZE="+1"
COLOR="silver"><B>Availability Report</B></FONT></CENTER>
  </TD>
  <TD VALIGN=MIDDLE ALIGN=RIGHT WIDTH="30%">
   <FONT FACE="Arial, Helvetica" SIZE="+1" COLOR="silver"><B>Jan 01 2008
- Jan 03 2008</B></FONT>
  </TD>
</TR>
<TR>
  <TD COLSPAN=3> <HR WIDTH="100%"> </TD>
</TR>
</TABLE>
<BR>

<CENTER><A NAME=begindata>&nbsp;</A>
<BR><BR><BR><BR>
<H3>Generating report for the period: Jan 01 2008 - Jan 03 2008
(crit)<BR>
<P><P>
Done...Report is <A
HREF="/rep/29231-1199369692/">here</a>.</P></BODY></HTML>
--bbrep-29231-1199369692

Content-Type: text/html

<HTML><HEAD>
<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=/rep/29231-1199369692/"
</HEAD><BODY>Report is available <a
href="/rep/29231-1199369692/">here</a></BODY></HTML>

--bbrep-29231-1199369692


It seems to have a trailing "--bbrep-29231-1199369692", which is the
directory name.
quoted from Henrik Størner


-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, January 03, 2008 09:07
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Availability Report not working

On Thu, Jan 03, 2008 at 08:59:43AM -0500, Eric Meddaugh wrote:
Any ideas on what to look for?  Nothing I can see in any of the logs
indicates a problem.. Is there any "debug" that can be turned on to
figure
out why it's not working now?   Not sure how long it's been this way,
but it
has the problem when it try to generate it on the web, it appears to
be able
to generate it via our daily script, just not via the web anymore.
This smells like a permissions problem to me. Check that the webserver
userid/group has write permissions to the www/rep/ directory.

If that doesn't help, you can login/su so you have the user/group-ID of
your webserver, and then run the CGI by hand like this:

REQUEST_METHOD=GET \
SCRIPT_NAME=bb-rep.sh \

QUERY_STRING="start-mon=Jan&start-day=1&start-yr=2008&end-mon=1&end-day=
3&end-yr=2008&style=crit" \
~hobbit/cgi-bin/bb-rep.sh


Henrik
list Eric Meddaugh · Thu, 3 Jan 2008 09:17:33 -0500 ·
Also...that content-type at the start looks "odd"
quoted from Eric Meddaugh


-----Original Message-----
From: Eric Meddaugh [mailto:user-4e1e735fdc96@xymon.invalid] 
Sent: Thursday, January 03, 2008 09:17
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Availability Report not working

I did check permissions, the directory is getting created correctly,
just nothing going inside of it, after running this:


Content-type: multipart/mixed;boundary=bbrep-29231-1199369692

--bbrep-29231-1199369692
Content-type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Set-Cookie" CONTENT="pagepath=; path=/">
<META HTTP-EQUIV="Set-Cookie" CONTENT="host=; path=/">
<TITLE>Hobbit Availability Report : Jan 01 2008 - Jan 03 2008</TITLE>

<!-- Styles for the menu bar -->
<link rel="stylesheet" type="text/css" href="/menu/menu.css">

<!-- The favicon image -->
<link rel="shortcut icon" href="/gifs/favicon-blue.ico">

</HEAD>

<BODY BGCOLOR="blue" BACKGROUND="/gifs/bkg-blue.gif" TEXT="#D8D8BF"
LINK="#00FFAA" VLINK="#FFFF44">

<TABLE SUMMARY="Topline" WIDTH="100%">
<TR><TD HEIGHT=16>&nbsp;</TD></TR>  <!-- For the menu bar -->
<TR>
  <TD VALIGN=MIDDLE ALIGN=LEFT WIDTH="30%">
    <FONT FACE="Arial, Helvetica" SIZE="+1" COLOR="silver"><B>RIT
Hobbit</B></FONT>
  </TD>
  <TD VALIGN=MIDDLE ALIGN=CENTER WIDTH="40%">
    <CENTER><FONT FACE="Arial, Helvetica" SIZE="+1"
COLOR="silver"><B>Availability Report</B></FONT></CENTER>
  </TD>
  <TD VALIGN=MIDDLE ALIGN=RIGHT WIDTH="30%">
   <FONT FACE="Arial, Helvetica" SIZE="+1" COLOR="silver"><B>Jan 01 2008
- Jan 03 2008</B></FONT>
  </TD>
</TR>
<TR>
  <TD COLSPAN=3> <HR WIDTH="100%"> </TD>
</TR>
</TABLE>
<BR>

<CENTER><A NAME=begindata>&nbsp;</A>
<BR><BR><BR><BR>
<H3>Generating report for the period: Jan 01 2008 - Jan 03 2008
(crit)<BR>
<P><P>
Done...Report is <A
HREF="/rep/29231-1199369692/">here</a>.</P></BODY></HTML>
--bbrep-29231-1199369692

Content-Type: text/html

<HTML><HEAD>
<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=/rep/29231-1199369692/"
</HEAD><BODY>Report is available <a
href="/rep/29231-1199369692/">here</a></BODY></HTML>

--bbrep-29231-1199369692


It seems to have a trailing "--bbrep-29231-1199369692", which is the
directory name.


-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, January 03, 2008 09:07
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Availability Report not working

On Thu, Jan 03, 2008 at 08:59:43AM -0500, Eric Meddaugh wrote:
Any ideas on what to look for?  Nothing I can see in any of the logs
indicates a problem.. Is there any "debug" that can be turned on to
figure
out why it's not working now?   Not sure how long it's been this way,
but it
has the problem when it try to generate it on the web, it appears to
be able
to generate it via our daily script, just not via the web anymore.
This smells like a permissions problem to me. Check that the webserver
userid/group has write permissions to the www/rep/ directory.

If that doesn't help, you can login/su so you have the user/group-ID of
your webserver, and then run the CGI by hand like this:

REQUEST_METHOD=GET \
SCRIPT_NAME=bb-rep.sh \
QUERY_STRING="start-mon=Jan&start-day=1&start-yr=2008&end-mon=1&end-day=
3&end-yr=2008&style=crit" \
~hobbit/cgi-bin/bb-rep.sh


Henrik
list Eric Meddaugh · Thu, 3 Jan 2008 09:21:30 -0500 ·
Snapshot does not work either....creates the directory, just not the
files...
quoted from Eric Meddaugh

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, January 03, 2008 09:07
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Availability Report not working

On Thu, Jan 03, 2008 at 08:59:43AM -0500, Eric Meddaugh wrote:
Any ideas on what to look for?  Nothing I can see in any of the logs
indicates a problem.. Is there any "debug" that can be turned on to
figure
out why it's not working now?   Not sure how long it's been this way,
but it
has the problem when it try to generate it on the web, it appears to
be able
to generate it via our daily script, just not via the web anymore.
This smells like a permissions problem to me. Check that the webserver
userid/group has write permissions to the www/rep/ directory.

If that doesn't help, you can login/su so you have the user/group-ID of
your webserver, and then run the CGI by hand like this:

REQUEST_METHOD=GET \
SCRIPT_NAME=bb-rep.sh \
QUERY_STRING="start-mon=Jan&start-day=1&start-yr=2008&end-mon=1&end-day=
3&end-yr=2008&style=crit" \
~hobbit/cgi-bin/bb-rep.sh


Henrik
list Henrik Størner · Thu, 3 Jan 2008 15:45:40 +0100 ·
quoted from Eric Meddaugh
On Thu, Jan 03, 2008 at 09:17:33AM -0500, Eric Meddaugh wrote:
Also...that content-type at the start looks "odd"

Content-type: multipart/mixed;boundary=bbrep-29231-1199369692
Nope, that is correct. It's a multi-part document.


Regards,
Henrik
list Eric Meddaugh · Thu, 3 Jan 2008 09:52:38 -0500 ·
Here's the snapshot try....any ideas??

$ cat test2.sh
#!/bin/sh

REQUEST_METHOD=GET \
SCRIPT_NAME=bb-snapshot.sh \
QUERY_STRING="mon=Jan&day=2&yr=2008&hour=9&min=48&sec=00" \
/home/hobbit/cgi-bin/bb-snapshot.sh


$ sh test2.sh 
Content-type: multipart/mixed;boundary=bbrep-27304-1199371887

bbrep-27304-1199371887
Content-type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>

<TITLE>Hobbit - Snapshot Report</TITLE>
quoted from Eric Meddaugh

<!-- Styles for the menu bar -->
<link rel="stylesheet" type="text/css" href="/menu/menu.css">

<!-- The favicon image -->
<link rel="shortcut icon" href="/gifs/favicon-blue.ico">

</HEAD>

<BODY BGCOLOR="blue" BACKGROUND="/gifs/bkg-blue.gif" TEXT="#D8D8BF"
LINK="#00FFAA" VLINK="#FFFF44">

<TABLE SUMMARY="Topline" WIDTH="100%">
<TR><TD HEIGHT=16>&nbsp;</TD></TR>  <!-- For the menu bar -->
<TR>
  <TD VALIGN=MIDDLE ALIGN=LEFT WIDTH="30%">
    <FONT FACE="Arial, Helvetica" SIZE="+1" COLOR="silver"><B>RIT
Hobbit</B></FONT>
  </TD>
  <TD VALIGN=MIDDLE ALIGN=CENTER WIDTH="40%">
    <CENTER><FONT FACE="Arial, Helvetica" SIZE="+1"

COLOR="silver"><B>Snapshot Report</B></FONT></CENTER>
  </TD>
  <TD VALIGN=MIDDLE ALIGN=RIGHT WIDTH="30%">
   <FONT FACE="Arial, Helvetica" SIZE="+1" COLOR="silver"><B>Jan 02
quoted from Eric Meddaugh
2008</B></FONT>
  </TD>
</TR>
<TR>
  <TD COLSPAN=3> <HR WIDTH="100%"> </TD>
</TR>
</TABLE>
<BR>

<CENTER><A NAME=begindata>&nbsp;</A>
<BR><BR><BR><BR>

<H3>Generating snapshot: Jan 02 2008<BR>
<P><P>
Done...<P></BODY></HTML>
bbrep-27304-1199371887

Content-Type: text/html

<HTML><HEAD>
<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=/snap/27304-1199371887/"
</HEAD><BODY BGCOLOR="000000"></BODY></HTML>

bbrep-27304-1199371887
quoted from Eric Meddaugh


-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, January 03, 2008 09:46
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Availability Report not working

On Thu, Jan 03, 2008 at 09:17:33AM -0500, Eric Meddaugh wrote:
Also...that content-type at the start looks "odd"

Content-type: multipart/mixed;boundary=bbrep-29231-1199369692
Nope, that is correct. It's a multi-part document.


Regards,
Henrik
list Ben · Thu, 7 Feb 2008 12:33:17 -0700 ·
Hello,

Note: reference: "Availability Report not working"
http://www.hswn.dk/hobbiton/2008/01/msg00046.html

I am a new user of Hobbit, using the 4.3.0-20080103 (feb 6 snapshot)
for bbwin support.  I have ran into the same problem with available
reports and snapshots as referenced in this thread, but don't see a
resolution in the archives for it.  The demo site's reports and
snapshots work, so I know it must be something on my end :-)  I have
found many solutions to questions I've had thus far including getting
clients built for Mac OS X and getting up and running on Windows
clients in addition to the Linux clients (as well as getting to know
the config's), thanks to online docs, this list's archives, and to the
active users of hobbit.  I very much appreciated the help and
guidance.  However I've searched the mail archives and google but
haven't found an answer to the following.

Recap of problem/thread:
When I try to run a report or a snapshot, I am redirected to the
rep/##### location (very quickly I might add - I do not see the
intermediary page such as with the demo site) and the location is
empty.  The script creates the folder, just doesn't create anything
inside it and doesn't disclose any errors or indications why.  When
running the test script from the cmd-line as ref'ed in the mail thread
(using sudo -u apache), same result, directory created owned by
apache, but empty.

I've checked permissions, tried setting selinux to permissive mode
(CentOS 4.6) and disabling modsecurity and restarting apache to see if
they're causing issues, but without luck.

Any advice would be appreciated.

Thanks,

Ben