Importing service templates is erractic
Posted: Wed Oct 03, 2018 10:08 am
Hi
I am importing configuration from our old Nagios.
Configuration files were generated with nconf (conf tool of our current nagios install).
I respect the order described in documentation for importing contacts, contacgroups, hosts...
In services template, I have this kind of thing :
templates.cfg :
In this exemple, I obtain the following result in CCM :
template_0, template_2 and generic_templates are OK.
template_1 has only the inhéritence of template_0!!!!
=> The issue is that the import is made in order of the definitions in file!
=> The second issue is that Nagios XI says nothing about this incomplete import during files integration!
Now I have problems with the services that include these incomplete template.
Do I have to sort by myself the hundreds of services template? Why the import procedure does not try to solve and sort template by itself?
The workaround is to import twice the template files, but if I had 4level of inheritance, do I need to import four time the same file?
I think you should correct this issue, because lot of Nagios installation use inheritence nowadays...
Regards
Guillaume
I am importing configuration from our old Nagios.
Configuration files were generated with nconf (conf tool of our current nagios install).
I respect the order described in documentation for importing contacts, contacgroups, hosts...
In services template, I have this kind of thing :
templates.cfg :
Code: Select all
define template_0 {
...
}
define template_1 {
...
use generic_template, template_0
...
}
define generic_template {
...
}
define template_2 {
...
use generic_template, template_0
...
}
template_0, template_2 and generic_templates are OK.
template_1 has only the inhéritence of template_0!!!!
=> The issue is that the import is made in order of the definitions in file!
=> The second issue is that Nagios XI says nothing about this incomplete import during files integration!
Now I have problems with the services that include these incomplete template.
Do I have to sort by myself the hundreds of services template? Why the import procedure does not try to solve and sort template by itself?
The workaround is to import twice the template files, but if I had 4level of inheritance, do I need to import four time the same file?
I think you should correct this issue, because lot of Nagios installation use inheritence nowadays...
Regards
Guillaume