z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

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.

how to see resulting nagios configuration from templates

Postby lbsopsit » Wed Jun 08, 2022 4:57 pm

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

Postby lbsopsit » Thu Jun 09, 2022 1:04 pm

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

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


Return to Open Source Nagios Projects

Who is online

Users browsing this forum: No registered users and 23 guests