Config file errors after upgrade to R2.6

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

Config file errors after upgrade to R2.6

Post 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.
Mike Westmoreland
Lamar University
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Config file errors after upgrade to R2.6

Post 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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
luniversity
Posts: 56
Joined: Mon Dec 10, 2012 9:39 am

Re: Config file errors after upgrade to R2.6

Post 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.
Mike Westmoreland
Lamar University
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Config file errors after upgrade to R2.6

Post by jolson »

Sounds good, I'll lock this thread up. Feel free to open further threads for any questions/issues you may have. Thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked