Page 1 of 1

where do I configure hostgroups?

Posted: Mon Oct 28, 2019 11:05 am
by Hoygen83
Hello,
I just installed nagios 4.4.5 on a ubuntu 19.10 lts.
I was following this documentation https://assets.nagios.com/downloads/nag ... nters.html when restarting nagios core service gave me an error.
it seems that
hostgroups allhosts ; Host groups this printer is associated with
does not exist.
So I tried to find out where I should configure the hostgroups.
Should I make a file in /usr/local/nagios/etc/hostgroups/hostgroups.cfg and write
define hostgroup{
hostgroup_name Network-Printers
alias Printers Connected on the network
members zebra1,zebra2,zebra3
}
And then define the printers?
I am a bit confused.

Re: where do I configure hostgroups?

Posted: Mon Oct 28, 2019 11:10 am
by scottwilkerson
Hoygen83 wrote:Should I make a file in /usr/local/nagios/etc/hostgroups/hostgroups.cfg and write
define hostgroup{
hostgroup_name Network-Printers
alias Printers Connected on the network
members zebra1,zebra2,zebra3
}
And then define the printers?
That would work, you lust need to add that cfg_file to the nagios.cfg

https://assets.nagios.com/downloads/nag ... #hostgroup