SF.net SVN: logwatch:[256] trunk
[email protected] Fri, 26 Sep 2014 16:51:52 +0000
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 256
http://sourceforge.net/p/logwatch/code/256
Author: opoplawski
Date: 2014-09-26 16:51:49 +0000 (Fri, 26 Sep 2014)
Log Message:
-----------
Add sssd service
Added Paths:
-----------
trunk/conf/services/sssd.conf
trunk/scripts/services/sssd
Added: trunk/conf/services/sssd.conf
===================================================================
--- trunk/conf/services/sssd.conf (rev 0)
+++ trunk/conf/services/sssd.conf 2014-09-26 16:51:49 UTC (rev 256)
@@ -0,0 +1,20 @@
+# You can put comments anywhere you want to. They are effective for the
+# rest of the line.
+
+# this is in the format of <name> = <value>. Whitespace at the beginning
+# and end of the lines is removed. Whitespace before and after the = sign
+# is removed. Everything is case *insensitive*.
+
+# Yes = True = On = 1
+# No = False = Off = 0
+
+Title = "SSSD"
+
+# Which logfile group...
+LogFile = messages
+
+# Only give lines pertaining to the sssd service...
+*OnlyService = sssd
+*RemoveHeaders
+
+# vi: shiftwidth=3 tabstop=3 et
Added: trunk/scripts/services/sssd
===================================================================
--- trunk/scripts/services/sssd (rev 0)
+++ trunk/scripts/services/sssd 2014-09-26 16:51:49 UTC (rev 256)
@@ -0,0 +1,82 @@
+########################################################
+## Copyright (c) 2014 Orion Poplawski
+## Covered under the included MIT/X-Consortium License:
+## http://www.opensource.org/licenses/mit-license.php
+## All modifications and contributions by other persons to
+## this script are assumed to have been donated to the
+## Logwatch project and thus assume the above copyright
+## and licensing terms. If you want to make contributions
+## under your own copyright or a different license this
+## must be explicitly stated in the contribution an the
+## Logwatch project reserves the right to not accept such
+## contributions. If you have made significant
+## contributions to this script and want to claim
+## copyright please contact [email protected]
+#########################################################
+
+use strict;
+my $Detail = $ENV{'LOGWATCH_DETAIL_LEVEL'} || 0;
+my %Errors;
+my %Starts;
+my %Stops;
+my %OtherList;
+
+# Lines are of the form:
+# sssd[service]:
+while (defined(my $ThisLine = <STDIN>)) {
+ chomp($ThisLine);
+
+ # Strip off and record the service, set to Daemon if none
+ $ThisLine =~ s/sssd\[([^:]+)\]: //;
+ my $Service = defined($1) ? $1 : "Daemon";
+
+ if ($ThisLine =~ /^Starting up/) {
+ $Starts{$Service}++;
+ } elsif ($ThisLine =~ /^Shutting down/) {
+ $Stops{$Service}++;
+ } elsif ($ThisLine =~ /error/i) {
+ $Errors{$Service}->{$ThisLine}++;
+ } else {
+ $OtherList{"$Service: $ThisLine"}++;
+ }
+}
+
+if (keys %Errors) {
+ print "\nSSSD ERRORS:\n";
+ foreach my $Service (sort {$a cmp $b} keys %Errors) {
+ print " $Service:\n";
+ foreach my $Error (sort {$a cmp $b} keys %{$Errors{$Service}}) {
+ print " $Error: " . $Errors{$Service}->{$Error} . " Time(s)\n";
+ }
+ }
+}
+
+if (keys %Starts and $Detail) {
+ print "\nSSSD Services Started:\n";
+ foreach my $Service (sort {$a cmp $b} keys %Starts) {
+ print " $Service: " . $Starts{$Service} . " Time(s)\n";
+ }
+}
+
+if (keys %Stops and $Detail) {
+ print "\nSSSD Services Stopped:\n";
+ foreach my $Service (sort {$a cmp $b} keys %Stops) {
+ print " $Service: " . $Stops{$Service} . " Time(s)\n";
+ }
+}
+
+if (keys %OtherList) {
+ print "\n\n**Unmatched Entries**\n";
+ foreach my $line (sort {$a cmp $b} keys %OtherList) {
+ print " $line: $OtherList{$line} Time(s)\n";
+ }
+}
+
+exit(0);
+
+# vi: shiftwidth=3 tabstop=3 syntax=perl et
+# Local Variables:
+# mode: perl
+# perl-indent-level: 3
+# indent-tabs-mode: nil
+# End:
Property changes on: trunk/scripts/services/sssd
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk