Nagios xi First time install issues

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
Jessasaurus
Posts: 1
Joined: Thu Jan 07, 2021 5:42 pm

Nagios xi First time install issues

Post by Jessasaurus »

Hi having issues installing Nagios xi for First time

on dedicated server ubuntu 20 64 bit


this is the full log
root@moomoo2:~# curl https://assets.nagios.com/downloads/nagiosxi/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 629 100 629 0 0 2270 0 --:--:-- --:--:-- --:--:-- 2278
/usr/bin/wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
wget is already the newest version (1.19.4-1ubuntu2.2).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
check if /tmp/nagiosxi exists
Downloading latest Nagios xi release
--2021-01-07 14:52:30-- https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
Resolving assets.nagios.com (assets.nagios.com)... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com (assets.nagios.com)|72.14.181.71|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 67313528 (64M) [application/x-gzip]
Saving to: ‘/tmp/xi-latest.tar.gz’

/tmp/xi-latest.tar.gz 100%[====================================================================================================================================================>] 64.19M 2.08MB/s in 29s

2021-01-07 14:52:59 (2.23 MB/s) - ‘/tmp/xi-latest.tar.gz’ saved [67313528/67313528]

Checking MySQL credentials...
After installation your MySQL root password will be set to 'nagiosxi' (without quotes).
Running './0-repos'...
Configuring Repos...
Repos configured OK
RESULT=0
Running './1-prereqs'...
Installing prerequisites...
Checking conflicting packages
dpkg-query: package 'nagios' is not installed and no information is available

dpkg-query: package 'nagios-nrpe' is not installed and no information is available

dpkg-query: package 'nagios-nsca' is not installed and no information is available

dpkg-query: package 'ndoutils' is not installed and no information is available

dpkg-query: package 'ndoutils-mysql' is not installed and no information is available

dpkg-query: package 'nrpe' is not installed and no information is available

dpkg-query: package 'nsca' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:2 https://repo.nagios.com/deb/bionic InRelease
Hit:3 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
Hit:5 us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:7 ppa.launchpad.net/chris-lea/redis-server/ubuntu bionic InRelease
Hit:8 us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:9lm.mariadb.com/repo/maxscale/latest/ubuntu bionic InRelease [3,515 B]
Hit:11 ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit:4 downloads.mariadb.com/MariaDB/mariadb-10.5/repo/ubuntu bionic InRelease
Hit:10 downloads.mariadb.com/Tools/ubuntu bionic InRelease
Fetched 3,515 B in 1s (3,080 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package php-pdo is a virtual package provided by:
php8.0-common 8.0.0-1+ubuntu18.04.1+deb.sury.org+1
php7.4-common 7.4.13-1+ubuntu18.04.1+deb.sury.org+1
php7.3-common 7.3.25-1+ubuntu18.04.1+deb.sury.org+1
php7.2-common 7.2.34-8+ubuntu18.04.1+deb.sury.org+1
php7.1-common 7.1.33-24+ubuntu18.04.1+deb.sury.org+1
php7.0-common 7.0.33-37+ubuntu18.04.1+deb.sury.org+1
php5.6-common 5.6.40-38+ubuntu18.04.1+deb.sury.org+1

E: Package 'php-pdo' has no installation candidate
RESULT=100

===================
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: './1-prereqs'
root@moomoo2:~#

root@moomoo2:~# cat /tmp/nagiosxi/install.log
Nagios xi Installation Log
==========================
DATE: Thu Jan 7 14:53:02 PST 2021

DISTRO INFO:
Ubuntu
18.04
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=5.7.5
major=5
minor=7.5
releasedate=2020-11-12
release=5705

Configuring Repos...
Repos configured OK
Installing prerequisites...
Checking conflicting packages
dpkg-query: package 'nagios' is not installed and no information is available

dpkg-query: package 'nagios-nrpe' is not installed and no information is available

dpkg-query: package 'nagios-nsca' is not installed and no information is available

dpkg-query: package 'ndoutils' is not installed and no information is available

dpkg-query: package 'ndoutils-mysql' is not installed and no information is available

dpkg-query: package 'nrpe' is not installed and no information is available

dpkg-query: package 'nsca' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:2 https://repo.nagios.com/deb/bionic InRelease
Hit:3 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:7 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu bionic InRelease
Hit:8 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:9 https://dlm.mariadb.com/repo/maxscale/latest/ubuntu bionic InRelease [3,515 B]
Hit:11 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit:4 https://downloads.mariadb.com/MariaDB/mariadb-10.5/repo/ubuntu bionic InRelease
Hit:10 https://downloads.mariadb.com/Tools/ubuntu bionic InRelease
Fetched 3,515 B in 1s (3,080 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package php-pdo is a virtual package provided by:
php8.0-common 8.0.0-1+ubuntu18.04.1+deb.sury.org+1
php7.4-common 7.4.13-1+ubuntu18.04.1+deb.sury.org+1
php7.3-common 7.3.25-1+ubuntu18.04.1+deb.sury.org+1
php7.2-common 7.2.34-8+ubuntu18.04.1+deb.sury.org+1
php7.1-common 7.1.33-24+ubuntu18.04.1+deb.sury.org+1
php7.0-common 7.0.33-37+ubuntu18.04.1+deb.sury.org+1
php5.6-common 5.6.40-38+ubuntu18.04.1+deb.sury.org+1

E: Package 'php-pdo' has no installation candidate
root@moomoo2:~#
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios xi First time install issues

Post by ssax »

Please run these commands and try again:

Code: Select all

sudo add-apt-repository universe
sudo add-apt-repository multiverse