This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(streams (default {:state "ok"} | |
index | |
(by :host | |
(where (service "heartbeat") | |
(changed expired? | |
(where (expired? event) | |
(with {:state "critical"} | |
alert!) | |
(else alert!)))) | |
(where (and (tagged "collectd") (not (service "heartbeat")) (not (expired? event))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source s_remote_udp { | |
network( | |
transport(udp), | |
port(514), | |
flags(syslog-protocol) | |
); | |
}; | |
filter f_dell { | |
match( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@version: 3.5 | |
source s_tdin { | |
file("/dev/stdin" flags(no-parse)); | |
}; | |
destination d_one { | |
file("/tmp/one"); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@version: 3.5 | |
source s_tdin { | |
file("/dev/stdin" flags(no-parse)); | |
}; | |
destination d_stdout { | |
file("/dev/stdout"); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
☠ syslog-ng -f syslog-ng-debug.conf -R /tmp/R -p /tmp/p -c /tmp/c -Fdv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source s_irc { | |
channel { | |
source { | |
file( | |
"/etc/znc/moddata/log/in2p3-log/freenode/#ecole_in2p3/%{::manifests::ecole2015::current_date}.log" | |
log-fetch-limit(1) | |
flags(no-parse) | |
program-override(irc) | |
); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'resolv' | |
module Puppet::Parser::Functions | |
newfunction(:getaddress, :type => :rvalue, :doc => <<-EOS | |
Takes string and tries to resolve IP | |
EOS | |
) do |arguments| | |
if (arguments.size != 1) then | |
raise(Puppet::ParseError, "getaddress(): Wrong number of arguments " + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@version: 3.5.6 | |
log { | |
source { | |
file( | |
"/dev/stdin", | |
flags(no-parse), | |
); | |
}; | |
destination { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Facter.add(:java_foo) do | |
has_weight 100 | |
setcode do | |
'bar' | |
end | |
end | |
Facter.add(:java_foo) do | |
has_weight 200 | |
setcode do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log { | |
source { | |
file("/var/log/messages"); | |
}; | |
destination { | |
syslog("localhost"); | |
}; | |
}; |