1 .\" Copyright (c) 2013 Holger Weiss <holger@weiss.in-berlin.de>
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions are met:
7 .\" 1. Redistributions of source code must retain the above copyright notice,
8 .\" this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright notice,
11 .\" this list of conditions and the following disclaimer in the documentation
12 .\" and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 .\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
18 .\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24 .\" POSSIBILITY OF SUCH DAMAGE.
26 .TH send_nsca 8 "@date@" "Version @version@" "The NSCA\-ng Manual"
31 \- send monitoring commands to NSCA\-ng server
60 utility transmits one or more check results or monitoring commands to an
63 The communication with the server is
65 encrypted and authenticated using pre-shared keys (as per
70 reads host or service check results from the standard input.
71 Multiple check results must be separated with an
73 character (octal value: 27).
74 Service check results are expected to be in the following format:
77 .IR host [tab] service [tab] status [tab] message [newline]
84 are the host name and service description as configured in Nagios,
86 is the numeric return code, and
89 Host check results are expected to be in the same format, just without
95 .IR host [tab] status [tab] message [newline]
107 Instead of accepting host or service check results in the format
108 described above, read \(lqraw\(rq monitoring commands for submission to
109 the Nagios command file from the standard input, one command per line.
110 The commands are expected to be in the format described in the Nagios
111 documentation; except that the leading bracketed timestamp may be
112 omitted, in which case the current timestamp is prepended to the
119 Read the configuration from the specified
121 instead of using the default configuration file
122 .IR @sysconfdir@/send_nsca.cfg .
127 Wait for a random number of seconds between 0 and the specified
129 before contacting the server.
130 This might be useful to reduce the server load if many
132 clients are invoked simultaneously.
133 The default setting is 0, which tells
135 to connect to the server immediately.
136 If this option is specified, the
139 .BR send_nsca.cfg (5)
147 instead of a horizontal tab to separate the fields when parsing host or
148 service check results.
151 must be a single character, a C-style backslash escape sequence, the
152 octal value of a character with a leading zero, or the hexadecimal value
153 of a character prefixed with \(lq0x\(rq.
156 character other than a backslash, newline,
161 This option is ignored if the
172 character to separate multiple host or service check results.
175 must be a single character, a C-style backslash escape sequence, the
176 octal value of a character with a leading zero, or the hexadecimal value
177 of a character prefixed with \(lq0x\(rq.
180 character is allowed, but note that multiline check result messages
181 cannot be submitted if a newline character is used.
182 This option is ignored if the
189 Connect and talk to the specified
191 address or host name.
194 attempts to communicate with \(lqlocalhost\(rq.
195 This option takes precedence over the
198 .BR send_nsca.cfg (5)
204 Print usage information to the standard output and exit.
209 Close the connection if the server didn't respond for the specified
215 won't enforce connection timeouts.
219 This option is provided for compatibility with
222 If it's specified, the
225 .BR send_nsca.cfg (5)
231 Connect to the specified service name or
233 number instead of using the default
236 This option takes precedence over the
239 .BR send_nsca.cfg (5)
245 Write all messages to the standard error output.
246 This is the default behaviour.
251 Send all messages (except for usage errors) to the system logger.
252 This option may be combined with the
259 This option is ignored.
260 It is accepted for compatibility with
267 Print version information to the standard output and exit.
272 Generate a message for each check result or monitoring command sent to
276 This option can be specified up to three times in order to increase the
283 utility exits 0 on success, and >0 if an error occurs.
288 .I @sysconfdir@/send_nsca.cfg
291 .BR send_nsca.cfg (5)
296 .BR send_nsca.cfg (5),
301 .I http://www.nagios.org/developerinfo/externalcommands/
305 Holger Weiss <holger@weiss.in-berlin.de>
307 .\" vim:set filetype=nroff textwidth=72: