Page 4 of 7

Re: Update NagiosXi to 2011R3.1

Posted: Sun Jul 15, 2012 7:40 pm
by albibalu
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.

Re: Update NagiosXi to 2011R3.1

Posted: Mon Jul 16, 2012 1:10 pm
by scottwilkerson
This looks like you imported the file /usr/local/nagios/etc/static/xiobjects.cfg which can cause a bunch of headaches.

try running

Code: Select all

rm -f /usr/local/nagios/etc/static/xiobjects.cfg
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

Code: Select all

rm -f /usr/local/nagios/etc/static/xitemplates.cfg

Re: Update NagiosXi to 2011R3.1

Posted: Mon Jul 16, 2012 7:17 pm
by albibalu
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.

Re: Update NagiosXi to 2011R3.1

Posted: Tue Jul 17, 2012 10:38 am
by scottwilkerson
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

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
        }
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

Re: Update NagiosXi to 2011R3.1

Posted: Wed Jul 18, 2012 2:22 am
by albibalu
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!

Re: Update NagiosXi to 2011R3.1

Posted: Wed Jul 18, 2012 10:11 am
by scottwilkerson
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

Posted: Thu Jul 19, 2012 9:38 pm
by albibalu
On Line 105 is starting the Config of User Nagiosadmin. I will attach both troublemaking files: timeperiods.cfg and contacts.cfg

Re: Update NagiosXi to 2011R3.1

Posted: Fri Jul 20, 2012 1:53 pm
by scottwilkerson
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

Re: Update NagiosXi to 2011R3.1

Posted: Mon Jul 23, 2012 2:11 am
by albibalu
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...

Re: Update NagiosXi to 2011R3.1

Posted: Mon Jul 23, 2012 7:57 am
by scottwilkerson
Is crond running on the host?

Code: Select all

service crond status
Also, how much disk space does the server have

Code: Select all

df -h