where do I configure hostgroups?

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.
Locked
Hoygen83
Posts: 16
Joined: Mon Oct 28, 2019 10:30 am

where do I configure hostgroups?

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: where do I configure hostgroups?

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked