my $cmd;

############### MODIFY HERE IF NEEDED ###############

my $tripwirecmd="/usr/sbin/tripwire -m c";

#####################################################


my $frequency = $args{"frequency"}?$args{"frequency"}:720; # every 12 hours
my $timeout = $args{"timeout"};
$timeout = 60 unless( $timeout );

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

$cmd->add_check( $args{"alias"}.".tripwire", "$tripwirecmd",
		 [ 0, "green", "tripwire OK" ], [ 1, "red", "Files where added" ], [ 2, "red", "Files where removed" ], [ 3, "red", "Files where added and removed" ], [ 4, "red", "Files where modified" ], [ 5, "red", "Files where modified and added" ], [ 6, "red", "Files where removed and modified" ], [ 7, "yellow", "An unspecified error occurred" ], [ 8, "yellow", "An error occurred that prevented the report from being written" ], [ "timeout", "red", "tripwire not running" ],  [ "*", "red", "Tripwire problem" ] );

1;
