SF.net SVN: logwatch:[331] trunk/scripts/services
[email protected] Sat, 27 Feb 2016 13:19:43 +0000
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 331
http://sourceforge.net/p/logwatch/code/331
Author: stefjakobs
Date: 2016-02-27 13:19:43 +0000 (Sat, 27 Feb 2016)
Log Message:
-----------
ignore session opened, closed from cron
Modified Paths:
--------------
trunk/scripts/services/cron
trunk/scripts/services/systemd
Modified: trunk/scripts/services/cron
===================================================================
--- trunk/scripts/services/cron 2016-02-24 18:42:59 UTC (rev 330)
+++ trunk/scripts/services/cron 2016-02-27 13:19:43 UTC (rev 331)
@@ -1,102 +1,5 @@
-##########################################################################
-# $Id$
-##########################################################################
-# $Log: cron,v $
-# Revision 1.37 2009/06/02 14:41:09 mike
-# Patch from Fedora (Ivan Varekova) -mgt
-#
-# Revision 1.36 2009/02/20 17:57:23 mike
-# Added fedora/redhet patches from Ivan Varekova -mgt
-#
-# Revision 1.35 2008/12/09 18:30:37 mike
-# Inotify patch from Orion Poplawski -mgt
-#
-# Revision 1.34 2008/08/18 15:52:00 mike
-# Fixed WRONG FILE type line 166 [from debian lenny] -mgt
-#
-# Revision 1.33 2008/03/24 23:31:26 kirk
-# added copyright/license notice to each script
-#
-# Revision 1.32 2007/11/25 19:54:41 bjorn
-# Handles more PAM and SELINUX errors, by Ivana Varekova.
-#
-# Revision 1.31 2007/08/22 19:03:45 bjorn
-# Processing of icrond messages, by Ivana Varekova.
-#
-# Revision 1.30 2007/02/16 03:13:51 bjorn
-# Fixed typo in variable name.
-#
-# Revision 1.29 2007/01/29 20:12:19 bjorn
-# Handling of "WRONG FILE OWNER", by Ivana Varekova.
-#
-# Revision 1.28 2006/12/20 15:35:02 bjorn
-# Additional filtering, by Ivana Varekova.
-#
-# Revision 1.27 2006/10/20 16:43:04 bjorn
-# Ignore additional log entry, by Willi Mann.
-#
-# Revision 1.26 2006/07/28 17:40:12 bjorn
-# Accounts for log turnover in OpenBSD, by Markus Lude.
-#
-# Revision 1.25 2006/01/31 20:21:25 bjorn
-# Ignore rsyncd, and coalesce ntpdate adjusts, by Bob Hutchinson.
-#
-# Revision 1.24 2005/11/30 05:00:50 bjorn
-# Filtering additional INFO lines, by Willi Mann.
-#
-# Revision 1.23 2005/11/07 23:01:09 bjorn
-# Filtering for fcron, by Georgi Georgiev
-#
-# Revision 1.22 2005/10/03 15:56:43 bjorn
-# Processing "BAD FILE MODE", by Ivana Varekova.
-#
-# Revision 1.21 2005/05/11 20:41:22 mike
-# Added finish and start checks for netbsd 2.0 -mgt
-#
-# Revision 1.20 2005/02/24 17:08:04 kirk
-# Applying consolidated patches from Mike Tremaine
-#
-# Revision 1.7 2005/02/17 01:28:27 mgt
-# Kernel,Cron Patches from Bjorn [from Fedora Bugzilla], emerge.conf patch from Laurent -mgt
-#
-# Revision 1.6 2005/02/16 00:43:28 mgt
-# Added #vi tag to everything, updated ignore.conf with comments, added emerge and netopia to the tree from Laurent -mgt
-#
-# Revision 1.5 2005/02/13 21:26:13 mgt
-# patches from Michael Weiser -mgt
-#
-# Revision 1.4 2004/07/29 19:33:29 mgt
-# Chmod and removed perl call -mgt
-#
-# Revision 1.3 2004/07/10 01:54:34 mgt
-# sync with kirk -mgt
-#
-# Revision 1.17 2004/06/21 15:07:21 kirk
-# - Added check for large user mailboxes
-# - Added pop3 and imapd filters
-# - Updated clamav support
-# - New cisco log filter
-# - Tons of updates to existing filters (too many to list!)
-#
-# Revision 1.16 2004/06/21 14:59:05 kirk
-# Added tons of patches from Pawe? Go?aszewski" <[email protected]>
-#
-# Thanks, as always!
-#
-# Revision 1.15 2004/06/21 14:24:46 kirk
-# RH9 fix from Jindrich Kubec <[email protected]
-#
-# Revision 1.14 2004/02/03 03:36:39 kirk
-# Patches from Anssi Kolehmainen <[email protected]>
-#
-# Revision 1.13 2004/02/03 02:45:26 kirk
-# Tons of patches, and new 'oidentd' and 'shaperd' filters from
-# Pawe? Go?aszewski" <[email protected]>
-#
-##########################################################################
-
########################################################
-## Copyright (c) 2008 Kirk Bauer
+## Copyright (c) 2008-2016 Kirk Bauer
## Covered under the included MIT/X-Consortium License:
## http://www.opensource.org/licenses/mit-license.php
## All modifications and contributions by other persons to
@@ -136,7 +39,8 @@
($ThisLine =~ /loading (system|user) tables/) or
($ThisLine =~ /loading table .*/) or
($ThisLine =~ /void Inotify::Remove\(InotifyWatch\*\): removing watch failed/) or
- ($ThisLine =~ /error: \(22\) Invalid argument/)
+ ($ThisLine =~ /error: \(22\) Invalid argument/) or
+ ($ThisLine =~ /pam_unix\(crond:session\): session (?:opened|closed) for user/)
) {
# Ignore
} elsif (
Modified: trunk/scripts/services/systemd
===================================================================
--- trunk/scripts/services/systemd 2016-02-24 18:42:59 UTC (rev 330)
+++ trunk/scripts/services/systemd 2016-02-27 13:19:43 UTC (rev 331)
@@ -79,7 +79,9 @@
$ThisLine =~ /^Received SIGRTMIN\+2[01] from PID \d+ \(plymouthd\)\.$/ or
# https://bugzilla.redhat.com/show_bug.cgi?id=1072368
$ThisLine =~ /^Received SIGRTMIN\+24 from PID \d+ \(kill\)\.$/ or
- $ThisLine =~ /^Removed slice /) {
+ $ThisLine =~ /^Removed slice / or
+ $ThisLine =~ /^pam_unix\(systemd-user:session\): session (?:opened|closed) for user/
+ ) {
# Ignore these
} elsif (my ($service) = ($ThisLine =~ /^Unit (.*) entered failed state\.$/)) {
$Failed{$service}++;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140