- 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
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
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";
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") {
# in normal textlines without regex you will need to mask characters like \ or .
#
+#Keep this is any case
+logcheckprint
+
+#and add your phrases below