Index: trunk/cluster_status.php
===================================================================
--- trunk/cluster_status.php	(revision 25)
+++ trunk/cluster_status.php	(revision 26)
@@ -4,5 +4,5 @@
 include "$us3bin/listen-config.php";
 
-if ( ! preg_match( "/localhost/", $dbhost ) )
+if ( ! preg_match( "/_local/", $class_dir ) )
 {
    $xml  = get_data();
@@ -18,5 +18,6 @@
 foreach ( $data as $item )
 {
-   update( $item[ 'cluster' ], $item[ 'queued' ], $item[ 'status' ], $item[ 'running' ] );
+   if ( ! preg_match( "/error/", $item[ 'running' ] ) )
+      update( $item[ 'cluster' ], $item[ 'queued' ], $item[ 'status' ], $item[ 'running' ] );
 }
 
@@ -170,6 +171,7 @@
    global $dbhost;
    global $org_domain;
-
-   if ( preg_match( "/localhost/", $dbhost ) )
+   global $class_dir;
+
+   if ( preg_match( "/_local/", $class_dir ) )
    {
       if ( preg_match( "/attlocal/", $org_domain ) )
