Nagios XI 2014R2.1 Upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Nagios XI 2014R2.1 Upgrade

Post by jkinning »

There is alot that didn't work with the scripts.

I ran the nmap command and noticed the status was closed so I looked at the /etc/xinetd.d/nrpe which was blank. Guess the script didn't create that either. :D

So, I created it with these values:
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
type = UNLISTED
port = 5666
socket_type = stream
wait = no
user = nagios
group = nagios
server = /usr/sbin/nrpe
server_args = -c /etc/nagios/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 10.1.0.181
}

But then also noticed I don't have a /usr/sbin/nrpe file nor anything in /etc/nagios/nrpe.cfg. In fact I don't even have a check_nrpe in the /usr/local/nagios/libexec. I have a bunch of other stuff which looks like got installed with the scripts.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI 2014R2.1 Upgrade

Post by tgriep »

Here is where the nrpe agent should have installed the files.
The executable should be in /usr/local/nagios/bin and the nrpe.cfg file should be in /usr/local/nagios/etc

Check those folders and see if they are there, if they are there, update your /etc/xinetd.d/nrpe file to the following

Code: Select all

server          = /usr/local/nagios/bin/nrpe
server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd
Then restart the nrpe service
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Nagios XI 2014R2.1 Upgrade

Post by jkinning »

I had the nsca and nothing else listed under /usr/local/nagios/bin

I did have the nrpe.cfg under /usr/local/nagios/etc/

Is there an easy way to get nrpe until someone can fix this installer? Hopefully, sooner rather than later. :D
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI 2014R2.1 Upgrade

Post by lmiltchev »

While installing the linux agent, did you follow this document?
What is the output of the following command?

Code: Select all

grep nag /etc/group
Can you post the "/tmp/linux-nrpe-agent/install.log"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Nagios XI 2014R2.1 Upgrade

Post by jkinning »

grep nag /etc/group
nagcmd:!:1000:
nagios:x:1001:nagios


I've already attached my install.log on the 1st page of this thread, post number 3 & 4. I can post again if you don't see the install.log attachment.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI 2014R2.1 Upgrade

Post by tgriep »

It looks like the nagcmd grpup didn't get created correctly, can you run this command to fix it?

Code: Select all

usermod -A nagcmd nagios
It is unclear on why the nrpe agent didn't compile. Can you run this command and post the output?

Code: Select all

ll -R /tmp/linux-nrpe-agent/subcomponents/nrpe
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Nagios XI 2014R2.1 Upgrade

Post by jkinning »

-A is an invalid option using usermod and SUSE.
usermod --help
Usage: usermod ...
usermod - modify a user account

-c comment Set the GECOS field for the new account
-D binddn Use dn "binddn" to bind to the LDAP directory
-d homedir Home directory for the new user
-e expire Date on which the new account will be disabled
-f inactive Days after a password expires until account is disabled
-G group,... List of supplementary groups
-g gid Name/number of the users primary group
-l login Change login name.
-m Move home directory to the new path
-o Allow duplicate (non-unique) UID
-A group,... List of groups the user should be added to
-R group,... List of groups the user should be removed from
-P path Search passwd, shadow and group file in "path"
-p password Encrypted password as returned by crypt(3)
-s shell Name of the user's login shell
-u uid Change the userid to the given number
--service srv Use nameservice 'srv'
-L Locks the password entry for "user"
-U Try to unlock the password entry for "user"
--help Give this help list
--usage Give a short usage message
-v, --version Print program version
Valid services are: files, ldap


/tmp/linux-nrpe-agent/subcomponents/nrpe/:
total 436
drwxr-xr-x 6 root root 4096 Dec 11 10:14 .svn
-rwxr-xr-x 1 root root 947 Dec 11 10:14 install
drwxr-xr-x 4 root root 4096 Dec 1 15:12 mods
drwxrwxr-x 8 root root 4096 Jan 2 11:29 nrpe-2.15
-rw-r--r-- 1 root root 419695 Dec 1 15:12 nrpe-2.15.tar.gz
-rwxr-xr-x 1 root root 532 Dec 1 15:14 post-install

/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn:
total 24
-r--r--r-- 1 root root 573 Dec 11 10:14 all-wcprops
-r--r--r-- 1 root root 733 Dec 11 10:14 entries
drwxr-xr-x 2 root root 4096 Dec 11 10:14 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 11 10:14 text-base
drwxr-xr-x 5 root root 4096 Dec 11 10:14 tmp

/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/prop-base:
total 12
-r--r--r-- 1 root root 30 Dec 11 10:14 install.svn-base
-r--r--r-- 1 root root 53 Dec 1 15:12 nrpe-2.15.tar.gz.svn-base
-r--r--r-- 1 root root 30 Dec 1 15:14 post-install.svn-base

/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/props:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/text-base:
total 424
-r--r--r-- 1 root root 947 Dec 11 10:14 install.svn-base
-r--r--r-- 1 root root 419695 Dec 1 15:12 nrpe-2.15.tar.gz.svn-base
-r--r--r-- 1 root root 532 Dec 1 15:14 post-install.svn-base

/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/tmp:
total 12
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 11 10:14 text-base

/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/tmp/prop-base:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/tmp/props:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/.svn/tmp/text-base:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods:
total 8
drwxr-xr-x 6 root root 4096 Dec 11 10:14 .svn
drwxr-xr-x 4 root root 4096 Dec 1 15:12 cfg

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn:
total 24
-r--r--r-- 1 root root 129 Dec 1 15:14 all-wcprops
-r--r--r-- 1 root root 257 Dec 11 10:14 entries
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 1 15:12 text-base
drwxr-xr-x 5 root root 4096 Dec 11 10:14 tmp

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/prop-base:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/props:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/text-base:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/tmp:
total 12
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 1 15:12 text-base

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/tmp/prop-base:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/tmp/props:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/.svn/tmp/text-base:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg:
total 16
drwxr-xr-x 6 root root 4096 Dec 11 10:14 .svn
drwxr-xr-x 3 root root 4096 Dec 1 15:14 nrpe
-rw-r--r-- 1 root root 7217 Dec 1 15:12 nrpe.cfg

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn:
total 24
-r--r--r-- 1 root root 282 Dec 1 15:14 all-wcprops
-r--r--r-- 1 root root 408 Dec 11 10:14 entries
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 1 15:12 text-base
drwxr-xr-x 5 root root 4096 Dec 11 10:14 tmp

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/prop-base:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/props:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/text-base:
total 8
-r--r--r-- 1 root root 7217 Dec 1 15:12 nrpe.cfg.svn-base

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/tmp:
total 12
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 1 15:12 text-base

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/tmp/prop-base:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/tmp/props:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/.svn/tmp/text-base:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe:
total 12
drwxr-xr-x 6 root root 4096 Dec 11 10:14 .svn
-rw-r--r-- 1 root root 687 Dec 1 15:12 asterisk.cfg
-rw-r--r-- 1 root root 1309 Dec 1 15:14 common.cfg

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn:
total 24
-r--r--r-- 1 root root 462 Dec 1 15:14 all-wcprops
-r--r--r-- 1 root root 553 Dec 11 10:14 entries
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 1 15:14 text-base
drwxr-xr-x 5 root root 4096 Dec 11 10:14 tmp

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/prop-base:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/props:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/text-base:
total 8
-r--r--r-- 1 root root 687 Dec 1 15:12 asterisk.cfg.svn-base
-r--r--r-- 1 root root 1309 Dec 1 15:14 common.cfg.svn-base

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/tmp:
total 12
drwxr-xr-x 2 root root 4096 Dec 1 15:12 prop-base
drwxr-xr-x 2 root root 4096 Dec 1 15:12 props
drwxr-xr-x 2 root root 4096 Dec 1 15:14 text-base

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/tmp/prop-base:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/tmp/props:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe/.svn/tmp/text-base:
total 0

/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15:
total 472
-rw-rw-r-- 1 root root 9966 Sep 6 2013 Changelog
-rw-rw-r-- 1 root root 441 Sep 6 2013 LEGAL
-rw-rw-r-- 1 root root 2056 Sep 6 2013 Makefile.in
-rw-rw-r-- 1 root root 7056 Sep 6 2013 README
-rw-rw-r-- 1 root root 1172 Sep 6 2013 README.SSL
-rw-rw-r-- 1 root root 669 Sep 6 2013 README.Solaris
-rw-rw-r-- 1 root root 3564 Sep 6 2013 SECURITY
-rwxrwxr-x 1 root root 43882 Sep 6 2013 config.guess
-rw-r--r-- 1 root root 44736 Jan 2 11:29 config.log
-rwxrwxr-x 1 root root 32304 Sep 6 2013 config.sub
-rwxrwxr-x 1 root root 226894 Sep 6 2013 configure
-rw-rw-r-- 1 root root 14163 Sep 6 2013 configure.in
drwxrwxr-x 2 root root 4096 Sep 6 2013 contrib
drwxrwxr-x 2 root root 4096 Sep 6 2013 docs
drwxrwxr-x 2 root root 4096 Sep 6 2013 include
-rw-rw-r-- 1 root root 1012 Sep 6 2013 init-script.debian.in
-rw-rw-r-- 1 root root 1171 Sep 6 2013 init-script.in
-rw-rw-r-- 1 root root 2192 Sep 6 2013 init-script.suse.in
-rwxrwxr-x 1 root root 5585 Sep 6 2013 install-sh
-rw-rw-r-- 1 root root 7188 Sep 6 2013 nrpe.spec
-rw-rw-r-- 1 root root 7264 Sep 6 2013 nrpe.spec.in
drwxrwxr-x 3 root root 4096 Sep 6 2013 package
drwxrwxr-x 2 root root 4096 Sep 6 2013 sample-config
drwxrwxr-x 2 root root 4096 Sep 6 2013 src
-rwxrwxr-x 1 root root 1705 Sep 6 2013 subst.in
-rwxrwxr-x 1 root root 2937 Sep 6 2013 update-version

/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/contrib:
total 8
-rw-rw-r-- 1 root root 1789 Sep 6 2013 README.nrpe_check_control
-rw-rw-r-- 1 root root 3351 Sep 6 2013 nrpe_check_control.c

/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/docs:
total 320
-rw-rw-r-- 1 root root 104985 Sep 6 2013 NRPE.odt
-rw-rw-r-- 1 root root 212023 Sep 6 2013 NRPE.pdf

/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/include:
total 28
-rw-rw-r-- 1 root root 1920 Sep 6 2013 acl.h
-rw-rw-r-- 1 root root 2786 Sep 6 2013 common.h
-rw-rw-r-- 1 root root 4818 Sep 6 2013 config.h.in
-rw-rw-r-- 1 root root 732 Sep 6 2013 dh.h
-rw-rw-r-- 1 root root 2203 Sep 6 2013 nrpe.h
-rw-rw-r-- 1 root root 1742 Sep 6 2013 utils.h

/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/package:
total 4
drwxrwxr-x 3 root root 4096 Sep 6 2013 solaris

/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/package/solaris:
total 8
-rw-rw-r-- 1 root root 3085 Sep 6 2013 Makefile.in
drwxrwxr-x 2 root root 4096 Sep 6 2013 pkg

/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/package/solaris/pkg:
total 24
-rw-rw-r-- 1 root root 1620 Sep 6 2013 i.config
-rw-rw-r-- 1 root root 419 Sep 6 2013 nrpe
-rw-rw-r-- 1 root root 3006 Sep 6 2013 nrpe.xml
-rw-rw-r-- 1 root root 224 Sep 6 2013 postinstall
-rw-rw-r-- 1 root root 813 Sep 6 2013 preinstall
-rw-rw-r-- 1 root root 835 Sep 6 2013 r.config

/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/sample-config:
total 12
-rw-rw-r-- 1 root root 7897 Sep 6 2013 nrpe.cfg.in
-rw-rw-r-- 1 root root 458 Sep 6 2013 nrpe.xinetd.in

/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/src:
total 148
-rw-rw-r-- 1 root root 1778 Sep 6 2013 Makefile.in
-rw-rw-r-- 1 root root 17573 Sep 6 2013 acl.c
-rw-rw-r-- 1 root root 12772 Sep 6 2013 check_nrpe.c
-rw-rw-r-- 1 root root 53893 Sep 6 2013 nrpe.c
-rw-rw-r-- 1 root root 34417 Sep 6 2013 snprintf.c
-rw-rw-r-- 1 root root 10109 Sep 6 2013 utils.c
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI 2014R2.1 Upgrade

Post by tgriep »

Sorry, I typo-ed the command

Try this from /tmp/linux-nrpe-agent/ folder

Code: Select all

usermod -G nagios nagios
usermod -G nagcmd nagios
touch installed.repos
touch installed.prereqs
touch installed.usersgroups
If these work, run the following to install the nrpe agent

./fullinstall

If it fails, post back the upgrade.log
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Nagios XI 2014R2.1 Upgrade

Post by jkinning »

This looks promising -
Nagios Linux Agent Installation Log
===================================
DATE: Mon Jan 5 15:58:13 EST 2015

DISTRO INFO:
SUSELinux

x86_64

Repos already configured - exiting.
Prereqs already installed - skipping...
Users/groups already configured - skipping.
/etc/services already updated - skipping.
Firewall rules already configured - skipping.
Subcomponents already configured - skipping.

Install complete!


However, I still have (Return code of 255 is out of bounds) on all my checks but ping.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI 2014R2.1 Upgrade

Post by tgriep »

First lets restart the xinetd daemon on the Suse server. Run this command on the Suse server.

Code: Select all

service xinetd restart
Try running this test from your NagiosXI server from a shell.

Code: Select all

/usr/local/nagios/check_nrpe -H <ip address of the SUSE server> -4
It should return "NRPE v2.15" if everything is running.

If it fails, run these commands from the Suse server and post back the output.

Code: Select all

cat /etc/xinetd.d/nrpe
cat /usr/local/nagios/etc/nrpe.cfg
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked