Hi,
We have nagios 2.6 running and have our environment monitored by 
nagios. Recently I had a scenario where I had to add a new contact to get 
notified on one of the services.I added the contact to the contacts.cfg and 
when trying to add the contact to the service definition as below - 
define service{

       
use                            
generic-public-service

       
service_description            
HTTPS-Shard6-testEvent

       
servicegroups                  
Live HTTP Sites

       
host_name                       XXXXXXXXXXXX
        check_command                  
check_httpS!"/tracking/api/core/testEvent?shardId=6"!"resultCode\":0,"

        
max_check_attempts             
10

       
contacts                        test

       
contact_groups                 
sys,noc
        notification_interval          
30
It errors out saying Error: Invalid service object
directive 'contacts'.

Error: Could not add object property in file '/etc/nagios/cfg/public/svc.cfg' 
Does having contacts and contact_groups on the same service definition not 
allowed?

Thanks,
Ramesh Ayyagari
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to