first_notification_delayand passive service


#1

hello
i use nagios 3 ( Centos rpm nagios-3.2.1-3.el5.rf.
I have configured a passive service (TRAP) and I would the first warning alarm came with delay of several minutes.
But it does not work, the alarm is sent immediately.
my configuration is wrong or delay for passive services is not supported ?

below my configuration:

define service { host_name server_name max_check_attempts 1 normal_check_interval 1 retry_interval 1 active_checks_enabled 0 check_period 24x7 parallelize_check 1 process_perf_data 1 notification_interval 120 notification_period 24x7 notifications_enabled 1 action_url /nagios/pnp4nagios/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$ service_description TRAP is_volatile 1 check_command check-host-alive passive_checks_enabled 1 display_name first_notification_delay 10 contact_groups linux-admins }

Thanks to all.
/roby


#2

A trap is usually sent only once on a status change, so it doesn’t make much sense to have a delayed alert.
If you want an alert only if the situation persists after x minutes you’d better switch to monitoring the porperty you need via standard SNMP.


#3

hi luca,
my ups often sends alarms that are solved quickly (within 5 minutes). for me make sense to delay the notification.

any idea?
/roby


#4

if you are using traps there’s no way to do it. If you can monitor that same object via check_snmp then you can delay the notification by having the service check retry. the check itself x times…

Luca


#5

hi
any idea to delay first notification of passive check?