Page 2 of 2

Re: Regarding the notifications

Posted: Thu Jul 31, 2014 6:18 am
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
}

Re: Regarding the notifications

Posted: Fri Aug 01, 2014 11:26 am
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.