host names not displayed in metrics report CGI
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
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:
I can construct a URL and pass it directly into the browser, and the script works as it should.
I can execute the script on the command line and see my hostnames listed properly.
If I save the output from teh script into a file and view it through the webbrowser, it looks OK.
No errors in my apache error log.
Tom
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
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.
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
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
On 8/10/06, Henrik Stoerner <henrik at hswn.dk> 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
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
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.
participants (4)
-
henrik@hswn.dk
-
jonescr@cisco.com
-
ralphmitchell@gmail.com
-
tomg@mcclatchyinteractive.com