<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText>Hi,<o:p></o:p></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>There seems to be some issues with Service Escalations and wildcards.<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>If you use wildcards on hosts every host has to have a service associated with it otherwise the configuration does not validate.<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>Example<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>define serviceescalation{<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> host_name .*<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> service_description .*<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> first_notification 1<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> last_notification 99<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> notification_interval 60<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> contact_groups admins<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> escalation_period 24x7<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> escalation_options w,u,c,r<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> }<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>Causes <o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>Error: Could not find a service matching host name 'pix' and description '.*'<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>I got round that by creating a dummy service for items like firewalls and routers which have no service as below.<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>define service{<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> use generic-service<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> # Hostname of remote system<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> host_name pix<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> service_description dummy<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> is_volatile 0<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> check_period 24x7<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> max_check_attempts 1<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> normal_check_interval 5<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> retry_check_interval 1<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> check_command check-dummy<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>}<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>Now I am trying to use wildcards on the service names within the escalations, the validation fails on any host that does not have a service that matches the wildcard.<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>define serviceescalation{<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> host_name .*<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> service_description .*Bandwidth.*<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> first_notification 2<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> last_notification 2<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> notification_interval 60<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> contact_groups support<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> escalation_period 24x7<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> escalation_options w,u,c,r<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> }<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>Causes<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>Error: Could not find a service matching host name 'pix' and description '.*Bandwidth.*<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>Why when a wildcard is in use should every host have to have a service and every host have to have a service matching the wildcard? It makes no sense (to me at least).<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'> <o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>Is this a bug or is it designed to work this way? <o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>Is there any way to turn off these checks as they appear to me at least incorrect and pointless?<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'>Thanks<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>Duncan<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>