Importng / transitioning from core to XI
Posted: Tue Feb 12, 2019 5:35 am
Hello,
We've previously looked into migrating into Nagios XI (over a year ago) but time wasn't on our side, but we're back again. The general structure of how we want to create services, templates, groups & hosts has been decided so that we can essentially "tag" a host with the relevant pieces and it'll inherit the services for those tags (e.g. "web" or "mysql" for relevant checks).
This is quite different to our current core set up that was created many years ago and has been added to by various people over the years, meaning it's not 100% consistent and a lot of it could be reduced down so there's little repetition.
We're looking into ways that we can make our migration a tad easier (by refining the process locally before applying to the new XI server once that's in place). Initially I thought we'd enter all the templates, groups etc. into the system via CCM however overall it's quite slow when there's lot of its that are the same that you have to re-enter on various pieces (even if you copy previous definitions it usually means several overrides / enabling it etc.). One thing especially was the default "inheritance" of groups / parents / hosts etc. where it's set to "Standard" by default whereas we mostly want to use +, so each level extends the previous template/level.
We're wondering if there's any downsides (or if it's a bad idea) in manipulating the nagiosql database? We were thinking of creating a script that read the structure of what we want from a definition file that we create which is interpreted into the correct structure for the database? This would handle creating the relevant contact groups, contact templates, host groups, host templates, hosts, service groups, service templates, services, time definitions / periods, variable definitions and all the relations between it.
Or have we missed something that's available in Nagios XI (I don't think the "Import Config Files" functionality would be useful in our case).
Thanks for your time
We've previously looked into migrating into Nagios XI (over a year ago) but time wasn't on our side, but we're back again. The general structure of how we want to create services, templates, groups & hosts has been decided so that we can essentially "tag" a host with the relevant pieces and it'll inherit the services for those tags (e.g. "web" or "mysql" for relevant checks).
This is quite different to our current core set up that was created many years ago and has been added to by various people over the years, meaning it's not 100% consistent and a lot of it could be reduced down so there's little repetition.
We're looking into ways that we can make our migration a tad easier (by refining the process locally before applying to the new XI server once that's in place). Initially I thought we'd enter all the templates, groups etc. into the system via CCM however overall it's quite slow when there's lot of its that are the same that you have to re-enter on various pieces (even if you copy previous definitions it usually means several overrides / enabling it etc.). One thing especially was the default "inheritance" of groups / parents / hosts etc. where it's set to "Standard" by default whereas we mostly want to use +, so each level extends the previous template/level.
We're wondering if there's any downsides (or if it's a bad idea) in manipulating the nagiosql database? We were thinking of creating a script that read the structure of what we want from a definition file that we create which is interpreted into the correct structure for the database? This would handle creating the relevant contact groups, contact templates, host groups, host templates, hosts, service groups, service templates, services, time definitions / periods, variable definitions and all the relations between it.
Or have we missed something that's available in Nagios XI (I don't think the "Import Config Files" functionality would be useful in our case).
Thanks for your time