Page 1 of 1

Nagios upgrade help

Posted: Tue Apr 21, 2020 6:40 am
by Parn
Greetings,

First of all let me say hello to everyone as I am new in this community, so nice to meet you all, I'm a system administrator at a company in Spain, I'm mostly a windows environment sys admin but I'm starting to learn and use Linux as well.

I have the following task and I require/ask for some help, I have to upgrade Nagios/centreon and as my experience with Linux, nagios and centreon is very poor I need your help to show me the way to do so.

We have a Linux server that contains Centreon, Nagios and the database, everything on the same server (I haven't done this configuration, another sysadmin that left the company did so) and I have been doing some research to find how to upgrade what we have, but as I said with my poor experience on the systems its being a nightmare to find exactly what I need.

I will give you some details of what we currently have and if you need more information to tell me what steps should I follow, please let me know so I can provide them to you:

Linux server:

LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.11 (Final)
Release: 5.11
Codename: Final

------------------------------------------------------

Nagios version: Nagios 3.4.4

--------------------------------------------------------

Centreon Version: Centreon 2.4.5

---------------------------------------------------------

[]# mysql -v
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is .....
Server version: 5.0.95 Source distribution


My goal is to keep monitoring our systems with the same tool but with a recent version as we are now monitoring with the check_nt commands and some of them dont give the proper information (e.g memory) and I would like to use nrpe and also if it is possible I need to set up an alert that makes my for ring or something different than an email for the critical machines.

By the way we use NSCP-0.4.4.15-x64.msi on the machines to be able to monitor them.

Thank you in advance.

Regards

Re: Nagios upgrade help

Posted: Wed Apr 22, 2020 11:10 am
by benjaminsmith
Hi @Parn,
First of all let me say hello to everyone as I am new in this community, so nice to meet you all, I'm a system administrator at a company in Spain, I'm mostly a windows environment sys admin but I'm starting to learn and use Linux as well.
Welcome aboard! We are thrilled to have you in the Nagios Community.

An easy option here, just so you know and that you are new to Nagios and Linux, would be to migrate this system over to Nagios XI. It's going to be much easier to learn, administer, and configure. You can get a trial going with 30 days of enterprise support by going to the Nagios XI Downloads page.

Here are are few recommendations for the migration. Let me know if you have any questions.

1. I would recommend migrating to a new server with a fresh installation of Cent 7 as version 5 is no longer supported.
https://support.nagios.com/kb/article/n ... ce-96.html

2. If you don't mind changing the agent, a good option to consider is using NCPA for new setups. It works on both Linux and Windows. However, you can continue to use check_nt.

https://www.nagios.org/ncpa/

3. You may or may not need MySQL, do you have a configuration addon like Nagiosgl installed?

4. Copy over all the configs from the old instance to the new. They are backward compatible with version 4. You can also migrate performance data if needed.

The configuration files for monitoring are found in:

Code: Select all

/usr/local/nagios/etc
The following command will verify that the configurations are correct.

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Good Luck!
Benjamin

Re: Nagios upgrade help

Posted: Thu Apr 23, 2020 3:39 am
by Parn
Hi Benjaminsmith,

Thank you for your time and help :).

Is Nagios XI free?

1) Ok I will create a new server with CentOS 7

2) we are currently using check_nt but I wanted to move to nrpe, as it gives detailed information and the proper info for the memory and so on. Changing the agent would mean installing a different software on all the machines again, right? (we currently have NSCP-0.4.4.15-x64.msi). is nrpe going to work with the current agent that we have?

3) how can I check that?

4) I will do that, let me begin with the OS and nagios installation



I have a question for you:

1) If Nagios XI is free will it work the same way as it is working for me now? As I said we have 2 different webpages, 1 is centreon where we configure the commands, hosts and services and the other is the one that monitors, which is nagios.
If not, will it be possible to migrate and keep the data and so on?.


Again thank you for your time.

Regards

Re: Nagios upgrade help

Posted: Thu Apr 23, 2020 5:54 am
by Parn
Hi again benjaminsmith,

I have done the first step which is install centos 7 and Nagios Core (with the latest version of the plugings 2.3.3) I am now navigating through the website and so on.

Before I continue, I would like to know about the agent, as I said we are now using NSCP-0.4.4.15-x64 and I would like to keep it, as it is already installed in all the machines and monitor with the NRPE.

Also as I said before we had centron and nagios on the same machine, centreon was used for the configuration of the hosts, services,etc and nagios was the monitor webpage, is it possible to keep that also? If not how would this be managed with nagios? and is it possible to migrate the data to this new environment?

I'm sorry for the rush, there are a lot of questions that I have, before going with the next step.

Thank you a lot

Re: Nagios upgrade help

Posted: Thu Apr 23, 2020 4:50 pm
by ssax
Nagios XI is our commercial product that comes with a free trial, it makes web configuration (and a lot of other stuff) a breeze:

https://www.nagios.com/products/nagios-xi/

2. You will need to enable NRPE in nsclient for this to work but nsclient supports both
- Note that your commands are likely different and would need to change them in Nagios

Roughly like this:

Code: Select all

[/settings/NRPE/server]

; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled.
use ssl = true

; ALLOW INSECURE CHIPHERS and ENCRYPTION - Only enable this if you are using legacy check_nrpe client.
insecure = true

; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow nasty characters = true

; EXTENDED RESPONSE - Send more then 1 return packet to allow response to go beyond payload size (requires modified client if legacy is true this defaults to false).
extended response = true

; PORT NUMBER - Port to use for NRPE.
port = 5666

; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow arguments = true

We do not support centreon and there is no direct migration path. You will need to investigate those files and see if they can be used, they look like they may but we don't use that product so we have no idea what changes they make to the configs.

Re: Nagios upgrade help

Posted: Fri Apr 24, 2020 2:50 am
by Parn
Ok,

I will try to find the way to migrate everything to this new server with latest versions and Centreon as a back end and nagios as front end, but could you give me a guide or something to install/configure nrpe? I would like to know if it is also configured on the old server.

Thank you!