10
Feb/10
0

Minify event_broker_options for Nagios Business Process AddOns

The Nagios Business Process AddOns use the NDOUtils and the NDO database as datasource. So you need to add the NDOUtils NEB module to your Nagios core.
Leaving the NDO configuration in the nagios.cfg and ndomod.cfg with the default values may lead into needless performance problems.

You can really optimize the information which are forwarded from Nagios to the NDO database using the event_broker_options in your nagios.cfg and data_processing_options in the ndomod.cfg.

For more details take a look at the description of the event_broker_options parameter.

nagios.cfg: event_broker_options

To minify the data when using the Nagios Business Process AddOns set the event_broker_options value to 36865. This value below is only valid for the Nagios side of the NEB API (Means the option event_broker_options in nagios.cfg). The option is calculated as follows:

  1     (BROKER_PROGRAM_STATE)
+ 4096  (BROKER_STATUS_DATA)
+ 32768 (BROKER_RETENTION_DATA)
-------
= 36865

Be aware: Changing that value will affect ALL your connected NEB modules. This may result in problems when using more than one NEB module.

ndomod.cfg: data_processing_options

The Nagios Business Process AddOns needs some more information, like the object configuration (hosts, services, groups, contacts, …). This behavior can not be controlled in the nagios.cfg but only in the ndomod.cfg.

The correct value for the option data_processing_options in ndomod.cfg is calculated as follows:

  1        (NDOMOD_PROCESS_PROCESS_DATA)
+ 4096     (NDOMOD_PROCESS_HOST_STATUS_DATA)
+ 8192     (NDOMOD_PROCESS_SERVICE_STATUS_DATA)
+ 262144   (NDOMOD_PROCESS_OBJECT_CONFIG_DATA)
+ 2097152  (NDOMOD_PROCESS_RETENTION_DATA)
---------
= 2371585
Filed under: Nagios
Comments (0) Trackbacks (0)

No comments yet.

No trackbacks yet.