Skip to content

Commit

Permalink
Merge pull request #7 from mariux64/add-logwatcher
Browse files Browse the repository at this point in the history
[netlog] Add logwatcher
  • Loading branch information
wwwutz authored Jan 6, 2017
2 parents 90ba40c + 25d7389 commit 9543ea1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions netlog/netlog
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use Getopt::Long;
use Sys::Syslog;
use Donald::Select::Watchfile;

our ($RCS_REVISION)='$Revision: 1.35 $'=~/([\d.]+)/;
our ($RCS_REVISION)='$Revision: 1.36 $'=~/([\d.]+)/;

our %options;
our $TCP_MAX=1024;
Expand Down Expand Up @@ -145,9 +145,9 @@ sub filter {
}

/netlog test/ and return 'TEST';

/WEBCAM/ and return 'CAM';

$proc eq 'InRow RC' and return 'INROW';
if ($proc eq 'UPS') {
return 'UPS' unless /(Started|Passed) a self-test./;
Expand All @@ -165,6 +165,10 @@ sub filter {

/remote fault/ and return 'REMOTE_FAULT';

if ($proc eq 'logwatcher') { # /project/admin/tools/logwatcher.pl on geniux
return 'LOGWATCHER';
}

return 0;
}

Expand Down

0 comments on commit 9543ea1

Please sign in to comment.