# the input they provide.
%opt;
-@options = ( "help", "summary:s", "problems:s", "history:s", "host=s",
+@options = ( "help", "summary:s", "grpsummary", "problems:s", "history:s",
+ "host=s",
"acks:s", "services=s", "stats=s", "config=s", "info=s",
"service=s", "brief", "standard", "full" );
&help if defined $opt{'help'};
-if( defined $opt{'brief'} ) { $view = "brief"; }
-if( defined $opt{'standard'} ) { $view = "standard"; }
-if( defined $opt{'full'} ) { $view = "full"; }
+if( defined $opt{'brief'} ) { $view = "brief"; }
+if( defined $opt{'standard'} ) { $view = "standard"; }
+if( defined $opt{'full'} ) { $view = "full"; }
-if( defined $opt{'problems'} ) { &problems( $opt{'problems'} ); $opt = 1; }
-if( defined $opt{'summary'} ) { &summary( $opt{'summary'} ); $opt = 1; }
-if( defined $opt{'history'} ) { &history( $opt{'history'} ); $opt = 1; }
+if( defined $opt{'problems'} ) { &problems( $opt{'problems'} ); $opt = 1; }
+if( defined $opt{'summary'} ) { &summary( $opt{'summary'} ); $opt = 1; }
+if( defined $opt{'grpsummary'} ) { &grpsummary($opt{'grpsummary'}); $opt = 1; }
+if( defined $opt{'history'} ) { &history( $opt{'history'} ); $opt = 1; }
-if( defined $opt{'host'} ) { &host( $opt{'host'} ); $opt = 1; }
-if( defined $opt{'services'} ) { &services( $opt{'services'} ); $opt = 1; }
-if( defined $opt{'acks'} ) { &acks( $opt{'acks'} ); $opt = 1; }
-if( defined $opt{'stats'} ) { &stats( $opt{'stats'} ); $opt = 1; }
-if( defined $opt{'config'} ) { &config( $opt{'config'} ); $opt = 1; }
-if( defined $opt{'info'} ) { &info( $opt{'info'} ); $opt = 1; }
+if( defined $opt{'host'} ) { &host( $opt{'host'} ); $opt = 1; }
+if( defined $opt{'services'} ) { &services( $opt{'services'} ); $opt = 1; }
+if( defined $opt{'acks'} ) { &acks( $opt{'acks'} ); $opt = 1; }
+if( defined $opt{'stats'} ) { &stats( $opt{'stats'} ); $opt = 1; }
+if( defined $opt{'config'} ) { &config( $opt{'config'} ); $opt = 1; }
+if( defined $opt{'info'} ) { &info( $opt{'info'} ); $opt = 1; }
if( defined $opt{'service'} ) {
my( $host, $service ) = split( ':', $opt{'service'} );
sub summary {
print &query( $SPONGSERVER, "summary", $_[0], "text", $view ); }
+sub grpsummary {
+ print &query( $SPONGSERVER, "grpsummary", $_[0], "text", $view ); }
+
sub history {
print &query( $SPONGSERVER, "history", $_[0], "text", $view ); }
--history [hostlist] Show history information for the host(s)
--acks [hostlist] Shows acknowledgment info for the given host(s)
+ --grpsummary Summarizes the status of host(s) in all group(s)
+
--host host Shows all information available for the given host
--services host Shows detailed service info for the given host
--stats host Shows statistical information for the given host