Sending commands to Nagios
Nagios offers a very powerful mechanism for receiving events and commands from external applications—the external commands pipe. This is a pipe file created on a filesystem that Nagios uses to receive incoming messages. The name of the file is rw/nagios.cmd
and it is located in the directory passed as the localstatedir
option during compilation. If you have followed the compilation and installation instructions given in Chapter 2, Installing Nagios 4,of this book, the filename will be /var/nagios/rw/nagios.cmd
.
The communication does not use any authentication or authorization—the only requirement is to have write access to the pipe file. An external command file is usually writable by the owner and the group; the usual ...
Get Learning Nagios - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.