Does nagios XI still only read its config at startup/reload?
Posted: Wed Oct 31, 2018 9:03 am
Hi,
A colleague asserts that, with nagios XI, it's vitally important to minimize config file sizes, that nagios xi continually passes through the config so every optimization will help at run-time (granted, either way, optimizations might help at reload time, but we're talking something that takes seconds once every config change, and I get that, but that's trivial). From what I can find out, nagios xi reads the config only when starting up or being told to reload it (which I can find is definitively true for Nagios Core, but I can't find any such statement about XI). Who is correct here?
(more detail for those who care how this came up...)
He's trying to get me to optimize some checks/services/servicegroups/service templates in very unclear ways, even though the result will generate the exact same set of checks, just with a few fewer stanzas in the config file. He just sent me a very convoluted diagram he wants me to optimize to make the config file smaller, and after years of nagios, even I am having trouble figuring out all the ins and outs of how this is supposed to work -- all to save a half dozen service stanzas. It's basically a nonprod/prod set up with differing contact destinations for hosts vs. services/prod vs. nonprod, and I've got prod and nonprod services duplicated, with servicegroups needed for some of the services in prod in one and some of the services in nonprod for one. If my assumption is correct, it's a waste of a few hours to little avail; if his is correct, of course I'd want to optimize it for all time.
So, can someone tell me, does XI actually constantly read the config files while running? Or just once when it's started up or otherwise explicitly "told" to?
A colleague asserts that, with nagios XI, it's vitally important to minimize config file sizes, that nagios xi continually passes through the config so every optimization will help at run-time (granted, either way, optimizations might help at reload time, but we're talking something that takes seconds once every config change, and I get that, but that's trivial). From what I can find out, nagios xi reads the config only when starting up or being told to reload it (which I can find is definitively true for Nagios Core, but I can't find any such statement about XI). Who is correct here?
(more detail for those who care how this came up...)
He's trying to get me to optimize some checks/services/servicegroups/service templates in very unclear ways, even though the result will generate the exact same set of checks, just with a few fewer stanzas in the config file. He just sent me a very convoluted diagram he wants me to optimize to make the config file smaller, and after years of nagios, even I am having trouble figuring out all the ins and outs of how this is supposed to work -- all to save a half dozen service stanzas. It's basically a nonprod/prod set up with differing contact destinations for hosts vs. services/prod vs. nonprod, and I've got prod and nonprod services duplicated, with servicegroups needed for some of the services in prod in one and some of the services in nonprod for one. If my assumption is correct, it's a waste of a few hours to little avail; if his is correct, of course I'd want to optimize it for all time.
So, can someone tell me, does XI actually constantly read the config files while running? Or just once when it's started up or otherwise explicitly "told" to?