Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
isub
Posts: 8
Joined: Tue Jun 07, 2016 1:39 pm

Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1

Post by isub »

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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1

Post by rkennedy »

Please post the entire file /usr/local/nagios/etc/objects/svc_nrpe.cfg for us to look at.
Former Nagios Employee
isub
Posts: 8
Joined: Tue Jun 07, 2016 1:39 pm

Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1

Post by isub »

Attached /usr/local/etc/nagios/objects/nrpe.cfg
Attachments
nrpe.cfg.txt
svc_nrpe.cfg
(11.25 KiB) Downloaded 172 times
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1

Post by rkennedy »

isub wrote:Attached /usr/local/etc/nagios/objects/nrpe.cfg
The file that's erroring out is actually /usr/local/nagios/etc/objects/svc_nrpe.cfg - can you attach this one?
Former Nagios Employee
isub
Posts: 8
Joined: Tue Jun 07, 2016 1:39 pm

Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1

Post by isub »

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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1

Post by tgriep »

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!
isub
Posts: 8
Joined: Tue Jun 07, 2016 1:39 pm

Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1

Post by isub »

Thank you. I will check it.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1

Post by tgriep »

Let us know if you have any other questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
isub
Posts: 8
Joined: Tue Jun 07, 2016 1:39 pm

Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1

Post by isub »

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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Migration from EZNag nagios 3.3.1 to Nagios core 4.0.1

Post by tgriep »

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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked