This line shows up a lot in my http error log:

 PHP Notice: Undefined index: gs in
/var/www/html/ganglia/get_context.php on line 44


I googled it, came up pretty dry. Is there a way to shut it up, should
I not even worry about it, or what?

It looks like the code is checking to see whether a gs variable is set
in the URL, and then defaults to whatever. Why then is a message
ending up in my log? Could logging be set too verbose?

Many thanks,
Dave

 grep -C5 gs /var/www/html/ganglia/get_context.php
        escapeshellcmd($_GET["js"]) : NULL;
# The direction we are travelling in the grid tree
$gridwalk = isset($_GET["gw"]) ?
        escapeshellcmd($_GET["gw"]) : NULL;
# A stack of grid parents. Prefer a GET variable, default to cookie.
if (isset($_GET["gs"]) and $_GET["gs"])
      $gridstack = explode(">", rawurldecode($_GET["gs"]));
else
      $gridstack = explode(">", $_COOKIE["gs"] );

# Assume we are the first grid visited in the tree if there are no CGI
variables,
# or gridstack is not well formed. Gridstack always has at least one element.
if (!count($_GET) or !strstr($gridstack[0], "http://";))
      $initgrid=TRUE;

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to