after installing the Nagios, and taking long time of reading about how to configure hosts in it, i'm quite confused of the following.
1- in the file /usr/local/nagios/etc/objects/nagios.cfg after removing the "#" from the following lines, nagios start to monitor them,
Code: Select all
# Definitions for monitoring the local (Linux) host
cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
# Definitions for monitoring a Windows machine
#cfg_file=/usr/local/nagios/etc/objects/windows.cfg
# Definitions for monitoring a router/switch
cfg_file=/usr/local/nagios/etc/objects/switch.cfg
# Definitions for monitoring a network printer
cfg_file=/usr/local/nagios/etc/objects/printer.cfgCode: Select all
cfg_dir=/usr/local/nagios/etc/servers
cfg_dir=/usr/local/nagios/etc/printers
cfg_dir=/usr/local/nagios/etc/switches
cfg_dir=/usr/local/nagios/etc/routers1.3.a what about the routers?
1.3.b: are they sharing the same object_file "cfg_file=/.../switch.cfg" with the switches?
1.4 if 1.3.b is yes, i have 100 router in our network to be monitored, how to build a common_cfg_file for all routers and then set specific cfg upon demand for the desired router for monitoring?
i may say in short the process link between cfg_files are not clear for me yet
appreciate your help.