From 8ed0395694b233d6b70160b6ad725db43c1c0b34 Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Thu, 6 Apr 2000 19:56:29 +0000 Subject: [PATCH] removed dahsed from grp commands to query process --- src/spong-server.pl | 6 +++--- src/www-spong.pl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/spong-server.pl b/src/spong-server.pl index 3a74b7f..9115b30 100755 --- a/src/spong-server.pl +++ b/src/spong-server.pl @@ -467,8 +467,8 @@ sub listen_for_queries { 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; @@ -1021,7 +1021,7 @@ sub show_grp_summary { $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"; } diff --git a/src/www-spong.pl b/src/www-spong.pl index 3c63d00..4fd1f2f 100755 --- a/src/www-spong.pl +++ b/src/www-spong.pl @@ -542,17 +542,17 @@ sub grp_summary { 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(); } -- 2.30.2