Update NagiosXi to 2011R3.1
Re: Update NagiosXi to 2011R3.1
The result of the command 'service ndo2db status is': ndo2db (pid3514) is running
Now also i get another error when i add or change anything. Please find attched a snapshot:
After making the import command in Admin.Core Config > Tools i get this:
Warning: Duplicate definition found for timeperiod 'xi_timeperiod_24x7' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 142)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 143.
Error processing object config files!
Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/check_mk_templates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/check_mk_objects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Warning: Duplicate definition found for timeperiod 'xi_timeperiod_24x7' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 142)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 143.
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.
Now also i get another error when i add or change anything. Please find attched a snapshot:
After making the import command in Admin.Core Config > Tools i get this:
Warning: Duplicate definition found for timeperiod 'xi_timeperiod_24x7' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 142)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 143.
Error processing object config files!
Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/check_mk_templates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/check_mk_objects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Warning: Duplicate definition found for timeperiod 'xi_timeperiod_24x7' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 142)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 143.
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.
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Update NagiosXi to 2011R3.1
This looks like you imported the file /usr/local/nagios/etc/static/xiobjects.cfg which can cause a bunch of headaches.
try running
Then Go to
Configure -> CCM -> Tools -> Write Config Files
Click the top 3 items, if there are no errors click the restart option, if you get new errors about Duplicate definition do the following then repete the top 3 items in Configure -> CCM -> Tools -> Write Config Files
try running
Code: Select all
rm -f /usr/local/nagios/etc/static/xiobjects.cfgConfigure -> CCM -> Tools -> Write Config Files
Click the top 3 items, if there are no errors click the restart option, if you get new errors about Duplicate definition do the following then repete the top 3 items in Configure -> CCM -> Tools -> Write Config Files
Code: Select all
rm -f /usr/local/nagios/etc/static/xitemplates.cfgRe: Update NagiosXi to 2011R3.1
After executing the things you told me i got the following error:
Error: Template '' specified in contact definition could not be not found (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 98)
Error processing object config files!
Strange i did not touch the contacts????
And always when i try to configure something the files i deleted before in /usr/local/nagios/etc/static (xiobjects.cfg, xitemplates.cfg, xitest.cfg) are rewritten in the same directory again.
Error: Template '' specified in contact definition could not be not found (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 98)
Error processing object config files!
Strange i did not touch the contacts????
And always when i try to configure something the files i deleted before in /usr/local/nagios/etc/static (xiobjects.cfg, xitemplates.cfg, xitest.cfg) are rewritten in the same directory again.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Update NagiosXi to 2011R3.1
1) Don't try to configure more items until we get this resolved. The system is designed to roll back to the last known good state which was prior to the import.
2) Let's edit /usr/local/nagios/etc/static/xiobjects.cfg and delete the following out of that file
3) Configure -> CCM -> Tools -> Write Config Files
Click the top 3 items, if there are no errors click the restart option, if you get new errors about Duplicate definition do the following then repete the top 3 items in Configure -> CCM -> Tools -> Write Config Files
ONLY ONCE There are no Errors, click the 4th button. If there are errors we need to fix them and then repeat step 3).
4) Once there are no errors click the 4th Go button, then wait a couple minutes.
5) Go to Configure -> CCM -> Apply Configuration -> Apply Configuration
2) Let's edit /usr/local/nagios/etc/static/xiobjects.cfg and delete the following out of that file
Code: Select all
####################################################
# TIMEPERIODS
####################################################
define timeperiod{
timeperiod_name xi_timeperiod_24x7
alias 24x7
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
}
define timeperiod{
timeperiod_name xi_timeperiod_none
alias None
}Click the top 3 items, if there are no errors click the restart option, if you get new errors about Duplicate definition do the following then repete the top 3 items in Configure -> CCM -> Tools -> Write Config Files
ONLY ONCE There are no Errors, click the 4th button. If there are errors we need to fix them and then repeat step 3).
4) Once there are no errors click the 4th Go button, then wait a couple minutes.
5) Go to Configure -> CCM -> Apply Configuration -> Apply Configuration
Re: Update NagiosXi to 2011R3.1
Sorry, that i can't give you a good news, but is all the same.
After delete the part shown in your message in the xiobjects.cfg i get the same error after executing the 3 first in Write Config Files, only this time has changed the Line Number from 98 to 105.
Error: Template '' specified in contact definition could not be not found (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 105)
Error processing object config files!
After delete the part shown in your message in the xiobjects.cfg i get the same error after executing the 3 first in Write Config Files, only this time has changed the Line Number from 98 to 105.
Error: Template '' specified in contact definition could not be not found (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 105)
Error processing object config files!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Update NagiosXi to 2011R3.1
you will need to look at /usr/local/nagios/etc/contacts.cfg to see what is on line 105
Re: Update NagiosXi to 2011R3.1
On Line 105 is starting the Config of User Nagiosadmin. I will attach both troublemaking files: timeperiods.cfg and contacts.cfg
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Update NagiosXi to 2011R3.1
Ok, somehow all of your contact have a defined a blank template (not sure how this happened, maybe deleted a dependent template)
Go to Configure -> CCM -> Contacts
Edit each contact on the misc settings tab under "Additional templates" click the delete icon and then click save.
Once all are done try to go through the write config process outlined earlier
Go to Configure -> CCM -> Contacts
Edit each contact on the misc settings tab under "Additional templates" click the delete icon and then click save.
Once all are done try to go through the write config process outlined earlier
Re: Update NagiosXi to 2011R3.1
Thank you! Thew config is running without error and i can update the Config.
But still there is the Error that i can not see changes made in the XI GUI. In another GUI i can see the changes.
Also all hosts are ' Out of Notification Period' and in nagios.cfg the notification ist enabled.
In Monitoring Process in Process Settings 'External Commands' is in red , but in nagios.cfg it is also enabled.
The Performance Data in the graphics is stopped also together with Service and Hostcheck.
What's going on here....
I really regret to have updated to 2011R3.1...
But still there is the Error that i can not see changes made in the XI GUI. In another GUI i can see the changes.
Also all hosts are ' Out of Notification Period' and in nagios.cfg the notification ist enabled.
In Monitoring Process in Process Settings 'External Commands' is in red , but in nagios.cfg it is also enabled.
The Performance Data in the graphics is stopped also together with Service and Hostcheck.
What's going on here....
I really regret to have updated to 2011R3.1...
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Update NagiosXi to 2011R3.1
Is crond running on the host?
Also, how much disk space does the server have
Code: Select all
service crond statusCode: Select all
df -h