
my $metastat;
my $metacmd = "/usr/opt/SUNWmd/sbin/metastat";
my $frequency = $args{"frequency"}?$args{"frequency"}:30;

unless( $metastat = $memory{"metastat_$frequency"} ) {
    &uxmon::load_module( "metastat" );
    $metacmd = $args{"stat"} if( $args{"stat"} );
    &uxmon::checker(
	$memory{"metastat_$frequency"} = $metastat = Monitor::metastat->new( $metacmd )
    );
    $metastat->sched_frequency( $frequency );
}

$metastat->add_check( $args{"alias"}.".md", "state", "Okay" );

1;
