We've moved to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Go to the Answer Hub

how to see resulting nagios configuration from templates

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

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 Community Support

Who is online

Users browsing this forum: No registered users and 9 guests