Menu

#33 logwatch script patch (secure)

open
nobody
setup (10)
5
2003-10-27
2003-10-27
No

Here is patch for /etc/log.d/scripts/services/secure.

Discussion

  • Anonymous

    Anonymous - 2003-10-27

    patch to /etc/log.d/scripts/services/secure

     
  • Anonymous

    Anonymous - 2003-10-27

    Logged In: YES
    user_id=346479

    Change end of patch to this instead. We want to know when
    the cluster is NOT being backed up, not the opposite!

    @@ -147,10 +149,20 @@
    }
    else {
    # Unmatched entries...
    - push @OtherList,$ThisLine;
    + push @OtherList, $ThisLine . "\n";
    }
    }

    +if (keys %{$Connections}) {
    + if (exists ($Connections->{"amanda"})) {
    + delete ($Connections->{"amanda"});
    + } else {
    + $Connections->{"amanda"}->{"WARNING"} = "AMANDA HAS
    CONNECTED *ZERO*";
    + }
    +} else {
    + $Connections->{"amanda"}->{"WARNING"} = "AMANDA HAS
    CONNECTED *ZERO*";
    +}
    +
    if ( (keys %{$Connections}) or
    (keys %{$Refused}) or
    (keys %{$FailedLogins}) or

     
  • Anonymous

    Anonymous - 2003-10-28

    Logged In: YES
    user_id=346479

    Er, scratch that. Change end section to

    @@ -147,10 +149,14 @@
    }
    else {
    # Unmatched entries...
    - push @OtherList,$ThisLine;
    + push @OtherList, $ThisLine . "\n";
    }
    }

    +if (keys %{$Connections} && exists
    ($Connections->{"amanda"})) {
    + delete ($Connections->{"amanda"});
    +}
    +
    if ( (keys %{$Connections}) or
    (keys %{$Refused}) or
    (keys %{$FailedLogins}) or

     

Log in to post a comment.