elsif ( $pid ) { } # I'm the parent
else { # I'm the kid
+ undef $sock; # We dont need this anymore
+
# Read all from the client, and disconnect
my( $header, $ok ) = ( "", 0 );
exit;
} # End child processing
} continue {
-# undef $client;
+ undef $client; # We don't need this any more
}
}
elsif ( $pid ) { } # I'm the parent
else { # I'm the child
+ undef $sock; # We don't need this
+
# Read all from the client, and disconnect,
my( $header, $ok ) = ( "", 0 );
my( $message, $cnt, $line ) = ( "", "", "" );
exit;
}
+ } continue {
+ undef $client; # We don't need this
}
}
if( $query eq "info" ) { &show_info( @args ); }
if( $query eq "service" ) { &show_service( @args, $other ); }
if( $query eq "histservice" ) { &show_hist_service( @args, $other ); }
- if( $query eq "overview" ) { &show_overview( @args, $other ); }
- if( $query eq "ovproblems" ) { &show_ovproblems( @args, $other ); }
+ if( $query eq "grp-summary" ) { &show_grp_summary( @args, $other ); }
+ if( $query eq "grp-problems" ) { &show_grp_problems( @args, $other ); }
undef $client;
select $output;
my( $hosts, $type, $view ) = @_;
Spong::HostList->new( hostlist($hosts) )->display_problems( $type, $view );}
-sub show_ovproblems {
+sub show_grp_problems {
my ( $host, $type, $view ) = @_;
Spong::HostGroups->new("ALL")->display_problems( $type, $view );}
}
}
-sub show_overview {
+sub show_grp_summary {
my( $hosts, $type, $view, $other ) = @_;
my( $g );
$other = "ALL" if ! $other;