send_nsca(8)
π send_nsca(8) β the NSCA-ng Manual, bestie edition
Okay so real talk: this is send_nsca, and it lives in the NSCA-ng manual, and it is literally the little messenger that hands your monitoring gossip over to the server. Iconic. Let's get into it. π«Ά
β¨ NAME β¨
send_nsca β send monitoring commands to NSCA-ng server. That's the whole vibe: it's a sender, it sends, it slays.
π SYNOPSIS π
send_nsca [-CSstv] [-c file] [-D delay] [-d delimiter] [-e separator]
[-H server] [-o timeout] [-p port]
send_nsca -h | -V
π¦ DESCRIPTION π¦
So send_nsca is the utility that transmits one or more check results or monitoring commands to an nsca-ng(8) server. Communication with the server is TLS encrypted and authenticated using pre-shared keys (as per RFC 4279) β yes, secure, yes, we love that for us. π
By default, send_nsca reads host or service check results from the standard input. Multiple check results must be separated with an ASCII ETB character (octal value: 27). No cap.
Service check results are expected to be in this format:
host[tab]service[tab]status[tab]message[newline]
Where host and service are the host name and service description as configured in Nagios, status is the numeric return code, and message is the output string. Host check results are expected to be in the same format, just without the service description:
host[tab]status[tab]message[newline]
And note that multiline messages are supported. π Go off, queen.
πΈ OPTIONS πΈ
-Cβ Instead of accepting host or service check results in the format described above, read "raw" monitoring commands for submission to the Nagios command file from the standard input, one command per line. Those commands are expected to be in the format described in the Nagios documentation β except that the leading bracketed timestamp may be omitted, in which case the current timestamp is prepended to the provided command bysend_nsca. Convenient? We think so. β-c fileβ Read the configuration from the specifiedfileinstead of using the default configuration file/etc/send_nsca.cfg.-D delayβ Wait for a random number of seconds between 0 and the specifieddelaybefore contacting the server. This might be useful to reduce the server load if manysend_nscaclients get invoked simultaneously β like, imagine a whole crowd of us walking in at once, chaos. Default setting is0, which tellssend_nscato connect to the server immediately. If this option is specified, thedelaysetting in thesend_nsca.cfg(5)file is ignored.-d delimiterβ Use the specifieddelimiterinstead of a horizontal tab to separate the fields when parsing host or service check results. Thedelimitermust be a single character, a C-style backslash escape sequence, the octal value of a character with a leading zero, or the hexadecimal value of a character prefixed with0x. Any ASCII character other than a backslash, newline, ETB, or NUL is allowed. This option is ignored if the-Coption is specified.-e separatorβ Use the specifiedseparatorinstead of an ASCII ETB character to separate multiple host or service check results. Theseparatormust be a single character, a C-style backslash escape sequence, the octal value of a character with a leading zero, or the hexadecimal value of a character prefixed with0x. Any ASCII character is allowed, but heads up: multiline check result messages cannot be submitted if a newline character is used. This option is ignored if the-Coption is specified. π-H serverβ Connect and talk to the specified server address or host name. By default,send_nscaattempts to communicate with"localhost". This option takes precedence over theserversetting in thesend_nsca.cfg(5)file.-hβ Print usage information to the standard output and exit. Bye bestie π-o timeoutβ Close the connection if the server didn't respond for the specified number of seconds. If the timeout is set to0,send_nscawon't enforce connection timeouts. The default timeout is15seconds. This option is provided for compatibility with NSCA 2.x. If it's specified, thetimeoutsetting in thesend_nsca.cfg(5)file is ignored.-p portβ Connect to the specified service name or port number instead of using the default port (5668). This option takes precedence over theportsetting in thesend_nsca.cfg(5)file.-Sβ Write all messages to the standard error output. This is the default behaviour.-sβ Send all messages (except for usage errors) to the system logger. This option may be combined with the-Soption. Teamwork, honestly.-tβ This option is ignored. It is accepted for compatibility with NSCA 2.x. She's just here for the vibes π-Vβ Print version information to the standard output and exit.-vβ Generate a message for each check result or monitoring command sent to thensca-ng(8)server. This option can be specified up to three times in order to increase the verbosity. Three times, bestie. Maximum yapping. π₯
π EXIT STATUS π
The send_nsca utility exits 0 on success, and >0 if an error occurs. Periodt.
π FILES π
/etc/send_nsca.cfgβ Thesend_nsca.cfg(5)configuration file. Her home. Her safe space. π
π SEE ALSO π
send_nsca.cfg(5), nsca-ng(8), nsca-ng.cfg(5)
http://www.nagios.org/developerinfo/externalcommands/
π§ AUTHOR π§
Holger Weiss <holger@weiss.in-berlin.de> β legend behavior, honestly π
Version 1.7, dated February 9, 2026 β that's the send_nsca(8) tea, page closed, mwah πβ¨
π¦ where this page comes from
- ubuntu resolute: nsca-ng-client 1.7-1 Β· BSD-2-Clause
- ubuntu stonking: nsca-ng-client 1.7-1build1 Β· BSD-2-Clause
- Copyright (c) 2013 Holger Weiss <holger@weiss.in-berlin.de>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms