]> git.etc.gen.nz Git - spong.git/commitdiff
removed dahsed from grp commands to query process
authorStephen L Johnson <sjohnson@monsters.org>
Thu, 6 Apr 2000 19:56:29 +0000 (19:56 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Thu, 6 Apr 2000 19:56:29 +0000 (19:56 +0000)
src/spong-server.pl
src/www-spong.pl

index 3a74b7f8738b2a11f5f62f07aa62ce94e979a590..9115b30b71e0d294b56be94e5d12be77d6488859 100755 (executable)
@@ -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";
    }
index 3c63d0010df6aecf76e43ad052bdae6909f54932..4fd1f2f12e11250269333058503db895ede379ab 100755 (executable)
@@ -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();
 }