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.
where do I configure hostgroups?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: where do I configure hostgroups?
That would work, you lust need to add that cfg_file to the nagios.cfgHoygen83 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?
https://assets.nagios.com/downloads/nag ... #hostgroup