Upgrade nagios 3.5.1 to 4.3.2

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: Upgrade nagios 3.5.1 to 4.3.2

Postby mcapra » Wed Jun 14, 2017 8:53 am

pintu wrote:I installed nagios from repositories
The configuration of the hosts is in the directory /etc/nagios3/
Then I upgraded nagios to version 4.3.2 and the configuration files of this version 4.3.2 are in the /usr/local/nagios/
but nagios continues to use the old configuration (/etc/nagios3/ not /usr/local/nagios/)
Do you understand my question?


Do you know specifically which repository Nagios Core was initially installed from? That would be massively helpful in understanding potentially what went wrong. I will say this if this is a repository installation and you updated Nagios Core manually, rather than by using your system's package manager (apt, yum, zypper, etc) that will likely cause problems down the road if/when the repository updates their nagios3 package.

There is a very large difference in installing Nagios Core by hand, and installing it via a package. Same goes for any Linux software; You might be able to "upgrade" a PHP version on your machine by hand, but if it was first installed with a package (and not appropriately removed first) then your system's package manager is going to try and "update" the software when the time comes.
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 2773
Joined: Thu May 05, 2016 3:54 pm

Re: Upgrade nagios 3.5.1 to 4.3.2

Postby dwhitfield » Wed Jun 14, 2017 10:46 am

Thanks for the assist @mcapra!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 3756
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: Upgrade nagios 3.5.1 to 4.3.2

Postby pintu » Mon Jun 19, 2017 2:17 am

OK thanks @mcapra
I'm already reinstalling the server
pintu
 
Posts: 9
Joined: Fri Jun 09, 2017 6:33 am

Re: Upgrade nagios 3.5.1 to 4.3.2

Postby dwhitfield » Mon Jun 19, 2017 1:07 pm

Please let us know if you run into any additional issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 3756
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: Upgrade nagios 3.5.1 to 4.3.2

Postby pintu » Fri Jun 23, 2017 5:45 am

Nagios-nrpe-plugin can I install from repositories?
Does nrpe not install in version 4.3?
pintu
 
Posts: 9
Joined: Fri Jun 09, 2017 6:33 am

Re: Upgrade nagios 3.5.1 to 4.3.2

Postby pintu » Fri Jun 23, 2017 6:02 am

After installation I have to add the following *check_nrpe* definition in “commands.cfg” file?
And in the commands.cfg file I have to add all the parameters?
In the previous version, I had in /etc/nagios-plugins/ and each command in a separate file
pintu
 
Posts: 9
Joined: Fri Jun 09, 2017 6:33 am

Re: Upgrade nagios 3.5.1 to 4.3.2

Postby tgriep » Fri Jun 23, 2017 1:46 pm

The check_nrpe plugin is a separate install and dependng on whare you downloaded Nagios Core 4.3.2, it may not be included with the Core install.
Yes, after you install the check_nrpe plugin, you would have to add the command to the commands.cfg. I have included an example for your reference.
Code: Select all
define command {
       command_name                             check_nrpe
       command_line                             $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ $ARG2$
}
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 6019
Joined: Thu Oct 30, 2014 9:02 am

Previous

Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 4 guests