Here is patch for /etc/log.d/scripts/services/secure.
patch to /etc/log.d/scripts/services/secure
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
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.
patch to /etc/log.d/scripts/services/secure
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
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