Nagios Configuration Files
Main Configuration File (Ref: http://nagios.sourceforge.net/docs/3_0/configmain.html)
Main Configuration File (Ref: http://nagios.sourceforge.net/docs/3_0/configmain.html)
- Path: /etc/nagios3/nagios.cfg
- The main configuration file contains a number of directives that affect how the Nagios daemon operates.
- This config file is read by both the Nagios daemon and the CGIs.
Resource File(s) (Ref: http://nagios.sourceforge.net/docs/3_0/configmain.html#resource_file)
- Resource files can be used to store user-defined macros.
- The main point of having resource files is to use them to store sensitive configuration information (like passwords), without making them available to the CGIs.
Object Definition Files (Ref: http://nagios.sourceforge.net/docs/3_0/configobject.html http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html)
- Object definition files are used to define hosts, services, hostgroups, contacts, contactgroups, commands, etc.
- This is where you define all the things you want monitor and how you want to monitor them.
- You can specify one or more object definition files by using the cfg_file and/or cfg_dir directives in your main configuration file.
CGI Configuration File (Ref: http://nagios.sourceforge.net/docs/3_0/configcgi.html)
- The CGI configuration file contains a number of directives that affect the operation of the CGIs.
- It also contains a reference the main configuration file,
- so the CGIs know how you've configured Nagios and where your object definitions are stored.
No comments:
Post a Comment