<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<div><br><font class="Apple-style-span" size="2">We have nagios 2.6 running and have our environment monitored by nagios. </font><div style="font-size: 10pt; ">Recently I had a scenario where I had to add a new contact to get notified on one of the services.</div><div style="font-size: 10pt; ">I added the contact to the contacts.cfg and when trying to add the contact to the service definition as below - </div><div style="font-size: 10pt; "><br></div><p class="MsoNormal" style="font-size: 10pt; margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; "><span style="font-size:9.0pt;font-family:"MS Shell Dlg 2","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">define service{<br>
       
use                            
generic-public-service<br>
       
service_description            
HTTPS-Shard6-testEvent<br>
       
servicegroups                  
Live HTTP Sites<br>
       
host_name                       XXXXXXXXXXXX<br>        check_command                  
check_httpS!"/tracking/api/core/testEvent?shardId=6"!"resultCode\":0,"<br>
        
max_check_attempts             
10<br>
       
contacts                        test<br>
       
contact_groups                 
sys,noc<br><o:p></o:p></span></p><div style="font-size: 10pt; "><span class="Apple-style-span" style="font-family: 'MS Shell Dlg 2', sans-serif; font-size: 12px; ">        notification_interval          
30</span></div><div style="font-size: 10pt; "><br></div><div style="font-size: 10pt; ">It errors out saying </div><div style="font-size: 10pt; "><span style="font-size:9.0pt;font-family:"MS Shell Dlg 2","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black;mso-ansi-language:EN-US;
mso-fareast-language:EN-US;mso-bidi-language:AR-SA">Error: Invalid service object
directive 'contacts'.<br></span><span style="font-size:9.0pt;font-family:"MS Shell Dlg 2","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black;mso-ansi-language:EN-US;
mso-fareast-language:EN-US;mso-bidi-language:AR-SA">
Error: Could not add object property in file '/etc/nagios/cfg/public/svc.cfg' </span></div><div><font class="Apple-style-span" face="'MS Shell Dlg 2', sans-serif"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" face="'MS Shell Dlg 2', sans-serif"><span class="Apple-style-span" style="font-size: 12px;">Does having contacts and contact_groups on the same service definition not allowed?<br></span></font></div><div><font class="Apple-style-span" face="'MS Shell Dlg 2', sans-serif"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" face="'MS Shell Dlg 2', sans-serif"><span class="Apple-style-span" style="font-size: 12px;">Thanks,<br></span></font></div><div>Ramesh Ayyagari<font class="Apple-style-span" color="#4040ff" face="'comic sans ms'" style="font-size: 10pt; "><br></font></div></div></td></tr></table>