Page 1 of 1

Facing problem adding victirops contact in contacts.cfg

Posted: Fri Sep 05, 2014 12:54 am
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.

Re: Facing problem adding victirops contact in contacts.cfg

Posted: Fri Sep 05, 2014 10:01 am
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.