Page 1 of 1

Errors in config file for contactgroups.cfg

Posted: Tue Jul 29, 2014 1:33 pm
by luniversity
I recently tried to add a new contact to an existing group called DBA. But when I hit "Apply Configuration" I get a "Configuration verification failed" error. The snapshot of the configuration shows theses errors at the end of the file:

Code: Select all

Error: Could not find any contact matching [REDACTED](config file '/usr/local/nagios/etc/contactgroups.cfg', starting on line 50)
Error: Could not expand member contacts specified in contactgroup (config file '/usr/local/nagios/etc/contactgroups.cfg', starting on line 50)
   Error processing object config files!
I looked at the config file '/usr/local/nagios/etc/contactgroups.cfg' and line 50 shows this:

Code: Select all

     50 define contactgroup {
     51         contactgroup_name                       DBA
     52         alias                                   LU DBAs
     53         members                                 nelsong,ppilli1,swilkins
     54         }
I'll post this issue on a separate thread and try again. I'm no expert on Nagios config files but this group appears to have the same syntax as the other contactgroups in the file. Any ideas on how I can correct this would be most appreciated.

Mod Note: Removed the weird hex string since it was causing display issues on our dashboards

Re: Errors in config file for contactgroups.cfg

Posted: Tue Jul 29, 2014 3:10 pm
by lmiltchev
Are all these (nelsong,ppilli1,swilkins) valid contacts? I would be probably easier if you sent the profile.zip to [email protected] for review.

Admin->System Profile->Download Profile

Re: Errors in config file for contactgroups.cfg

Posted: Tue Jul 29, 2014 3:23 pm
by luniversity
I deleted the contact group and applied the config changes and it processed without errors. I then recreated the contact group and re-applied the config. Looks good, now I just have to add that group back to the hosts and services.

Re: Errors in config file for contactgroups.cfg

Posted: Tue Jul 29, 2014 3:29 pm
by sreinhardt
That would do it, it's entirely possible something broke between the DB and the flat files, or was simply not getting exported correctly. Glad it was as easy as removal and readding again though!