Nagios Install with Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Nagios Install with Error

Post by pratikmehta003 »

Hi Team,

I was installing Nagios on CentOS 8 and intially was getting some errors in conneting to repos but then it was resolved.. Then it ran for a while and at the end getting error like below.. So can you please assist on what needs to be done?
error-Nagios install.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Install with Error

Post by lmiltchev »

How are you installing Nagios XI? Is this a source or a RPM install? Are you using a proxy? Offline environment?

What is the version of Nagios XI that you are installing?

Can you post the entire install log. For the source install, the log should be located in "/tmp/nagiosxi/install.log". For the RPM install, the log should be in "/tmp/xi-install.log".

Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Nagios Install with Error

Post by pratikmehta003 »

Hi,

We installed it via curl command directly as customer had allowed temporary internet connection...
Version of Nagios XI should be latest right since we are using the curl command curl https://assets.nagios.com/downloads/nagiosxi/install.sh | sh

Please find the log file attached
install.log
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Install with Error

Post by lmiltchev »

For some reason, you are not able to use pip on this system, which is used to install pymssql. If you don't care about mssql (you are not planning on monitoring MSSQL servers), you could simply comment out this line (about 247) in the /tmp/nagiosxi/1-prereqs file:

Code: Select all

python -m pip install "pymssql<3"
so that it would look like this:

Code: Select all

# python -m pip install "pymssql<3"
Save, exit and rerun the full install from the command line:

Code: Select all

cd /tmp/nagiosxi
./fullinstall
Be sure to check out our Knowledgebase for helpful articles and solutions!
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Nagios Install with Error

Post by pratikmehta003 »

That worked :-)

But what if this was in a scenario where in SQL monitoring was needed... any specific steps are available?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Install with Error

Post by lmiltchev »

That worked :-)
I am glad I could help!
But what if this was in a scenario where in SQL monitoring was needed... any specific steps are available?
Then, we would had to see why you were not able to use pip in your environment. It could be something specific to your system, e.g. your repos, version of pip that is installed, etc. It's hard to say without getting more info. For example, on my test CentOS 8 system, this particular command works just fine.

Example:

Code: Select all

[root@TEST-XI-CentOS-8 ~]# python -m pip install "pymssql<3"
WARNING: Running pip install with root privileges is generally not a good idea. Try `__main__.py install --user` instead.
Collecting pymssql<3
  Downloading https://files.pythonhosted.org/packages/fe/aa/59c7c8a2cf1ef0726cd4c64bff7072147db8cbb6b4379fb0c3d7c67331b9/pymssql-2.1.5-cp36-cp36m-manylinux1_x86_64.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 514kB/s
Installing collected packages: pymssql
Successfully installed pymssql-2.1.5
[root@TEST-XI-CentOS-8 ~]# cat /etc/*release
CentOS Linux release 8.3.2011
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
CentOS Linux release 8.3.2011
CentOS Linux release 8.3.2011
[root@TEST-XI-CentOS-8 ~]# uname -a
Linux TEST-XI-CentOS-8 4.18.0-240.15.1.el8_3.x86_64 #1 SMP Mon Mar 1 17:16:16 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Let us know if it is ok to close this topic and mark it as resolved. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Nagios Install with Error

Post by pratikmehta003 »

Thanks for the note. For now i think its good to close
Locked