Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Error in the installation of Nagios XI

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
sarksloane
Posts: 89
Joined: 2017-01-17 04:21

Error in the installation of Nagios XI

#1 Post by sarksloane »

I have installed Nagios XI but getting error. Thanks.

The script that failed was: './1-prereqs'

Code: Select all

Nagios XI Installation Log
==========================
DATE: Wed Jan 10 21:28:23 +03 2018

DISTRO INFO:
Debian
9.3
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=5.4.11
major=5
minor=4.11
releasedate=2017-10-31
release=5411

Configuring Repos...
Ign:1 http://ftp.us.debian.org/debian stretch InRelease
Hit:2 http://ftp.us.debian.org/debian stretch-updates InRelease
Hit:3 http://security.debian.org/debian-security stretch/updates InRelease
Hit:4 http://ftp.us.debian.org/debian stretch Release
Reading package lists...
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.
Reading package lists...
Building dependency tree...
Reading state information...
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-gd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-pgsql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mcrypt is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-ldap is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libmysqlclient-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libssh2-php is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  php-ssh2

Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python-pymssql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libssh2-php' has no installation candidate
E: Package 'libmysqlclient-dev' has no installation candidate
E: Package 'php5' has no installation candidate
E: Package 'libapache2-mod-php5' has no installation candidate
E: Package 'php5-gd' has no installation candidate
E: Package 'php5-mcrypt' has no installation candidate
E: Unable to locate package php5-mssql
E: Package 'php5-mysql' has no installation candidate
E: Unable to locate package php-html-template-it
E: Package 'php5-pgsql' has no installation candidate
E: Unable to locate package php5-snmp
E: Unable to locate package php5-dev
E: Package 'php5-ldap' has no installation candidate
E: Package 'php5-curl' has no installation candidate
E: Package 'python-pymssql' has no installation candidate

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1418
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 79 times
Been thanked: 189 times

Re: Error in the installation of Nagios XI

#2 Post by steve_v »

Where did you get that installer script?
A bunch of the packages it's trying to install don't exist in stretch, so you should probably go bug whoever you got it from.
I see only packages for Redhat / Centos on the nagios site...
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

sarksloane
Posts: 89
Joined: 2017-01-17 04:21

Re: Error in the installation of Nagios XI

#3 Post by sarksloane »

steve_v wrote:Where did you get that installer script?
A bunch of the packages it's trying to install don't exist in stretch, so you should probably go bug whoever you got it from.
I see only packages for Redhat / Centos on the nagios site...
It means that the Nagios XI can be installed only in Redhat / Centos? Is there is a possibility to install it in Debian? if yes, how? please can you guide me on this.

because I just followed this step https://assets.nagios.com/downloads/nag ... -Linux.pdf, I thought it's applicable in Debian.

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1418
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 79 times
Been thanked: 189 times

Re: Error in the installation of Nagios XI

#4 Post by steve_v »

sarksloane wrote:It means that the Nagios XI can be installed only in Redhat / Centos?
It means that it's only supported on Redhat. If you try installing it on anything else you're on your own.
The installer states: "IMPORTANT: This script should only be used on a 'clean' install of CentOS or RedHat". I certainly wouldn't try it on a system I care about.

If you do want to try breaking your system by installing this thing, you won't be able to use that installer script as it is.
Try changing the package names on line 38 of 1-prereqs to ones that are actually in Stretch, anything php has gone from 'php5' to just 'php' for a start. No guarantees that the thing will actually work though, even if you do get it installed.
Looks like this script might have been set up to work on Jessie, maybe. Proprietary crap is always out of date. :roll:
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Post Reply