Page 1 of 1

Config file errors after upgrade to R2.6

Posted: Fri Apr 24, 2015 9:14 am
by luniversity
A couple of days ago I did a manual upgrade to move us from 2012R1.2 to 2014R2.6. This morning, for the first time since the upgrade, I went to change some parameters for a service check and received the following error:

Code: Select all


Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'Explorer' on host 'PDvid03.bmt.lamar.edu'
Error: Could not register service (config file '/usr/local/nagios/etc/services/PDvid03.bmt.lamar.edu.cfg', starting on line 50)
   Error processing object config files!


***> One or more problems was encountered while processing the config files...

     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  If you are upgrading from a previous
     version of Nagios, you should be aware that some variables/definitions
     may have been removed or modified in this version.  Make sure to read
     the HTML documentation regarding the config files, as well as the
     'Whats New' section to find out what has changed.
I went into the CCM, clicked on "Write Config Files" and then selected "Verify" which came back clean. But then I clicked on "Write" and received this error, which is very similar to the one above.

Code: Select all

Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'Explorer' on host 'PDvid03.bmt.lamar.edu' 
Error: Could not register service (config file '/usr/local/nagios/etc/services/PDvid03.bmt.lamar.edu.cfg', starting on line 50) 

Nagios Core 4.0.8 
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors 
Copyright (c) 1999-2009 Ethan Galstad 
Last Modified: 08-12-2014 
License: GPL 

Website: http://www.nagios.org 
Reading configuration data... 
Read main config file okay... 
WARNING: Extinfo objects are deprecated and will be removed in future versions 
WARNING: Extinfo objects are deprecated and will be removed in future versions 
WARNING: Extinfo objects are deprecated and will be removed in future versions 
WARNING: Extinfo objects are deprecated and will be removed in future versions 
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'Explorer' on host 'PDvid03.bmt.lamar.edu' 
Error: Could not register service (config file '/usr/local/nagios/etc/services/PDvid03.bmt.lamar.edu.cfg', starting on line 50) 
Error processing object config files! 


***> One or more problems was encountered while processing the config files... 

Check your configuration file(s) to ensure that they contain valid 
directives and data defintions. If you are upgrading from a previous 
version of Nagios, you should be aware that some variables/definitions 
may have been removed or modified in this version. Make sure to read 
the HTML documentation regarding the config files, as well as the 
'Whats New' section to find out what has changed. 
Because I was on such an old version I'm sure there are a great many changes that I may need to make but I'm not sure where to start looking. Any suggestions would be greatly appreciated.

Re: Config file errors after upgrade to R2.6

Posted: Fri Apr 24, 2015 10:03 am
by jolson
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'Explorer' on host 'PDvid03.bmt.lamar.edu'
We should take a look at this hosts configuration. Can you cat the relevant file from the CLI?

Code: Select all

cat /usr/local/nagios/etc/services/PDvid03.bmt.lamar.edu.cfg
Does the host appear in the CCM?

If so, please check the 'max_attempts, check_interval, retry_interval, or notification_interval' for invalid options - maybe one of them is blank or has an invalid character?

Failing that, please go to 'Write Config Files' and press 'Delete -> Write -> Verify' - return the output here.

Best,


Jesse

Re: Config file errors after upgrade to R2.6

Posted: Fri Apr 24, 2015 10:37 am
by luniversity
Okay, I think I've fixed my issue. Sorta. One of my sys admins added this system and service to Nagios using the wizard. That Explorer service isn't needed so I deleted it and now everything looks good. Not sure exactly what was up with that particular service but I can look into that another time. Thanks for your help. I'm good to go.

Re: Config file errors after upgrade to R2.6

Posted: Fri Apr 24, 2015 10:40 am
by jolson
Sounds good, I'll lock this thread up. Feel free to open further threads for any questions/issues you may have. Thanks!