View Effective Configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
AngeloMileto
Posts: 43
Joined: Mon Mar 21, 2022 7:53 am

View Effective Configuration

Post by AngeloMileto »

Given the inheritance nature of XI - which is nice - how do you determine the effective configuration for a given host and/or service?

I'm trying to tune my alert settings but they aren't changing as I expect them to. I suspect that some settings are being overridden by an inherited configuration/template but I can't find which one. Is there a way, as is available with other applications using an inheritance model for configurations, of showing the resultant/effective configuration for a given host and/or service.

Command line is fine but if it's only via the web/UI that will have to do.
gwesterman
Posts: 258
Joined: Wed Aug 23, 2023 11:29 am

Re: View Effective Configuration

Post by gwesterman »

Hi @AngeloMileto,

This isn't exactly what you're looking for, but the CCM in XI (Configure -> Core Config Manager) should give you enough to find a potentially conflicting parent / template / contact / contact group. Each host/service in the CCM has a list of their direct parents, any templates they are using, hostgroups they are a part of, and contacts / contact groups to which they send alerts.

Hopefully you can pinpoint your problem, but let us know if not.

Thank you!
gregbeyer
Posts: 174
Joined: Fri Sep 11, 2020 2:13 pm

Re: View Effective Configuration

Post by gregbeyer »

Plus 1 I have run into the same thing. In a large, complex environment with many different server roles (host / service groups) (host templates / service templates) and dependencies, it can be very time consuming and maddening going thru all the permutations of why something is or is not alerting as expected. If this doesn't exist, it needs to be created.
AngeloMileto
Posts: 43
Joined: Mon Mar 21, 2022 7:53 am

Re: View Effective Configuration

Post by AngeloMileto »

It has to "exist" as it's being implemented by XI/core so if it "knows" then there should be a way to query it - no?

At a minimum, is there a document that shows what the hierarchy is? So is the lowest level the winner? (i.e. host/service level settings over templates)

What about if there are stacked templates? For instance, I have a host that is using the xiwizard_windowsserver_host template. When you look at that template, it's referencing the windows-server template. The windows-server template is using the generic-host template. So if, for this case, there are values/entries in the alert fields under each or multiple of those paths - host/template1/template2/template3/... - which one wins?
jsimon
Posts: 318
Joined: Wed Aug 23, 2023 11:27 am

Re: View Effective Configuration

Post by jsimon »

Hi folks,

There's a couple of additional things you can try to get this information without having to manually dig through individual services in the CCM. The Nagios Core UI has a table view of the objects.cache file --stored on your XI server at

Code: Select all

/usr/local/nagios/var/objects.cache
This is a single file containing all your CCM objects. Digging through this file, or the UI within Nagios Core, is likely a better way to figure out what's actually going on with a given service's alerts.

To get to the Core UI, use the same URL to get to the home page of your Nagios XI UI, with "nagios" in place of "nagiosxi":

Code: Select all

https://[your_xi_ip]/nagios
The table you're looking for is under System -> Configuration. Your Nagios XI logins should work for the Core UI as well.

In addition, we have documents explaining Object Definitions and Object Inheritance that should answer your questions about hierarchy when examining this data.

https://assets.nagios.com/downloads/nag ... tance.html
https://assets.nagios.com/downloads/nag ... tions.html

Hopefully this helps, but let us know if you have any related questions!
AngeloMileto
Posts: 43
Joined: Mon Mar 21, 2022 7:53 am

Re: View Effective Configuration

Post by AngeloMileto »

@jsimon

Thanks!! I've not done anything in core as, when I inherited this system, core doesn't work - at least the web UI doesn't. It shows "It appears you do not have permission to view information for any of the hosts you requested."

I did some simple permission checks on the files/paths I knew about and all looked okay so I didn't waste time trying to fix it - bigger issues existed. Funny thing is that it doesn't even prompt for a login - strange.

Anyway, I'll poke around and see what I can find. Thanks for the place to look!
Post Reply