Changeset 646 for server/fedora/config/etc/syslog-ng
- Timestamp:
- Feb 11, 2008, 1:01:37 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/fedora/config/etc/syslog-ng/d_zroot.pl
r645 r646 7 7 sub sendmsg { 8 8 my ($message) = @_; 9 open(ZWRITE, "|-", qw|/usr/bin/zwrite -d -c scripts -i root -s|, hostname) or die "Couldn't open zwrite";9 open(ZWRITE, "|-", qw|/usr/bin/zwrite -d -c scripts|, '-i', 'root.'.hostname, '-s', hostname) or die "Couldn't open zwrite"; 10 10 print ZWRITE $message; 11 11 close(ZWRITE); … … 17 17 chomp $message; 18 18 $message =~ s/^(.*?): //; 19 if ($message =~ m|Accepted (\S+) for root|) {19 if ($message =~ m|Accepted (\S+) for (\S+)|) { 20 20 my $send = $message; 21 21 if ($1 eq "gssapi-with-mic") { 22 22 $send = $last."\n".$send; 23 23 } 24 sendmsg($send); 24 if ($2 eq "root" or $2 eq "logview") { 25 sendmsg($send); 26 } 25 27 } 26 28 $last = $message;
Note: See TracChangeset
for help on using the changeset viewer.