Page 1 of 1

2 escalations for the same host

Posted: Fri Apr 25, 2014 3:44 pm
by vvz
Hi!
I have a host definition and 4 contacts - vassiliy-phone, mike-phone, vasiliy-backup-phone, mike-backup-phone
if today vassiliy-phone contact is on shift, then mike-backup-phone - is oncall, and vise versa - in timeperiods.
I have 2 contactgroups: admins-phone ( members: vassiliy-phone, mike-phone)
admins-onreserve-phone(members: vassiliy-backup-phone,mike-backup-phone)

I have also another 4 contacts for emails, organized exactly the same way

Is it allowed to create 2 escalations for the same host - one for emails notifications, another for phone calls - the difference are contacts and number of notifications issued?
my boss wants to have 3 phone calls and only one email per host for every escalation step.
Thank you

Re: 2 escalations for the same host

Posted: Mon Apr 28, 2014 1:10 pm
by scottwilkerson
Yes you can have multiple escalations for the same host, but there are some caveats if there becomes an overlap situation (which can be common)

Full details are laid out here
http://nagios.sourceforge.net/docs/3_0/escalations.html

Re: 2 escalations for the same host

Posted: Tue Apr 29, 2014 4:44 pm
by vvz
thank you

Re: 2 escalations for the same host

Posted: Tue Apr 29, 2014 4:50 pm
by tmcdonald
Let us know how this works out for you

Re: 2 escalations for the same host

Posted: Wed Apr 30, 2014 5:05 pm
by vvz
Something wrong with my browser, you may already have these questions - if so, just drop this post

1) I have a few questions: if I have 2 escalations for the same host - first for sending emails, second - making phone calls ( different contacts for each), notification_interval - 3 for 1-st and -5 for second one. The smallest one (3) will be apllied for both, right?

2) if first escalation stops after notification #10, and second one after notification #20, general notification interval (before escalations) will be apllied, right? for the first only?

3) if I have contact belongs to 3 contactgroups and all of them active at the notification , how many emails will it get - 1 or 3?

4) if I disable macros in main config (enable_environment_macros=0), absolutely all macros will be disabled? I'm not able to use $CONTACTMAIL$ macros in commands.cfg?

Sorry for asking too many questions, but your help will save a great amount of time for me.

I should say Nagios is a great tool and I have a lot of fun to work with. Great job guys!!

Thank you

Re: 2 escalations for the same host

Posted: Thu May 01, 2014 10:52 am
by sreinhardt
1) Only for overlapping escalation periods, will the smaller interval be used. Otherwise if they are separate such as notifications 1-3 then 4-9 they will not overlap and will use their own settings.
2) Yes until an escalation is met and applied, general intervals will apply
3) Honestly, I am not sure. I would hope only one, but that would require processing all contacts from groups, then sorting for unique contacts to send mail to. I am not sure if that is actually what happens or not.
4) No, that will only disable macros from being exported to the environment, so that nagios does not need to pass all important information via command macros. All standard macros that would be available via commands and such will still apply normally as those are expanded and processed within core and cannot be disabled(to my knowledge).

Re: 2 escalations for the same host

Posted: Thu May 01, 2014 11:34 am
by vvz
thank you so much, you saved tonns of my time