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 "grp-summary" ) { &show_grp_summary( @args, $other ); }
- if( $query eq "grp-problems" ) { &show_grp_problems( @args, $other ); }
+ if( $query eq "grpsummary" ) { &show_grp_summary( @args, $other ); }
+ if( $query eq "grpproblems" ) { &show_grp_problems( @args, $other ); }
close $client;
undef $client;
$other = "ALL" if ! $other;
eval { $g = Spong::HostGroups->new( $other ); };
if ( $g ) {
- print $g->display( $type, $view );
+ $g->display( $type, $view );
} else {
print &fmt_error($type,"Invalid request, group $other does not exist"),"\n";
}
my $view = $main::view || 'full';
&header(0);
- print &query( $SPONGSERVER, "grp-summary", '', "html", $view, $other);
+ print &query( $SPONGSERVER, "grpsummary", '', "html", $view, $other);
&footer();
}
-sub grp-problems {
+sub grp_problems {
my( $other ) = @_;
my $view = $main::view || 'full';
&header(0);
- print &query( $SPONGSERVER, "grp-problems", $other, "html", $view );
+ print &query( $SPONGSERVER, "grpproblems", $other, "html", $view );
&footer();
}