Page 1 of 3

Setting renewal failure

Posted: Fri May 18, 2018 12:21 am
by bizreach
Restoration is being tried by the data restored from a backup.

An error after restoration could be crushed mostly, but there is following problem.
An error picture is attached after this, but setting can't be renewed by following procedure.
"Configure "- "Advanced Configuration "- "Apply Configuration"

Confirmation, please.

Re: Setting renewal failure

Posted: Fri May 18, 2018 8:56 am
by scottwilkerson
Can you go through this document
https://support.nagios.com/kb/article.php?id=34

And post output of steps back in your response

thanks

Re: Setting renewal failure

Posted: Thu May 31, 2018 2:17 am
by bizreach
Since I mentioned earlier, I will resend it because it is not displayed.
I ran the file you contacted
The following error was output.

Thank you for your review.
----------------------------------------
su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
----------------------------------------

Re: Setting renewal failure

Posted: Thu May 31, 2018 7:18 am
by scottwilkerson
bizreach wrote:Since I mentioned earlier, I will resend it because it is not displayed.
I ran the file you contacted
The following error was output.

Thank you for your review.
----------------------------------------
su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
----------------------------------------
I don't understand, what what the output if that command?

Re: Setting renewal failure

Posted: Fri Jun 01, 2018 3:23 am
by bizreach
scottwilkerson wrote:Can you go through this document
https://support.nagios.com/kb/article.php?id=34

And post output of steps back in your response

thanks
This means that the command indicated in this link was executed.
After that, the result like the attached log is output.

Re: Setting renewal failure

Posted: Fri Jun 01, 2018 6:53 am
by scottwilkerson
There is no attached log.

You didn't attach the file.

Re: Setting renewal failure

Posted: Sun Jun 03, 2018 8:37 pm
by bizreach
Is this.

Re: Setting renewal failure

Posted: Mon Jun 04, 2018 10:10 am
by scottwilkerson
there is a unknown host listed in a config.
Go to

Configure -> CCM -> Tools -> Config File Management
click Delete Files

Then Apply Configuration again

Re: Setting renewal failure

Posted: Tue Jun 05, 2018 3:22 am
by bizreach
Thank you for reply.
The following alert will be issued when executed by verify Files.

---Delete Files
Successfully deleted all Host / Service Config Files

---write Configs
Write host configurations ...
Host configuration files successfully written!

〜Almost〜
Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!

---verify Files

Error: Could not find any host matching 'BIZ29N-EE_F29-N1' (config file '/usr/local/nagios/etc/services/BIZ29N-EE_F29-N1.cfg', starting on line 16)
Error: Failed to expand host list 'BIZ29N-EE_F29-N1' for service 'Ping' (/usr/local/nagios/etc/services/BIZ29N-EE_F29-N1.cfg:16)

Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Could not find any host matching 'BIZ29N-EE_F29-N1' (config file '/usr/local/nagios/etc/services/BIZ29N-EE_F29-N1.cfg', starting on line 16)
Error: Failed to expand host list 'BIZ29N-EE_F29-N1' for service 'Ping' (/usr/local/nagios/etc/services/BIZ29N-EE_F29-N1.cfg:16)
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.


Please Help.

Re: Setting renewal failure

Posted: Tue Jun 05, 2018 8:48 am
by scottwilkerson
Actually looking at your logs it's like there was a file imported for this host/services

/usr/local/nagios/etc/import/BIZ29N-EE_F29-N1.cfg

Do you intend for this host to exist? If not you should remove the services from Configure, -> CCM -> Services ->in the template dropdown choose BIZ29N-EE_F29-N1

Remove services.

Also, you should remove this import config if it still exists

Code: Select all

rm -f /usr/local/nagios/etc/import/BIZ29N-EE_F29-N1.cfg
then try the procedure I mentioned above