Changeset 412 for trunk/scripts


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

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

Location:
trunk/scripts
Files:
3 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
  • trunk/scripts/redhat_i386.client.spec.in

    r279 r412  
    141141/usr/local/sbin/samhain_setpwd
    142142/lib/modules
     143%attr(644,root,root) /etc/logrotate.d/@install_name@
    143144#%attr(644,root,root) /usr/local/man/man5/samhain*
    144145#%attr(644,root,root) /usr/local/man/man8/samhain*
  • trunk/scripts/samhain.spec.in

    r390 r412  
    127127%attr(644,root,root) %{_mandir}/man5/samhain*
    128128%attr(644,root,root) %{_mandir}/man8/samhain*
     129%attr(644,root,root) /etc/logrotate.d/@install_name@
    129130%config(noreplace) %{_sysconfdir}/samhainrc
    130131
Note: See TracChangeset for help on using the changeset viewer.