Regarding the notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
kgopiramesh

Re: Regarding the notifications

Post by kgopiramesh »

Hi Abritst,

we are having this problem again. please find the below for the configuration, we are not recieving the email notifications for below mentioned trap services.

define service {
host_name thostname
service_description SNMP Traps
use xiwizard_snmptrap_service
max_check_attempts 1
check_interval 1
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 1440
notification_period xi_timeperiod_24x7
contacts nagiosadmin
icon_image snmptrap.png
_xiwizard snmp_trap
register 1


define contact {
contact_name nagiosadmin
alias Nagios Administrator
host_notification_period nagiosadmin_notification_times
service_notification_period nagiosadmin_notification_times
host_notification_options d,u,r,s,
service_notification_options w,u,c,r,f,s,
email <emailid>
host_notifications_enabled 1
service_notifications_enabled 1
use xi_contact_generic


define timeperiod {
timeperiod_name nagiosadmin_notification_times
alias Notification Times for nagiosadmin
tuesday 00:00-24:00
monday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
friday 00:00-24:00
}
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Regarding the notifications

Post by sreinhardt »

Is the trap service changing state, or always staying in one state when traps come in? If it never changes state, you will need to set isvolatile = 1 in your service definition so that all traps(check results) for this service are counted as a state change and you can begin getting notified for every one instead of just the initial one that changed it from OK to critical.

Edit: Is this actually the opposite of the original post, I thought you were getting too many notifications initially.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked