copied old nagios configuration files from old nagios server 3.3.1 to new nagios core 4.0.1 and restarted nagios got some errors.
Running configuration check...
Nagios Core 4.0.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-14-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Invalid notification option 'options' in service definition.
Error: Could not add object property in file '/usr/local/nagios/etc/objects/svc_nrpe.cfg' on line 69.
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.
cat objects/svc_nrpe
svc_nrpe.cfg svc_nrpe-Groups.cfg svc_nrpe-Storage.cfg
Thanks,
isub
Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1
Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1
Please post the entire file /usr/local/nagios/etc/objects/svc_nrpe.cfg for us to look at.
Former Nagios Employee
Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1
Attached /usr/local/etc/nagios/objects/nrpe.cfg
- Attachments
-
nrpe.cfg.txt- svc_nrpe.cfg
- (11.25 KiB) Downloaded 173 times
Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1
The file that's erroring out is actually /usr/local/nagios/etc/objects/svc_nrpe.cfg - can you attach this one?isub wrote:Attached /usr/local/etc/nagios/objects/nrpe.cfg
Former Nagios Employee
Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1
Sorry , This is the config file got it from /usr/local/nagios/etc/objects/svc_nrpe.cfg location from my old EZnag nagios 3.3.1 server. Thanks.
Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1
You will need to edit that file and add the missing settings for all of the notification_options that are blank or delete the option if you do not need it and see if that resolves the issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1
Thank you. I will check it.
Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1
Let us know if you have any other questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1
edited /usr/local/nagios/etc/objects/svc_nrpe.cfg and fixed notification errors, but new errors on /usr/local/nagios/etc/objects/timeperiods.cfg
[root@xxxxx objects]# service nagios restart
Running configuration check...
Nagios Core 4.0.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-14-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for timeperiod '24x7' (config file '/usr/local/nagios/etc/objects/timeperiods.cfg', starting on line 27)
Error: Could not add object property in file '/usr/local/nagios/etc/objects/timeperiods.cfg' on line 28.
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.
[root@xxxxx objects]# service nagios restart
Running configuration check...
Nagios Core 4.0.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-14-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for timeperiod '24x7' (config file '/usr/local/nagios/etc/objects/timeperiods.cfg', starting on line 27)
Error: Could not add object property in file '/usr/local/nagios/etc/objects/timeperiods.cfg' on line 28.
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: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1
Everytime you get an error when restarting the Nagios daemon, you will have to edit that file and correct the error.
Take a look at '/usr/local/nagios/etc/objects/timeperiods.cfg' on line 28.
Take a look at '/usr/local/nagios/etc/objects/timeperiods.cfg' on line 28.
Be sure to check out our Knowledgebase for helpful articles and solutions!