Skip to content

Add logwatcher #7

Merged
merged 3 commits into from
Jan 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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