retrieve field populated in several template
Posted: Thu Sep 22, 2016 9:15 am
Hallo,
I've a question about data retrieving on Nagios.
In several services we need to populate the field 'Notes URL': this is done in different ways, it happens to directly write the field inside the service, in some cases we use a Service Template with the field 'Notes URL' populated, or a 'Host Template'. A next complication level is added when a template containing the information is inherited from another template.
I've tried to write a SQL query, to get this information from Mysql 'nagios' database: the query is enormous and it's very hard to retrieve all the possible cases and combination with the various possible template.
Do you know a way to get these information? Maybe Nagios scan via script inside the configuration files bypassing the database option?
Regards
Francesco
I've a question about data retrieving on Nagios.
In several services we need to populate the field 'Notes URL': this is done in different ways, it happens to directly write the field inside the service, in some cases we use a Service Template with the field 'Notes URL' populated, or a 'Host Template'. A next complication level is added when a template containing the information is inherited from another template.
I've tried to write a SQL query, to get this information from Mysql 'nagios' database: the query is enormous and it's very hard to retrieve all the possible cases and combination with the various possible template.
Do you know a way to get these information? Maybe Nagios scan via script inside the configuration files bypassing the database option?
Regards
Francesco