From: pstimpel Date: Fri, 13 Mar 2015 11:40:40 +0000 (+0000) Subject: Version 1.0.3 X-Git-Tag: V1.0.4~5 X-Git-Url: https://xp-dev.com/git/logcheck/commitdiff_plain/65d0d4018fa032571e22b7e296900ea69f77012c Version 1.0.3 - adds a remark to logfiles if violations against the whitelist were found - this remark was added to the whitelist ("logcheckprint") git-svn-id: https://xp-dev.com/svn/logcheck_svn/trunk@3 08cdd22e-cda9-4120-9a75-5d5767cdac8b --- diff --git a/CHANGES b/CHANGES index 9eab572..a93af2a 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,9 @@ logcheck.pl ------------------- +V 1.0.3 +- adds a remark to logfiles if violations against the whitelist were found +- this remark was added to the whitelist ("logcheckprint") + V 1.0.2 - minor changes within debug mode, mail will not become sent in this mode anymore diff --git a/logcheck.pl b/logcheck.pl index 4bf4920..95ebe40 100644 --- a/logcheck.pl +++ b/logcheck.pl @@ -8,7 +8,7 @@ $mode="run"; sub head() { print "\n"; print "-----------------------------\n"; - print "This is logcheck.pl V1.0.2\n"; + print "This is logcheck.pl V1.0.3\n"; print "http://peters-webcorner.de\n"; print "project hosted on origo\n"; print "http://logcheck.origo.ethz.ch\n"; @@ -167,6 +167,8 @@ foreach $thisfile (@logfiles) { print MAIL "Subject: ($thisfile) violation report $Jetztzeit\n\n\n"; print MAIL $outtext; close(MAIL); + $command="\/usr\/bin\/logger -p warn logcheckprint"; + system($command); } } else { if($mode eq "debug") { diff --git a/logcheck.whitelist b/logcheck.whitelist index acaff76..88abcd7 100644 --- a/logcheck.whitelist +++ b/logcheck.whitelist @@ -10,3 +10,7 @@ # in normal textlines without regex you will need to mask characters like \ or . # +#Keep this is any case +logcheckprint + +#and add your phrases below