X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=www%2Fprintbadpcus.php;h=500be1fecb13e67f38a922c8eee4f26486bdf5c4;hb=0fabfc8dbe8f1f2c0d12397e1bc8c6ed686fb5ed;hp=c2d8daafc1eb2cf794559c809bf3fe662f0828a8;hpb=e7a93ac9e59b2558caac3273c7ad6dc0a68a5e2a;p=monitor.git diff --git a/www/printbadpcus.php b/www/printbadpcus.php index c2d8daa..500be1f 100644 --- a/www/printbadpcus.php +++ b/www/printbadpcus.php @@ -2,12 +2,12 @@ function plc_site_link($site_name) { - return "https://www.planet-lab.org/db/sites/index.php?site_pattern=" . $site_name; + return "https://" . MONITOR_HOSTNAME . "/db/sites/index.php?site_pattern=" . $site_name; } function pcu_link($pcu) { - return "https://www.planet-lab.org/db/sites/pcu.php?id=" . $pcu['pcu_id']; + return "https://" . MONITOR_HOSTNAME . "/db/sites/pcu.php?id=" . $pcu['pcu_id']; } function pcu_site($pcu) @@ -46,7 +46,7 @@ function format_ports($pcu) $portstat = $pcu['portstatus']; #foreach ( array('22', '23', '80', '443') $portstat as $port => $state) - foreach ( array('22', '23', '80', '443') as $port) + foreach ( array('22', '23', '80', '443', '9100', '16992') as $port) { $state = $portstat[$port]; switch ($state) @@ -147,7 +147,7 @@ function get_category_link($category,$header) return "$header"; } -include 'soltesz.php'; +include 'database.php'; $p = new Pickle(); $findbad = $p->load("findbadpcus"); $findbadpcus = array_keys($findbad['nodes']); @@ -195,6 +195,13 @@ if ( $_GET['category'] ) } } +if ( $_REQUEST['id'] ) +{ + $id = $_REQUEST['id']; +} else{ + $id = "all"; +} +#print print_r($_SERVER) . "
"; //array_multisort($protocols, SORT_ASC, SORT_STRING, $pculist); ?> @@ -203,42 +210,123 @@ if ( $_GET['category'] ) -Total PCUs : - - - - - - - - - - - - + + Total PCUs : +
Count
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Count
'>'>'>
+ Reachable Nodes: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
'>'>'>
+
+ + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + - - - -
Legend for 'DNS Status'
DNS-OKThis indicates that the DNS name and registered IP address match.
DNS-MISMATCHSometimes, the registered IP and DNS IP address do not match. In these cases it is not clear which is correct, + so an error is flagged.
DNS-NOENTRYWhile a hostname is provided in the registration, the hostname is not actually registered in DNS.
NOHOSTNAMEWhile we prefer that a hostname be registered, it is not + strictly required, since simply the IP address, if it is static, is enough to access the PCU.
Legend for 'Port Status'
OpenGreen port numbers are believed to be open.
'>'>'>
FilteredGold port numbers are believed to be filtered or simply offline.
ClosedFinally, red ports appear to be closed.
Legend for 'Test Results'
+ OK + The PCU is accessible, and short of actually rebooting the node, everything appears to work. + + NetDown + The PCU is inaccessible from the PlanetLab address block 128.112.139.0/25, or it is simply offline. + + Not_Run + Previous errors, such as DNS or an incomplete configuration prevented the actual test from begin performed. + + Other Errors + Other errors are reported by the test that are more specific to the block encountered by the script. + + + -Reachable Nodes: