Page 1 of 4
Nagios XI 2014R2.1 Upgrade
Posted: Mon Dec 22, 2014 3:44 pm
by jkinning
I notived that the changelog for Nagios XI 2014R2.1 release included some addtional config wizard - Added SLES, OpenSUSE, and CentOS/RHEL 7 support to the Linux Server config wizard (updated linux agent installer to work on the new systems) -JO
However, I upgraded and do not see them. Still just see the same 4 as before. Do I need to do something extra to get SLES config wizards?
Re: Nagios XI 2014R2.1 Upgrade
Posted: Mon Dec 22, 2014 3:48 pm
by tmcdonald
What version of the wizard are you running? That might need to be updated separately. Admin -> Manage Config Wizards, check for updates.
Re: Nagios XI 2014R2.1 Upgrade
Posted: Mon Dec 22, 2014 3:53 pm
by jkinning
1.4.1 is the version it looks like I am running.
I ran the update and I have quite few that have updates, one being 1.4.2 for the Linux one. Never knew that existed. Thanks.
Re: Nagios XI 2014R2.1 Upgrade
Posted: Mon Dec 22, 2014 3:56 pm
by tmcdonald
Not a problem. Go ahead and run the update, see if they show up. If they do I will mark this thread as resolved and close it.
Re: Nagios XI 2014R2.1 Upgrade
Posted: Fri Jan 02, 2015 10:53 am
by jkinning
I tried to add the SLES 11sp3 LInux using the Linux Server Monitoring Wizard but after I cd /tmp and
http://assets.nagios.com/downloads/nagi ... ent.tar.gz then tar xzf linux-nrpe-agent.tar.gz and cd'd to linux-nrpe-agent the ./fullinstall did not work. I received the message ERROR: Could not determine OS. Please make sure lsb_release is installed or your OS info is in /etc/os-release. SLES 11sp3 is using /etc/SuSE-release to provide OS information. Is there a way to change this or remove the check to complete the install for the nrpe agent?
Re: Nagios XI 2014R2.1 Upgrade
Posted: Fri Jan 02, 2015 11:15 am
by jkinning
I monkey'd around with the /etc/os-release so it just has NAME=SUSELinux instead of the defaults in /etc/SuSE-release:
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 3
Ran the fullinstall from the nrpe download but encountered this error.
./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'...
Configuring Repos...
Repos configured OK
RESULT=0
Running './1-prereqs'...
Installing prerequisites...
Prerequisites installed OK
RESULT=0
Running './2-usersgroups'...
Adding users and groups...
groupadd: Group `nagios' already exists.
useradd: Account `nagios' already exists.
/usr/sbin/usermod: invalid option -- 'a'
Try `usermod --help' or `usermod --usage' for more information.
/usr/sbin/usermod: invalid option -- 'a'
Try `usermod --help' or `usermod --usage' for more information.
ERROR: Group 'nagios' was not created - exiting.
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.
The script that failed was: './2-usersgroups'
install.log output:
Nagios Linux Agent Installation Log
===================================
DATE: Fri Jan 2 11:11:05 EST 2015
DISTRO INFO:
SUSELinux
x86_64
Configuring Repos...
Repos configured OK
Installing prerequisites...
Prerequisites installed OK
Adding users and groups...
groupadd: Group `nagios' already exists.
useradd: Account `nagios' already exists.
/usr/sbin/usermod: invalid option -- 'a'
Try `usermod --help' or `usermod --usage' for more information.
/usr/sbin/usermod: invalid option -- 'a'
Try `usermod --help' or `usermod --usage' for more information.
ERROR: Group 'nagios' was not created - exiting.
Nagios Linux Agent Installation Log
===================================
DATE: Fri Jan 2 11:14:38 EST 2015
DISTRO INFO:
SUSELinux
x86_64
Repos already configured - exiting.
Prereqs already installed - skipping...
Adding users and groups...
groupadd: Group `nagios' already exists.
useradd: Account `nagios' already exists.
/usr/sbin/usermod: invalid option -- 'a'
Try `usermod --help' or `usermod --usage' for more information.
/usr/sbin/usermod: invalid option -- 'a'
Try `usermod --help' or `usermod --usage' for more information.
ERROR: Group 'nagios' was not created - exiting.
Re: Nagios XI 2014R2.1 Upgrade
Posted: Fri Jan 02, 2015 11:27 am
by jkinning
Manually added the nagios group, not sure why the script didn't add it but added the nagioscmd group. Ran the fullinstall again and more errors. I think this needs worked on before you can say it supports SLES (SUSE Linux Enterprise Server).
Attaching the install.log file for reference.
Re: Nagios XI 2014R2.1 Upgrade
Posted: Fri Jan 02, 2015 11:33 am
by jkinning
I touched /etc/xinetd.d/nrpe and reran the fullinstall.
This time it looked a little better but I haven't validated the installation and will see if Nagios XI is able to report back the status of my checks shortly.
Adding the install.log again for reference but this is what I had to do:
Remove the -a in front of -G for the eval "$usermodbin" -G "$nagioscmdgroup" "$nagiosuser" and eval "$usermodbin" -G "$nagiosgroup" "$nagiosuser" lines of 2-usersgroups script.
Manually added nagios group, not sure why the script didn't add it.
Touched /etc/xinetd.d/nrpe
Re: Nagios XI 2014R2.1 Upgrade
Posted: Fri Jan 02, 2015 11:38 am
by jkinning
Ok, so I only get ping status everything else is showing (Return code of 255 is out of bounds)
Re: Nagios XI 2014R2.1 Upgrade
Posted: Fri Jan 02, 2015 11:47 am
by lmiltchev
I am not sure if you were able to successfully install the linux agent, but there is definitely a problem with the installer. It seems like the command, which can be used in almost all linux distros:
doesn't work in SUSE...
As a "workaround" you can try:
Code: Select all
useradd nagios
groupadd nagios
groupadd nagcmd
usermod -A nagios nagios
usermod -A nagcmd nagios
touch installed.repos
touch installed.prereqs
touch installed.usersgroups
Then, try to run "./fullinstall" again.
Make sure that port 5666 is open. Test it from the Nagios XI server:
Hope this helps.