Ignore:
Timestamp:
Sep 1, 2012, 4:25:30 PM (12 years ago)
Author:
katerina
Message:

Enhancements for ticket #312 (logrotate) and #313 (--enable-suid).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/check_samhain.pl.in

    r310 r412  
    44#   by the samhain file integrity checker.
    55#
    6 # Copyright Rainer Wichmann (2004)
     6# Copyright Rainer Wichmann (2004, 2012)
    77#
    88# License Information:
     
    2828use Getopt::Long;
    2929use vars qw($PROGNAME $SAMHAIN $opt_V $opt_h $opt_v $verbose $opt_w $opt_c $opt_t $status $msg $state $retval);
    30 use lib  "utils.pm";
     30use lib  "/usr/local/nagios/libexec" ;
    3131use utils qw(%ERRORS &print_revision);
    3232
     
    4949# -----------------------------------------------------------------[ Global ]--
    5050
    51 $PROGNAME = "check_samhain";
     51$PROGNAME = "check_@install_name@";
    5252$SAMHAIN = "@sbindir@/@install_name@";
    5353
     
    9999    $state = $ERRORS{'WARNING'};
    100100} else {
    101     $msg = "CRITICAL: $status policy violations (threshold w=$opt_w)";
     101    $msg = "CRITICAL: $status policy violations (threshold c=$opt_c)";
    102102    $state = $ERRORS{'CRITICAL'};
    103103}
     
    143143   
    144144    if ($opt_V) {
    145         print_revision($PROGNAME,'$Revision: 1.0 $ ');
     145        print_revision($PROGNAME,'$Revision: 1.1 $ ');
    146146        exit $ERRORS{'OK'};
    147147    }
     
    182182
    183183sub print_help () {
    184     print_revision($PROGNAME, '$Revision: 1.0 $');
    185     print "Copyright (c) 2004 Rainer Wichmann
     184    print_revision($PROGNAME, '1.1');
     185    print "Copyright (c) 2004,2012 Rainer Wichmann
    186186
    187187This plugin checks the number of policy violations reported by the
Note: See TracChangeset for help on using the changeset viewer.