Changeset 412 for trunk/scripts
- Timestamp:
- Sep 1, 2012, 4:25:30 PM (12 years ago)
- Location:
- trunk/scripts
- Files:
-
- 3 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 -
trunk/scripts/redhat_i386.client.spec.in
r279 r412 141 141 /usr/local/sbin/samhain_setpwd 142 142 /lib/modules 143 %attr(644,root,root) /etc/logrotate.d/@install_name@ 143 144 #%attr(644,root,root) /usr/local/man/man5/samhain* 144 145 #%attr(644,root,root) /usr/local/man/man8/samhain* -
trunk/scripts/samhain.spec.in
r390 r412 127 127 %attr(644,root,root) %{_mandir}/man5/samhain* 128 128 %attr(644,root,root) %{_mandir}/man8/samhain* 129 %attr(644,root,root) /etc/logrotate.d/@install_name@ 129 130 %config(noreplace) %{_sysconfdir}/samhainrc 130 131
Note:
See TracChangeset
for help on using the changeset viewer.