Page 1 of 1

Stop Notification form pnp4nagios

PostPosted: Mon May 11, 2020 2:34 pm
by sandeepatil
Below notification will write in nagios.log, if pnp4nagios plugin found host not reachable.

Need your help to stop this notification write in nagios.log

[1587275926] HOST NOTIFICATION: 12810;zltv8879.abc.com;DOWN;host_trap_command;(Host check did not exit properly)
[1587275926] Warning: Check of host 'zltv9304.abc.com' did not exit properly!
[1587275926] HOST NOTIFICATION: 20823;zltv9304.abc.com;DOWN;host_trap_command;(Host check did not exit properly)
[1587275926] HOST NOTIFICATION: 20823;zltv9304.abc.com;DOWN;host_trap_command;(Host check did not exit properly)
[1587275926] Warning: Check of host 'zltv9393.abc.com' did not exit properly!
[1587275926] HOST NOTIFICATION: 17965;zltv9393.abc.com;DOWN;host_trap_command;(Host check did not exit properly)
[1587275926] HOST NOTIFICATION: 17965;zltv9393.abc.com;DOWN;host_trap_command;(Host check did not exit properly)
[1587275926] Warning: Check of host 'zltv9579.abc.com' did not exit properly!
[1587275926] HOST NOTIFICATION: 14975;zltv9579.abc.com;DOWN;host_trap_command;(Host check did not exit properly)
[1587275926] HOST NOTIFICATION: 14975;zltv9579.abc.com;DOWN;host_trap_command;(Host check did not exit properly)
[1587275926] HOST NOTIFICATION: 9147;zltv9579.abc.com;DOWN;host_trap_command;(Host check did not exit properly)

Re: Stop Notification form pnp4nagios

PostPosted: Tue May 12, 2020 4:46 pm
by ssax
The only way to do that would be for you to remove the 12810 and 20823 contacts from the hosts/services so they don't try to send.

Notifications are logged as they are supposed to be, there's no way to turn them off without likely modifying the source code (not recommended) as it's meant to log those.

You're essentially saying you don't want it to log notifications for some contacts, the functionality to do that doesn't exist, you can create a feature request for them to add that here but it's not currently possible to disable that logging:

Code: Select all
https://github.com/NagiosEnterprises/nagioscore/issues


Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.

Re: Stop Notification form pnp4nagios

PostPosted: Wed May 13, 2020 8:19 am
by sandeepatil
@ssax

Thanks for sharing details.

Can not remove contacts,we are using Hostgroup and Servicegroup feature.

Because of 1k hosts and 72k+ services, we trying to avoid this notifications.

You have any another way to stop or redirect this notifications.

Re: Stop Notification form pnp4nagios

PostPosted: Mon May 18, 2020 12:35 am
by sandeepatil
More information below 2 errors are flooded with alarms.

(Return code of 127 is out of bounds - plugin may be missing : (No output on stdout) stderr: /opt/app/nagios/libexec/check_dummy: error while loading shared libraries: libpthread.so.0: cannot map zero-fill pages: Cannot allocate memory))


and

(Host check did not exit properly)

Re: Stop Notification form pnp4nagios

PostPosted: Fri May 29, 2020 11:52 am
by sandeepatil
Waiting for any suggestion and solution.