We are using Nagios xi 2009R1.3 and monitoring over 1500 hosts. This is how the host configuration looks
Code: Select all
define host {
host_name server1
use xiwizard_linuxserver_host
address server1
parents core-switch1
max_check_attempts 3
check_interval 5
retry_interval 1
notification_interval 60
icon_image redhat.png
statusmap_image redhat.png
_xiwizard dh_linux_server
register 1
}
I am planning to make our host configurations look something like following
Code: Select all
define host {
host_name server1
use xiwizard_linuxserver_host
address server1
parents core-switch1
hostgroups linux-servers,linux-servers-datacentre1,linux-oracle-server
.....
I was wondering what are the best practices that are followed while defining hostgroups.
Is there an easy way to achieve what I am trying to do?
On a side note, my understanding to update files is this:
1. copy host files in import directory
2. add hostgroup information in each file
3. apply configuration
Is that correct?