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.
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)
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:
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))