Suppressing warning alerts only for specific time

Hello all,

I am looking for a solution in Nagios to generate all critical alerts 24x7 but warning alerts only for certain hours. Is it possible?
i-e
critical lerts = will be generated all the time.
warning alerts = will be suppressed for non-working hours and need to generate in working hours only.

If I change the timeperiods.cfg it effects both of them.

Thanks in advance.

Nadeem.

[quote=“Nadeem”]Hello all,

I am looking for a solution in Nagios to generate all critical alerts 24x7 but warning alerts only for certain hours. Is it possible?
i-e
critical lerts = will be generated all the time.
warning alerts = will be suppressed for non-working hours and need to generate in working hours only.

If I change the timeperiods.cfg it effects both of them.

Thanks in advance.

Nadeem.[/quote]

One workaround for small environments is make 2 different contacts. And configure those differently for warnings/criticals.

I suppose that would work?

Or is it possible to use escalations for this too?

define serviceescalation{
host_name host_name
hostgroup_name hostgroup_name
service_description service_description
contacts contacts
contact_groups contactgroup_name
first_notification #
last_notification #
notification_interval #
escalation_period timeperiod_name
escalation_options [w,u,c,r]
}

Thanks Judanssi

I was able to find the solution by making 2 different contacts and configuring those differently for warnings/criticals.