[Nagios-devel] Config from PostgreSQL

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.
Locked
Guest

[Nagios-devel] Config from PostgreSQL

Post by Guest »

This is a multi-part message in MIME format.
--------------060409000708090303090902
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I've been charged with a mission a little outside of my usual skillset,
and that is to get Nagios 3.2.3 running from config based on a
PostgreSQL table instead of the normal cnf_dir setting. I can work out
the actual code for this but im struggling to find /where/ it should go.

I have only found one instance of cnf_dir in the source and that is here:

else if(strstr(input,"cfg_file=")==input ||
strstr(input,"cfg_dir=")==input)
continue;

in config.c line 1328. I have no problems hacking the core, but where do
I start?

Regards,

Phil

--------------060409000708090303090902
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit








I've been charged with a mission a little outside of my usual
skillset, and that is to get Nagios 3.2.3 running from config based
on a PostgreSQL table instead of the normal cnf_dir setting. I can
work out the actual code for this but im struggling to find where
it should go.

I have only found one instance of cnf_dir in the source and that is
here:

            else if(strstr(input,"cfg_file=")==input ||
strstr(input,"cfg_dir=")==input)
            continue;

in config.c line 1328. I have no problems hacking the core, but
where do I start?

Regards,

Phil



--------------060409000708090303090902--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked