How to install Nagios on CentOS?
Host groups CFG
It is best practice to define hostgroups in /etc/nagios/objects/hostgroups.cfg file for the ease of understanding and management.
[root@yourmachine objects] vim hostgroups.cfg
define hostgroup{
hostgroup_name basic-clients
alias basic clients
members mymachine1, machine2
}
define hostgroup{
hostgroup_name your-routers
alias routers
members router1
}
define hostgroup{
hostgroup_name linux-servers ; the name of the hostgroup
alias linux Servers ; Long name of the group
members localhost, linuxmachine1, linuxmachi
}
define hostgroup{
hostgroup_name windows-servers
alias Windows Servers
members WindowsServer1, WindowsServer2
}