Changeset 412 for trunk/scripts/check_samhain.pl.in
- Timestamp:
- Sep 1, 2012, 4:25:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/check_samhain.pl.in
r310 r412 4 4 # by the samhain file integrity checker. 5 5 # 6 # Copyright Rainer Wichmann (2004 )6 # Copyright Rainer Wichmann (2004, 2012) 7 7 # 8 8 # License Information: … … 28 28 use Getopt::Long; 29 29 use 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";30 use lib "/usr/local/nagios/libexec" ; 31 31 use utils qw(%ERRORS &print_revision); 32 32 … … 49 49 # -----------------------------------------------------------------[ Global ]-- 50 50 51 $PROGNAME = "check_ samhain";51 $PROGNAME = "check_@install_name@"; 52 52 $SAMHAIN = "@sbindir@/@install_name@"; 53 53 … … 99 99 $state = $ERRORS{'WARNING'}; 100 100 } else { 101 $msg = "CRITICAL: $status policy violations (threshold w=$opt_w)";101 $msg = "CRITICAL: $status policy violations (threshold c=$opt_c)"; 102 102 $state = $ERRORS{'CRITICAL'}; 103 103 } … … 143 143 144 144 if ($opt_V) { 145 print_revision($PROGNAME,'$Revision: 1. 0$ ');145 print_revision($PROGNAME,'$Revision: 1.1 $ '); 146 146 exit $ERRORS{'OK'}; 147 147 } … … 182 182 183 183 sub print_help () { 184 print_revision($PROGNAME, ' $Revision: 1.0 $');185 print "Copyright (c) 2004 Rainer Wichmann184 print_revision($PROGNAME, '1.1'); 185 print "Copyright (c) 2004,2012 Rainer Wichmann 186 186 187 187 This plugin checks the number of policy violations reported by the
Note:
See TracChangeset
for help on using the changeset viewer.