Page 1 of 3

NRPE Problem after Nagios Upgrade to 5.5.0

Posted: Wed Jul 11, 2018 6:31 am
by aptmis
Hi, Since updating NagiosXI with latest version of 5.5.0, I started having problems.
1) My nrpe monitoring of Linux Server started giving me following errors:
NRPE: Command 'check_disk' not defined
NRPE: Command 'check_init_service' not defined
NRPE: Command 'check_cpu_stats' not defined
NRPE: Command 'check_init_service' not defined
NRPE: Command 'check_mem' not defined
NRPE: Command 'check_init_service' not defined
NRPE: Command 'check_open_files' not defined
NRPE: Command 'SSH' not defined
NRPE: Command 'check_swap' not defined
NRPE: Command 'check_init_service' not defined
NRPE: Command 'Total' not defined
NRPE: Command 'check_yum' not defined
I tried to follow all the procedure described in your KB articles but no luck - I could not even remove it from "DashBoard" Display, despite successfully deleting Services and hosts in CCM. I even updated nrpe agent.
2) Graph display for all the devices also stopped working, this is the first time that the update has been proven to be a nightmare.

Re: NRPE Problem after Nagios Upgrade to 5.5.0

Posted: Wed Jul 11, 2018 8:52 am
by scottwilkerson
I believe we are going to need some more information to diagnose the problem.

Can you open a ticket at
https://support.nagios.com/tickets/

and include your profile.zip form Admin -> System Profile

Re: NRPE Problem after Nagios Upgrade to 5.5.0

Posted: Wed Jul 11, 2018 10:13 am
by aptmis
here is the profile.zip. I tried to open a ticket but somehow did not succeed.

Re: NRPE Problem after Nagios Upgrade to 5.5.0

Posted: Wed Jul 11, 2018 11:33 am
by scottwilkerson
so I see this in your log

Code: Select all

Remote 10.100.0.49 does not support Version 3 Packets
One thing you may want to do is to go to the CCM -> Commands -> check_nrpe -> Edit
and add a -2 to the command to force back down to version 2

Per for first post:
aptmis wrote:NRPE: Command 'check_disk' not defined
NRPE: Command 'check_init_service' not defined
NRPE: Command 'check_cpu_stats' not defined
NRPE: Command 'check_init_service' not defined
NRPE: Command 'check_mem' not defined
are you getting these on all hosts or just 1 because this looks like these commands are not configured on the client. Maybe when you updated the NRPE agent you didn't use the XI Linux Agent like you were using before which has those commands defined

https://assets.nagios.com/downloads/nag ... _Agent.pdf

I would recommend removing the agent and reinstalling using the doc above

Re: NRPE Problem after Nagios Upgrade to 5.5.0

Posted: Thu Jul 12, 2018 3:47 am
by aptmis
I have two linux host, NagiosXI and NagiosNNA. These errors are only on NagiosXI , after I updated it with latest version. Yes I did reinstall NRPE again and again. I did try "One thing you may want to do is to go to the CCM -> Commands -> check_nrpe -> Edit
and add a -2 to the command to force back down to version 2" but it did not work. Now I will try to uninstall NRPE and reinstall again and see what happens!!!!

Re: NRPE Problem after Nagios Upgrade to 5.5.0

Posted: Thu Jul 12, 2018 3:52 am
by aptmis
By the way, 10.100.0.49 is my NagiosNNA server and it is working fine, it's my NagiosXI sever, 10.100.0.50 having trouble!!!

Re: NRPE Problem after Nagios Upgrade to 5.5.0

Posted: Thu Jul 12, 2018 3:55 am
by aptmis
HI,
I tried to update/upgrade/reinstall NRPE and got following response:
login as: root
[email protected]'s password:
Last login: Wed Jul 11 06:48:20 2018 from pc161101.af.local
[root@nagios ~]# cd /tmp
[root@nagios tmp]# wget https://assets.nagios.com/downloads/nag ... ent.tar.gz
--2018-07-12 04:52:54-- https://assets.nagios.com/downloads/nag ... ent.tar.gz
Resolving assets.nagios.com... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com|72.14.181.71|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3550094 (3.4M) [application/x-gzip]
Saving to: “linux-nrpe-agent.tar.gz.3”

100%[======================================>] 3,550,094 5.84M/s in 0.6s

2018-07-12 04:52:54 (5.84 MB/s) - “linux-nrpe-agent.tar.gz.3” saved [3550094/3550094]

[root@nagios tmp]# tar xzf linux-nrpe-agent.tar.gz

[root@nagios tmp]#
[root@nagios tmp]# cd linux-nrpe-agent
[root@nagios linux-nrpe-agent]# pwd
/tmp/linux-nrpe-agent
[root@nagios linux-nrpe-agent]# ./fullinstall
============================
Nagios Linux Agent Installer
============================

This script will install the Nagios Linux Agent by executing all necessary
sub-scripts.

IMPORTANT: This script should only be used on a clean installed system:

RedHat Enterprise, CentOS, Fedora, or Oracle
OpenSUSE or SUSE Enterprise
Ubuntu or Debian

Do NOT use this on a system running any other distro or that
does not allow additional package installation.

Do you want to continue? [Y/n] Y
Proceeding with installation...
Running './0-repos'...
Repos already configured - exiting.
RESULT=0
Running './1-prereqs'...
Prereqs already installed - skipping...
RESULT=0
Running './2-usersgroups'...
Users/groups already configured - skipping.
RESULT=0
Running './3-services'...
/etc/services already updated - skipping.
RESULT=0
Running './4-firewall'...
Firewall rules already configured - skipping.
RESULT=0
Running './A-subcomponents'...
Subcomponents already configured - skipping.
RESULT=0

##########################################################
### ###
### Nagios XI Linux Agent Installation Complete! ###
### ###
##########################################################

If you experience any problems, please attach the file install.log that was just created to any support requests.

You have new mail in /var/spool/mail/root
[root@nagios linux-nrpe-agent]#

Re: NRPE Problem after Nagios Upgrade to 5.5.0

Posted: Thu Jul 12, 2018 4:00 am
by aptmis
Attached please find install.log

Re: NRPE Problem after Nagios Upgrade to 5.5.0

Posted: Thu Jul 12, 2018 6:47 am
by scottwilkerson
you extracted into the directory that already existed, but make sure you removed the other nrpe first, then:

Code: Select all

cd /tmp
rm -f /tmp/linux-nrpe-agent
tar xzf linux-nrpe-agent.tar.gz
./fullinstall

Re: NRPE Problem after Nagios Upgrade to 5.5.0

Posted: Thu Jul 12, 2018 11:05 am
by aptmis
I will try this tomorrow and let you know the results.