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
58 utility transmits one or more check results or monitoring commands to an
61 The communication with the server is
63 encrypted and authenticated using pre-shared keys (as per
68 reads host or service check results from the standard input.
69 Multiple check results must be separated with an
71 character (octal value: 27).
72 Service check results are expected to be in the following format:
75 .IR host [tab] service [tab] status [tab] message [newline]
82 are the host name and service description as configured in Nagios,
84 is the numeric return code, and
87 Host check results are expected to be in the same format, just without
93 .IR host [tab] status [tab] message [newline]
105 Instead of accepting host or service check results in the format
106 described above, read \(lqraw\(rq monitoring commands for submission to
107 the Nagios command file from the standard input, one command per line.
108 The commands are expected to be in the format described in the Nagios
109 documentation; except that the leading bracketed timestamp may be
110 omitted, in which case the current timestamp is prepended to the
117 Read the configuration from the specified
119 instead of using the default configuration file
120 .IR @sysconfdir@/send_nsca.cfg .
125 Wait for a random number of seconds between 0 and the specified
127 before contacting the server.
128 This might be useful to reduce the server load if many
130 clients are invoked simultaneously.
131 The default setting is 0, which tells
133 to connect to the server immediately.
134 If this option is specified, the
137 .BR send_nsca.cfg (5)
145 (which must be a single
147 character) to separate the fields when parsing host or service check
151 must be a single character.
154 character other than a backslash, newline,
162 This option is ignored if the
169 Connect and talk to the specified
171 address or host name.
174 attempts to communicate with \(lqlocalhost\(rq.
175 This option takes precedence over the
178 .BR send_nsca.cfg (5)
184 Print usage information to the standard output and exit.
189 Close the connection if the server didn't respond for the specified
195 won't enforce connection timeouts.
199 This option is provided for compatibility with
202 If it's specified, the
205 .BR send_nsca.cfg (5)
211 Connect to the specified service name or
213 number instead of using the default
216 This option takes precedence over the
219 .BR send_nsca.cfg (5)
225 Write all messages to the standard error output.
226 This is the default behaviour.
231 Send all messages to the system logger.
232 This option may be combined with the
239 This option is ignored.
240 It is accepted for compatibility with
247 Print version information to the standard output and exit.
252 Generate a message for each check result or monitoring command sent to
256 This option can be specified up to three times in order to increase the
263 utility exits 0 on success, and >0 if an error occurs.
268 .I @sysconfdir@/send_nsca.cfg
271 .BR send_nsca.cfg (5)
276 .BR send_nsca.cfg (5),
281 .I http://www.nagios.org/developerinfo/externalcommands/
285 Holger Weiss <holger@weiss.in-berlin.de>
287 .\" vim:set filetype=nroff textwidth=72: