Thanks for suggestions.
It doesn't look like that I made any mistake in contact definitions.
But I did some experiments and I see that it has something to do with escalations.
I've forgotten to mention that second message is escalated to mobile phone (separate contact which is not in any of groups).
So it is like this
- Custom message from handler
- Standard message when service goes to hard state + escalated message to mobile
- Standard message which shouldn't be there ,20 seconds after message nr 2
When I turn off escalation I get only
1 Custom message from handler
2. Standard message when service goes to hard state ,
which is fine
So, escalation does something weird. It is defined like this :
first_notification 2 (because number one is the custom one, right? )
contacts Gregory }
And Gregory conntact is :
And pager-contact is standard template with service_notification_commands = notify-service-by-pager ,where n-s-by-pager is just a shorter,mobile
version of n-s-by-email .
Does it give you any thoughts ?