NagiosQL supports the import of existing NagiosQL configuration files.
NagiosQL supports an additional configuration name for all services to group them together by this name - e.g. all services of a host. Since this parameter is not present in standard configuration files, it can be written manually before the first import into NagiosQL.
For this purpose this line can be added to any single service configuration:
#NAGIOSQL_CONFIG_NAME myhost.mydomain.com
or
#NAGIOSQL_CONFIG_NAME My_webserver_services (no blanks!)
If this line is not found, NagiosQL generates its own name from the available data, this can be cleaned up later - but is more time consuming.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
is there a way to import an existing config files?
I have a Nagios Core Instance and this is configured with NConf.
I have a lot of hosts (268) and services ( 639) with parent child configuraion.
Regards,
Ronny
Last edit: Ronny Preiss 2023-06-18
NagiosQL supports the import of existing NagiosQL configuration files.
NagiosQL supports an additional configuration name for all services to group them together by this name - e.g. all services of a host. Since this parameter is not present in standard configuration files, it can be written manually before the first import into NagiosQL.
For this purpose this line can be added to any single service configuration:
If this line is not found, NagiosQL generates its own name from the available data, this can be cleaned up later - but is more time consuming.