Changing status of host/service via NEB module


Hi all,

I have a problem with false notification from monitoring system.I would like to write module for NEB which will store how much time notification appear and if it be more than a number not send notification and change status for service and host.

Flapping option not help in this situation.

I wrote module which change status for host and service but nagios are sending notification yet.

Where I can find documentation how event are working in nagios.

Thanks for any help.