Using contacts and contact_groups on same service definition
ramesh chaitanya
archaitanya25 at yahoo.co.in
Thu Aug 25 13:03:06 CEST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110825/a50bda96/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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
More information about the Users
mailing list