Changeset 784 for server/fedora/config/etc
- Timestamp:
- Aug 2, 2008, 5:25:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/fedora/config/etc/syslog-ng/d_zroot.pl
r783 r784 21 21 $class ||= $ZCLASS; 22 22 $instance ||= 'root.'.hostname; 23 # @recipients ||= @RECIPIENTS; 24 open(ZWRITE, "|-", qw|/usr/bin/zwrite -d -n -O log -c|, $class, '-i', $instance, '-s', hostname, @RECIPIENTS) or die "Couldn't open zwrite"; 23 open(ZWRITE, "|-", qw|/usr/bin/zwrite -d -n -O log -c|, $class, '-i', $instance, '-s', hostname, @recipients) or die "Couldn't open zwrite"; 25 24 print ZWRITE $message; 26 25 close(ZWRITE); … … 52 51 my (undef, $fingerprint, undef) = split(' ', $line, 3); 53 52 my (undef, undef, $comment) = split(' ', $key, 3); 54 print "$fingerprint $comment";53 #print "$fingerprint $comment"; 55 54 return ($fingerprint, $comment); 56 55 } … … 110 109 111 110 foreach my $class (keys %toclass) { 112 zwrite($toclass{$class}, $class); 111 if ($class eq "scripts-auto") { 112 zwrite($toclass{$class}, $class); 113 } else { 114 zwrite($toclass{$class}, $class, undef, @RECIPIENTS); 115 } 113 116 } 114 117 }
Note: See TracChangeset
for help on using the changeset viewer.