logcheck
|
@@ -8,7 +8,7 @@ |
8 |
8 |
|
sub head() { |
9 |
9 |
|
print "\n"; |
10 |
10 |
|
print "-----------------------------\n"; |
11 |
|
- |
print "This is logcheck.pl V1.0.2\n"; |
|
11 |
+ |
print "This is logcheck.pl V1.0.3\n"; |
12 |
12 |
|
print "http://peters-webcorner.de\n"; |
13 |
13 |
|
print "project hosted on origo\n"; |
14 |
14 |
|
print "http://logcheck.origo.ethz.ch\n"; |
|
@@ -167,6 +167,8 @@ |
167 |
167 |
|
print MAIL "Subject: ($thisfile) violation report $Jetztzeit\n\n\n"; |
168 |
168 |
|
print MAIL $outtext; |
169 |
169 |
|
close(MAIL); |
|
170 |
+ |
$command="\/usr\/bin\/logger -p warn logcheckprint"; |
|
171 |
+ |
system($command); |
170 |
172 |
|
} |
171 |
173 |
|
} else { |
172 |
174 |
|
if($mode eq "debug") { |