Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Hi,
I would like to add more Host Groups on my Nagios Site. Right now I have one for Citrix Servers and would like to have one for Web Servers too. How it is possible to do that ? Right now as written I have crated a Config file for Citrix Servers "hostgroubs.cfg" then I would like to have one for my Web Servers. Why ? because then I have a better view on the Nagios interface.
michaelpn
Michael Pierre
Forenede Gruppeliv
2500 Valby
Copenhagen
You can put all of the hostgroups in the same config file, or you can separate them out. Since you already have a hostgroups.cfg (I'm assuming that's correct), I would just go with that.
Are all of your web servers already set up as hosts? If not, you'll need to do that too.
define hostgroup{
hostgroup_name G03
alias WEB SERVERS
}
TIP: I name my groups as G1, G2, G3, N1 and so on so Nagios Web Interface will sort them alphabetically.
The ALIAS I set with a friendly name to help myself and others to quickly find hosts/hostgroups.
Thanks @DiegoAnjos! That's exactly what we do in XI by default. I'd quibble with saying you define the hostgroup in the host file. You are setting or associating the hostgroup in the host file. The definition is in hostgroups.cfg per your example. I know what you mean, but I'm just clarifying for people new to nagios.
many thanks for your answers. That is exactly what I have done. But if you look at my attachments you will see I only use "houstgroups.cfg" for my citrix- and web servers and nagiso shows that on the interface but what is nagging me is that Nagios shows me WSTEST1 on both host one for citrix-servers and web-servers. Why ?
Attachments
Michael Pierre
Forenede Gruppeliv
2500 Valby
Copenhagen