PDA

View Full Version : Ndo data_processing_options and Nagvis


naparuba
09-30-2008, 10:24 AM
For those who use ndo only for nagvis (1.2.2) (centreon 1.4 or centreon v2 without ndo's centreon use), you can optimize the information send by ndo into the database. :p

Nagvis only use theses mysql tables :
*program status
*instances
*objects
*hoststatus
*servicestatus
*hotsgroups
*servicesgroups

The ndo configuration basically send everything into mysql, even if it's not use for the moment (libe hostschecks and serviceschecks).

You can select which information you want to send by the ndomod.cfg file. It's the data_processing_options option you have to change. If you look into ndomod.h you can see NDOMOD_PROCESS_*_DATA definition. It's just binary flags for select what you want. The standard value is -1, it mean all binary flag to 1 (thanks two's-complement system ;))


So:

NDOMOD_PROCESS_PROGRAM_STATUS_DATA 2048
NDOMOD_PROCESS_HOST_STATUS_DATA 4096
NDOMOD_PROCESS_SERVICE_STATUS_DATA 8192
NDOMOD_PROCESS_OBJECT_CONFIG_DATA 262144
(the program status, instances and *groups are add any way).
Total = 2048 + 4096 + 8192 + 262144 = 276480

So you have to put:
[code]data_processing_options=276480[code]
into ndomod.h

And in nagios.cfg:
[code]event_broker_options=276480[code] (I don't know if it's really use full).

You restart ndo2db and nagios, and it's ok

The tables nagios_servicechecks and nagios_hostchecks will be no more a problem. :mrgreen:

:arrow:But remember : use this configuration in the case of ndo ONLY for nagvis, not another tools like centreonV2 with ndo usage.