my $cmd;

my $frequency = $args{"frequency"}?$args{"frequency"}:10;

uxmon::test_deprecated( \%args );

unless( $cmd = $memory{"cmd_$frequency"} ) {
    &uxmon::load_module( "cmd" );
    &uxmon::checker(
	$memory{"cmd_$frequency"} = $cmd = Monitor::cmd->new()
    );
    $cmd->sched_frequency( $frequency );
}

$cmd->add_check( $args{"alias"}.".ntp", "ntpdate -q $args{host}",
		 [ 0, "green", "ntp OK" ], [ "stratum 16", "yellow", "ntp running but not synchronized" ], [ "timeout", "red", "ntp not running" ],  [ "*", "red", "ntp FAILURE" ] );

1;
