lib/logstash/outputs/nagios_nsca.rb in logstash-output-nagios_nsca-0.1.0 vs lib/logstash/outputs/nagios_nsca.rb in logstash-output-nagios_nsca-0.1.1
- old
+ new
@@ -10,10 +10,11 @@
# where you want to send logs or alerts. If you only have one server, this
# output is probably overkill # for you, take a look at the 'nagios' output
# instead.
#
# Here is a sample config using the nagios_nsca output:
+# [source,ruby]
# output {
# nagios_nsca {
# # specify the hostname or ip of your nagios server
# host => "nagios.example.com"
#
@@ -42,20 +43,20 @@
# The path to the send_nsca config file on the local host.
# Leave blank if you don't want to provide a config file.
config :send_nsca_config, :validate => :path
# The nagios 'host' you want to submit a passive check result to. This
- # parameter accepts interpolation, e.g. you can use @source_host or other
+ # parameter accepts interpolation, e.g. you can use `@source_host` or other
# logstash internal variables.
config :nagios_host, :validate => :string, :default => "%{host}"
# The nagios 'service' you want to submit a passive check result to. This
- # parameter accepts interpolation, e.g. you can use @source_host or other
+ # parameter accepts interpolation, e.g. you can use `@source_host` or other
# logstash internal variables.
config :nagios_service, :validate => :string, :default => "LOGSTASH"
# The format to use when writing events to nagios. This value
- # supports any string and can include %{name} and other dynamic
+ # supports any string and can include `%{name}` and other dynamic
# strings.
config :message_format, :validate => :string, :default => "%{@timestamp} %{host}: %{message}"
public
def register