Nagios XI 2014R2.1 Upgrade
Nagios XI 2014R2.1 Upgrade
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?
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?
You do not have the required permissions to view the files attached to this post.
Re: Nagios XI 2014R2.1 Upgrade
What version of the wizard are you running? That might need to be updated separately. Admin -> Manage Config Wizards, check for updates.
Former Nagios employee
Re: Nagios XI 2014R2.1 Upgrade
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.
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
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.
Former Nagios employee
Re: Nagios XI 2014R2.1 Upgrade
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
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.
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
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.
Attaching the install.log file for reference.
You do not have the required permissions to view the files attached to this post.
Re: Nagios XI 2014R2.1 Upgrade
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
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
You do not have the required permissions to view the files attached to this post.
Re: Nagios XI 2014R2.1 Upgrade
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
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:
Then, try to run "./fullinstall" again.
Make sure that port 5666 is open. Test it from the Nagios XI server:
Hope this helps.
Code: Select all
usermod -a -G nagcmd nagiosAs 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
Make sure that port 5666 is open. Test it from the Nagios XI server:
Code: Select all
nmap <client ip> -p 5666Be sure to check out our Knowledgebase for helpful articles and solutions!