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 ); }
close( CLIENT );
select $output;
my( $hosts, $type, $view ) = @_;
Spong::HostList->new( hostlist($hosts) )->display_problems( $type, $view );}
+sub show_ovproblems {
+ my ( $host, $type, $view ) = @_;
+ Spong::HostGroups->new("ALL")->display_problems( $type, $view );}
+
sub show_warnings {
my( $hosts, $type, $view ) = @_;
Spong::HostList->new( hostlist($hosts) )->display_problems( $type, $view );
my %opt;
my @options = ( "help", "summary:s", "problems:s", "history:s", "host=s",
"services=s", "stats=s", "config=s", "info=s", "service=s",
- "histservice=s", "overview",
+ "histservice=s", "overview:s", "ovproblems",
"brief", "standard", "full" );
$actionbar = 0;
}
if ( defined $opt{'overview'} ) { &overview( $opt{'overview'} ); $opt= 1; }
+ if ( defined $opt{'ovproblems'} ) { &ovproblems( $opt{'ovproblems'} ); $opt= 1; }
if( ! $opt ) { &summary( "all" ); }
if( $cmd =~ m!^/histservice/(.*)/(.*)/(.*)$! ) { &histservice( $1, "$2 $3" ); exit; }
if( $cmd =~ m!^/overview/(.*)$! ) { &overview( $1 ); exit;}
+if( $cmd =~ m!^/ovproblems/(.*)$! ) { &ovproblems( $1 ); exit;}
# Need to do something when an invalid request comes through...
exit(0);
&footer();
}
-
+sub ovproblems {
+ my( $other ) = @_;
+ my $view = $main::view || 'standard';
+
+ &header(0);
+ print &query( $SPONGSERVER, "ovproblems", $other, "html", $view );
+ &footer();
+}
# Just print a little message to stdout showing what valid options are to
# the command line interface to spong, and then exit the program.