[Email protected] ~]# ll/usr/local/nagios/total 32drwxrwxr-x. 2 Nagios nagios 4096 June 6 15:53 bin # Nagios related command drwxrwxr-x. 3 Nagios nagios 4096 June 6 15:53 etc # nagios configuration file drwxr-xr-x. 2 root root 4096 June 6 15:52 include # Nagios Reference file drwxrwxr-x. 2 Nagios nagios 4096 June 6 15:53 libexec # Nagios plugin directory drwxrwxr-x. 2 Nagios nagios 4096 June 6 15:40 sbin # nagios external command drwxrwxr-x. Nagios nagios 4096 June 6 15:52 Share # Nagios Web page shows related directory drwxrwxr-x. 5 Nagios nagios 4096 June 6 18:41 var # Nagios data and log directory
[Email protected] ~]# tree/usr/local/nagios/etc/# Nagios configuration file directory/usr/local/nagios/etc/|--cgi.cfg|--htpasswd.users # User name password authentication when logging on to Nagios Web page |--nagios.cfg # Master config file |--nrpe.cfg # Client configuration file |--Objects # The profile directory contained in the master configuration file | |--commands.cfg # storing Nagios's own defined commands | |--contacts.cfg # for configuring alarm contacts | |--hosts.cfg # for configuring a monitored host | |--localhost.cfg # Used to define monitoring entries for this machine | |--printer.cfg # used to define the monitor entry for the printer| |--services.cfg # for configuring monitored services | |--switch.cFG # is used to define monitoring entries for the switch| |--templates.cfg # template configuration file | |--timeperiods.cfg # for configuring alarm cycle times | `--windows.cfg # is used to define monitoring entries for Windows '--Resource.cfg
Nagios directory Structure