Using contacts and contact_groups on same service definition
Andreas Ericsson
ae at op5.se
Thu Aug 25 13:27:27 CEST 2011
On 08/25/2011 01:03 PM, ramesh chaitanya wrote:
> 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?
>
In 2.6 it's not allowed. Upgrade to 3.2.x or 3.3.1 if you want
that feature.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
------------------------------------------------------------------------------
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
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