Facing problem adding victirops contact in contacts.cfg

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
srk
Posts: 1
Joined: Fri Sep 05, 2014 12:36 am

Facing problem adding victirops contact in contacts.cfg

Post by srk »

Integrating victorops into nagios.

Updated nagios.cfg file to use victorops.cfg
cfg_file=/etc/nagios/victorops.cfg

VictorOps_Contact is already defined in /etc/nagios/victorops.cfg

if i add contact entry for VictorOps_Contact in contcats.cfg, am getting the below error

Warning: Duplicate definition found for contact 'VictorOps_Contact' (config file '/etc/nagios/objects/contacts/contacts.cfg', starting on line 37)
Error: Could not add object property in file '/etc/nagios/objects/contacts/contacts.cfg' on line 38.

If i remove contacts entry and just add VictorOps_Contact in contactgroup's, am getting below error.

Error: Could not find any contact matching 'VictorOps_Contact' (config file '/etc/nagios/objects/contacts/contacts.cfg', starting on line 54)
Error: Could not expand member contacts specified in contactgroup (config file '/etc/nagios/objects/contacts/contacts.cfg', starting on line 54)

Any help is appreciated.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Facing problem adding victirops contact in contacts.cfg

Post by tmcdonald »

Please post/PM your contacts.cfg, victorops.cfg, nagios.cfg, contactgroups.cfg and at least one service config file that references that contact or group, please.
Former Nagios employee
Locked