View config file interpretation

I like to find out which templates etc affects an object.
If I remember correctly there is a command (or logfile) which even shows every filename with linenumber and columns.

Any ideas?

Probably you are looking for icinga2 object list.
e.g : icinga2 object list --type host --name name.of.host
or icinga2 object list --type service --name name.of.service
etc etc

Cheers,
George

1 Like

Hi,

hint for future iterations: The troubleshooting docs are a rich source for these kind of questions :slight_smile:

https://icinga.com/docs/icinga2/latest/doc/15-troubleshooting/#configuration-attributes-are-inherited-from

Cheers,
Michael

1 Like

thanx, “icinga2 object list” is what I am looking for.