I’m trying to solve a problem that’s not making much sense to me…
This is on Nagios 2.5 and 2.7.
Nagios is complaining that a hostgroup is already defined, but I don’t see how since the name its complaining about only exists in one file…
It’s telling me this,
Error: Hostgroup ‘dev-www’ has already been defined
Error: Could not register hostgroup (config file
’/etc/nagios/lab-configs/development/dev-www.cfg’, starting on line 1)
But, I don’t see how that is possible…
[root@server nagios]# fgrep -R dev-www *
lab-configs/development/dev-www.cfg: hostgroup_name dev-www
As you can see a recursive search is only finding one existence of dev-www name
in my configs. If I remove it, it complains about another group definition.
I have no idea where to start with this problem…
My config looks like this…
alias Development Webservers
With a host config like this…
alias Development Server
There’s a host file above the development directory with these settings…
I really need to get this working and I really don’t want to redo all the configs again. They are also based on working configs I have done, which I don’t get why they are not working now.