[Nagios-devel] tiny patch for nagios head
Posted: Fri Nov 19, 2004 11:33 am
I found out that NEB modules get initialized before nagios parses its
config objects. That doesn't work so well for me, so I added these 4 lines
to nagios.c. The goal is to send NEB modules notification after object
initialization is done. This might not be the best way to do it, but I'd
really like some way to have my NEB module be able to look at
configuration objects before steady state begins.
616a617,621
> #ifdef USE_EVENT_BROKER
> /* send program data to broker */
> broker_program_state(NEBTYPE_PROCESS_START,NEBFLAG_PROCESS_INITIATED,NEBATTR_NONE,NULL);
> #endif
>
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
config objects. That doesn't work so well for me, so I added these 4 lines
to nagios.c. The goal is to send NEB modules notification after object
initialization is done. This might not be the best way to do it, but I'd
really like some way to have my NEB module be able to look at
configuration objects before steady state begins.
616a617,621
> #ifdef USE_EVENT_BROKER
> /* send program data to broker */
> broker_program_state(NEBTYPE_PROCESS_START,NEBFLAG_PROCESS_INITIATED,NEBATTR_NONE,NULL);
> #endif
>
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]