Xymon Mailing List Archive search

host names not displayed in metrics report CGI

7 messages in this thread

list Tom Georgoulias · Thu, 10 Aug 2006 09:47:11 -0400 ·
Upgrade report

Did an upgrade from 4.1.2p1 to 4.2.0 this morning, using the source tarball.  Everything seems to be OK after the upgrade, except that I cannot use the Metrics Report CGI because the box where the hostnames should be listed in narrow and blank.

I added the entry in my menu_items.js file and the options to hobbitcgi.cfg as mentioned in the release notes.

No mention of any errors using hostgraphs.sh in any log file.  Any ideas where I should look?

Tom
list Tom Georgoulias · Thu, 10 Aug 2006 15:36:01 -0400 ·
quoted from Tom Georgoulias
Tom Georgoulias wrote:
Upgrade report

Did an upgrade from 4.1.2p1 to 4.2.0 this morning, using the source tarball.  Everything seems to be OK after the upgrade, except that I cannot use the Metrics Report CGI because the box where the hostnames should be listed in narrow and blank.

I added the entry in my menu_items.js file and the options to hobbitcgi.cfg as mentioned in the release notes.

No mention of any errors using hostgraphs.sh in any log file.  Any ideas where I should look?
I guess the only other things to add are:

1.  I can construct a URL and pass it directly into the browser, and the script works as it should.

2.  I can execute the script on the command line and see my hostnames listed properly.

3.  If I save the output from teh script into a file and view it through the webbrowser, it looks OK.

4.  No errors in my apache error log.

Tom
list Henrik Størner · Thu, 10 Aug 2006 22:47:11 +0200 ·
quoted from Tom Georgoulias
On Thu, Aug 10, 2006 at 09:47:11AM -0400, Tom Georgoulias wrote:
Upgrade report

Did an upgrade from 4.1.2p1 to 4.2.0 this morning, using the source tarball.  Everything seems to be OK after the upgrade, except that I cannot use the Metrics Report CGI because the box where the hostnames should be listed in narrow and blank.
It uses a cookie set by the webpage you invoke it from, to filter
what hosts show up in the hostname listbox. Do you have cookies
disabled in your browser ? But then I think it would just list
all hosts.

Could you try changing your menu item to point at
  /hobbit-cgi/hobbit-hostgraphs.sh?pagepattern=.*
and see if that changes anything?


Regards,
Henrik
list Tom Georgoulias · Thu, 10 Aug 2006 16:53:31 -0400 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
On Thu, Aug 10, 2006 at 09:47:11AM -0400, Tom Georgoulias wrote:
Upgrade report

Did an upgrade from 4.1.2p1 to 4.2.0 this morning, using the source 
tarball.  Everything seems to be OK after the upgrade, except that I 
cannot use the Metrics Report CGI because the box where the hostnames 
should be listed in narrow and blank.
It uses a cookie set by the webpage you invoke it from, to filter
what hosts show up in the hostname listbox. Do you have cookies
disabled in your browser ? But then I think it would just list
all hosts.
No, I have cookies enabled.
quoted from Henrik Størner
Could you try changing your menu item to point at
  /hobbit-cgi/hobbit-hostgraphs.sh?pagepattern=.*
and see if that changes anything?
That worked.  Host list looks good and the script works.

Tom
list Henrik Størner · Thu, 10 Aug 2006 23:01:11 +0200 ·
quoted from Tom Georgoulias
On Thu, Aug 10, 2006 at 04:53:31PM -0400, Tom Georgoulias wrote:
Could you try changing your menu item to point at
 /hobbit-cgi/hobbit-hostgraphs.sh?pagepattern=.*
and see if that changes anything?
That worked.  Host list looks good and the script works.
Sounds like Hobbit might have some problem with getting the
cookie data right. Just for me, could you change your
menu setting back to what it was, and in the
~hobbit/cgi-bin/hobbit-hostgraphs.sh add the line

   echo "$HTTP_COOKIE" >/tmp/cookie.txt

just before the "exec .." line ? From your browser then go to
the hostgraphs page and send me the /tmp/cookie.txt file which
gets generated.


Thanks,
Henrik
list Ralph Mitchell · Fri, 11 Aug 2006 04:35:18 -0500 ·
quoted from Henrik Størner
On 8/10/06, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Thu, Aug 10, 2006 at 04:53:31PM -0400, Tom Georgoulias wrote:
Could you try changing your menu item to point at
 /hobbit-cgi/hobbit-hostgraphs.sh?pagepattern=.*
and see if that changes anything?
That worked.  Host list looks good and the script works.
Sounds like Hobbit might have some problem with getting the
cookie data right. Just for me, could you change your
menu setting back to what it was, and in the
~hobbit/cgi-bin/hobbit-hostgraphs.sh add the line

   echo "$HTTP_COOKIE" >/tmp/cookie.txt

just before the "exec .." line ? From your browser then go to
the hostgraphs page and send me the /tmp/cookie.txt file which
gets generated.
This is probably irrelevant, but the hobbit-hostgraphs.cgi page is
handing out two Content-type lines:

     Content-type: text/html

     Content-Type: text/html

I guess the browser uses one, and the other is displayed behind the
menu bar where it would normally be out of sight.  I only saw it
because the page loaded slowly a couple of times...

What should there be in the Host selector if there are no actual hosts
listed on the page??  I.e, going to the Metrics page from a page that
only contains sub-pages, not any actual hosts??  What I getting is an
empty host selector, just like Tom...

Ralph Mitchell
list Charles Jones · Mon, 11 Sep 2006 07:00:48 -0700 ·
I am currently experiencing the exact same problem as described below (no host names showing), and the same workaround makes them display again (appending "?pagepattern=.*" to the URL).  I'm not sure when it started happening, except that I know it was working in the past, because I reported that problem with having duplicate hostnames and we got that fixed.

-Charles
quoted from Ralph Mitchell

Henrik Stoerner wrote:
On Thu, Aug 10, 2006 at 04:53:31PM -0400, Tom Georgoulias wrote:
 
Could you try changing your menu item to point at
/hobbit-cgi/hobbit-hostgraphs.sh?pagepattern=.*
and see if that changes anything?
     
That worked.  Host list looks good and the script works.
   
Sounds like Hobbit might have some problem with getting the
cookie data right. Just for me, could you change your
menu setting back to what it was, and in the
~hobbit/cgi-bin/hobbit-hostgraphs.sh add the line

  echo "$HTTP_COOKIE" >/tmp/cookie.txt

just before the "exec .." line ? From your browser then go to
the hostgraphs page and send me the /tmp/cookie.txt file which
gets generated.