Version: Nagios XI 5.2.7
Question 1) Is there a way to convert contactgroups.cfg file to contactgroups directory and have apply configuration create the individual files vs put them into one file.
Reason 1) When I use the apply configuration button. I get the below error, but it is not consistence except for Unexpected EOF. The cfg file is reference are contacts.cfg, hostgroups.cfg, and contactgroups.cfg. I am guessing that a timeout gets reached before the whole file can be written to, but the file looks to have completed fine.
[root@<Nagios Server> etc]# grep { contactgroups.cfg | wc -l
299
[root@<Nagios Server> etc]# grep } contactgroups.cfg | wc -l
299
[root@<Nagios Server> etc]# tail contactgroups.cfg
alias windows+wpscitrix
}
###############################################################################
#
# Contact Group configuration file
#
# END OF FILE
#
###############################################################################
Error: Unexpected EOF in file '/usr/local/nagios/etc/contactgroups.cfg' on line 1443 - check for a missing closing bracket.
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Unexpected EOF in file '/usr/local/nagios/etc/contactgroups.cfg' on line 1443 - check for a missing closing bracket.
Error processing object config files!
Question 2) For large environments, it is better to use one cfg file or separated cfg files inside a directory like Hosts or Services?
Reason 2)
We have the below setup so far and that is just Ping, CPU, Memory. We still are working to add Disk Space and Services. I am guessing we may have double or three the number of services, hostgroups, contactgroups from what we currently have.
6377 services.
1960 hosts.
298 host groups.
0 service groups.
135 contacts.
299 contact groups.
Active Service Checks
1-min 659
5-min 3966
15-min 6354