Config from PostgreSQL

Andreas Ericsson ae at op5.se
Tue Dec 7 15:28:43 CET 2010


On 12/06/2010 11:41 PM, Phil Sturgeon wrote:
> 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?
>

Unless you want to maintain it yourself indefinitely, you don't. You could write
an eventbroker module that loads the configuration by creating all the hosts
and services you need though. You'll want the NEBCALLBACK_PROGRAM_STATUS events,
and the NEBTYPE_PROCESS_START type.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d




More information about the Developers mailing list