nsca-ng(8)
π nsca-ng β the monitoring command acceptor, bestie edition π
okay so welcome to nsca-ng(8), straight out of The NSCA-ng Manual β¨ this is the page for the daemon that takes your monitoring commands and yeets them into Nagios. let's get into it π«Ά
β¨ NAME β¨
nsca-ng β the monitoring command acceptor π
πΈ SYNOPSIS πΈ
nsca-ng [-FSs] [-b listen] [-C file] [-c file] [-l level] [-P file]
nsca-ng -h | -V
π DESCRIPTION π
The nsca-ng server makes the Nagios command file reachable from remote systems. which means?? you can submit passive check results, downtimes, and like a whole bunch of other commands to Nagios (or any compatible monitoring solution, no gatekeeping π«Ά).
The client chatter is TLS encrypted and authenticated with pre-shared keys (as per RFC 4279, iykyk). and it's not just one shared password for everybody β the nsca-ng server does per-client passwords AND fine-grained authorization control. it's giving security. it's giving structure. we love to see it π
okay and here's the glow-up: the server process rereads its configuration file when it catches a hangup signal (SIGHUP), and the way it does that is by executing itself again with the name and arguments it was started with. iconic behaviour honestly.
When it's compiled with systemd(1) support, the nsca-ng server auto-detects whether it was socket activated. If it was, it behaves as if the -F option was specified, and it ignores the -b option and the listen setting in the nsca-ng.cfg(5) file. Also it supports systemd(1)'s notify process startup type AND the WatchdogSec feature (go read the systemd.service(5) manual, bestie, it's right there).
π OPTIONS π
-blisten β bind to the specified listen address or host name. the default setting isβ*β, which tellsnsca-ngto listen on all available interfaces. you can append a colon (β:β) followed by a service name or port number to override the default port (5668) thatnsca-nguses. and if you specify this option, thelistensetting in thensca-ng.cfg(5)file is ignored. sorry to that setting π-Cfile β submit monitoring commands into the specified file. this should be the named pipe (FIFO) that Nagios checks for external commands to process. by default,nsca-ngsubmits commands into/var/nagios/rw/nagios.cmd. this option takes precedence over thecommand_filesetting in thensca-ng.cfg(5)file. main character option energy, periodt.-cfile β read the configuration from the specified file instead of using the default configuration file/etc/nsca-ng.cfg. if you hand it a directory instead of a file, the configuration will be read from all files with a.cfgor.confextension in that directory and all subdirectories. symbolic links are followed. so flexible, we stan π-Fβ don't detach from the controlling terminal, and write all messages to the standard error output (unless the-soption is specified). stay in the group chat, don't leave π₯Ί-hβ print usage information to the standard output and exit. hi hello here's how to use me π-llevel β use the specified log level, which has to be an integer value between0and5inclusive. here's the whole vibe chart:0tellsnsca-ngto generate only fatal error messages1adds non-fatal error messages2adds warnings3additionally spits out every submitted monitoring command (plus startup and shutdown notices)4also logs each message sent or received at the protocol level5generates additional debug output
the default log level is 3. and if you specify this option, the log_level setting in the nsca-ng.cfg(5) file is ignored. choose your own adventure, bestie β¨
-Pfile β during startup, try to create and lock the specified file and write the process ID of thensca-ngdaemon into it. bail out if another process holds a lock on the file. by default, no such PID file is written. this option takes precedence over thepid_filesetting in thensca-ng.cfg(5)file. one daemon per file, no drama π-Sβ write all messages to the standard error output and (with the exception of startup messages) to the system logger. β οΈ this option may only be specified together with the-Foption. they're a package deal, fr fr.-sβ send all messages to the system logger, except for startup messages. this is the default behaviour (unless the-Foption is specified). lowkey the chill default π-Vβ print version information to the standard output and exit. flex the version number and dip π
π¦ FILES π¦
/etc/nsca-ng.cfgβ thensca-ng.cfg(5)configuration file. that's the one, that's the file π
π SEE ALSO π
nsca-ng.cfg(5), send_nsca(8), send_nsca.cfg(5)
http://www.nagios.org/developerinfo/externalcommands/
π AUTHOR π
Holger Weiss <holger@weiss.in-berlin.de>
and that's the whole page bestie!! this was Version 1.7, dated February 9, 2026 β go forth and accept those monitoring commands, you absolute icon ππβ¨π¦πΈ
π¦ where this page comes from
- ubuntu resolute: nsca-ng-server 1.7-1 Β· BSD-2-Clause
- ubuntu stonking: nsca-ng-server 1.7-1build1 Β· BSD-2-Clause
- Copyright (c) 2013 Holger Weiss <holger@weiss.in-berlin.de>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms