Nagios 目录结构

[root@localhost ~]# ll /usr/local/nagios/
total 32
drwxrwxr-x.  2 nagios nagios 4096 Jun  6 15:53 bin        # Nagios 相关命令
drwxrwxr-x.  3 nagios nagios 4096 Jun  6 15:53 etc        # Nagios 配置文件
drwxr-xr-x.  2 root   root   4096 Jun  6 15:52 include    # Nagios 引用文件
drwxrwxr-x.  2 nagios nagios 4096 Jun  6 15:53 libexec    # Nagios 插件目录
drwxrwxr-x.  2 nagios nagios 4096 Jun  6 15:40 sbin       # Nagios 外部命令
drwxrwxr-x. 11 nagios nagios 4096 Jun  6 15:52 share      # Nagios Web 页面展示相关目录
drwxrwxr-x.  5 nagios nagios 4096 Jun  6 18:41 var        # Nagios 数据及日志目录
[root@localhost ~]# tree /usr/local/nagios/etc/    # Nagios 配置文件目录
/usr/local/nagios/etc/
|-- cgi.cfg
|-- htpasswd.users             # 登录 Nagios Web 页面时的用户名密码认证人间 |-- nagios.cfg                 # 主配置文件 |-- nrpe.cfg                   # 客户端配置文件 |-- objects                    # 主配置文件包含的配置文件目录 |   |-- commands.cfg          # 存放 Nagios 自己定义的命令 |   |-- contacts.cfg          # 用于配置报警联系人 |   |-- hosts.cfg              # 用于配置被监控的主机 |   |-- localhost.cfg          # 用于定义对本机的监控条目 |   |-- printer.cfg            # 用于定义对打印机的监控条目|   |-- services.cfg           # 用于配置被监控的服务 |   |-- switch.cfg             # 用于定义对交换机的监控条目 |   |-- templates.cfg          # 模板配置文件 |   |-- timeperiods.cfg        # 用于配置报警周期时间 |   `-- windows.cfg            # 用于定义对 Windows 的监控条目
`-- resource.cfg