Page 1 of 1

how to see resulting nagios configuration from templates

Posted: Wed Jun 08, 2022 4:57 pm
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 !

Re: how to see resulting nagios configuration from templates

Posted: Thu Jun 09, 2022 1:04 pm
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 !