Stop Notification form pnp4nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Stop Notification form pnp4nagios

Post 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)
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Stop Notification form pnp4nagios

Post 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.
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Stop Notification form pnp4nagios

Post 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.
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Stop Notification form pnp4nagios

Post 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)
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Stop Notification form pnp4nagios

Post by sandeepatil »

Waiting for any suggestion and solution.
Locked