how to see resulting nagios configuration from templates

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
lbsopsit
Posts: 2
Joined: Thu May 26, 2022 9:16 am

how to see resulting nagios configuration from templates

Post by lbsopsit »

Hello,
I'm using nagiosxi, with some hosts and contacts configured via the web gui, and a lot of config files deployed by a configuration management tool in /usr/local/nagios/etc/static

I would like to see the resulting configuration for hosts, services, etc, like we were able to do that in nagios 3 :
System -> configuration.
2022.06.08.17.49.25.screenshot.png
2022.06.08.17.54.28.screenshot.png
I heavily use templates and I need to see the resulting host/service from it.

A complete dump of the hosts/services is also perfectly acceptable !

Thanks !
lbsopsit
Posts: 2
Joined: Thu May 26, 2022 9:16 am

Re: how to see resulting nagios configuration from templates

Post by lbsopsit »

Update :
I found /usr/local/nagios/var/objects.cache
which contains the whole "merged and expanded" config, nagiosxi + nagios !
perfect for debugging templates

thanks !
Locked