Appendix C. Command-Line Options

This appendix contains command-line options for the Nagios binary and as several frequently used plugins in the plugins tarball.

Nagios

Nagios Binary

Syntax

/path/to/nagios  [option]  <main_config_file>

Discussion

The Nagios binary normally starts by way of an init script; however, it can be called from the command line and provides two interesting and useful modes when accessed in this manner.

Table C.1. Nagios Command-Line Options

image

Plugins

By nature, all plugins may be executed directly from the command line. The first law of plugins is that they share an -h switch. The -h switch displays information about the ...

Get Building a Monitoring Infrastructure with Nagios 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.