Errors in config file for contactgroups.cfg

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
luniversity
Posts: 56
Joined: Mon Dec 10, 2012 9:39 am

Errors in config file for contactgroups.cfg

Post 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
Mike Westmoreland
Lamar University
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Errors in config file for contactgroups.cfg

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
luniversity
Posts: 56
Joined: Mon Dec 10, 2012 9:39 am

Re: Errors in config file for contactgroups.cfg

Post 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.
Mike Westmoreland
Lamar University
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Errors in config file for contactgroups.cfg

Post 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!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked