Stop Notification form pnp4nagios

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Stop Notification form pnp4nagios

Postby sandeepatil » Mon May 11, 2020 2:34 pm

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

Re: Stop Notification form pnp4nagios

Postby ssax » Tue May 12, 2020 4:46 pm

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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 5450
Joined: Wed Feb 11, 2015 12:54 pm

Re: Stop Notification form pnp4nagios

Postby sandeepatil » Wed May 13, 2020 8:19 am

@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: 209
Joined: Tue Dec 27, 2016 3:12 am

Re: Stop Notification form pnp4nagios

Postby sandeepatil » Mon May 18, 2020 12:35 am

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: 209
Joined: Tue Dec 27, 2016 3:12 am

Re: Stop Notification form pnp4nagios

Postby sandeepatil » Fri May 29, 2020 11:52 am

Waiting for any suggestion and solution.
sandeepatil
 
Posts: 209
Joined: Tue Dec 27, 2016 3:12 am


Return to Community Support

Who is online

Users browsing this forum: No registered users and 37 guests