Page 1 of 2

Facing issue on installing latest version of nagios server

Posted: Tue Feb 27, 2018 1:00 am
by Thanis
Hi ,
I am trying to install Nagios log server latest version behind the proxy server.
while installing I am facing issue.
I have added the "install.log" file as 'install.txt' file for your references
Please anyone give the solution

Issue on argparse while installing nagios log server

Posted: Tue Feb 27, 2018 3:34 am
by Thanis
Hi
Someone please guide me on installing . I am facing issue while installing log server

output on running the fullinstall script

Package php-ldap-5.4.16-43.el7_4.x86_64 already installed and latest version
Package php-devel-5.4.16-43.el7_4.x86_64 already installed and latest version
Package python-2.7.5-58.el7.x86_64 already installed and latest version
Package python2-pip-8.1.2-5.el7.noarch already installed and latest version
Nothing to do
27 Feb 13:59:45 ntpdate[8575]: adjust time server 10.244.0.1 offset 0.001917 sec
Collecting argparse
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18cf350>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/argparse/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18cf610>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/argparse/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18cf810>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/argparse/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18cf750>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/argparse/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18cfc10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/argparse/
Could not find a version that satisfies the requirement argparse (from versions: )
No matching distribution found for argparse

===================
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 Enterprises technical support.

The step that failed was: 'prereqs'

Re: Facing issue on installing latest version of nagios serv

Posted: Tue Feb 27, 2018 9:02 am
by scottwilkerson
Is this server on the internet?

The error is pointing to not being able to resolve DNS

Re: Facing issue on installing latest version of nagios serv

Posted: Wed Feb 28, 2018 12:32 am
by Thanis
Hi Scott,

Yes, Internet connection is available to this server via proxy.

we have DNS which allows the other servers in the same network to access the sites on browsers.

Do I need to give host entry in this file /etc/host to resolve?

Moreover, please find the attachment for your references

Please do the needful to sort the issue

Re: Facing issue on installing latest version of nagios serv

Posted: Wed Feb 28, 2018 10:29 am
by scottwilkerson
To be clear, did you followed this document for offline install of Log Server?

https://support.nagios.com/kb/article/n ... n-495.html

Because if you did, it shouldn't be running many of these commands.

Re: Facing issue on installing latest version of nagios serv

Posted: Wed Feb 28, 2018 12:15 pm
by Thanis
I followed the same document.However, I am facing the issue

When I try curl or wget to the pyi.python.org website
It throws an error like proxy authentication failed something like that

Re: Facing issue on installing latest version of nagios serv

Posted: Wed Feb 28, 2018 12:23 pm
by Thanis
Do I need to edit stuffs in configuration file such as yum.conf and in wgetrc files

Re: Facing issue on installing latest version of nagios serv

Posted: Wed Feb 28, 2018 2:22 pm
by scottwilkerson
you will
here is some cursory info on how to setup those
https://support.nagios.com/kb/article.php?id=147

Additionally, here is some common setup for using proxies on linux environments
https://www.cyberciti.biz/faq/linux-uni ... -variable/

Re: Facing issue on installing latest version of nagios serv

Posted: Thu Mar 01, 2018 4:43 am
by Thanis
Hi,

I followed offline document, on running the below command. output is below.
please , give me precise solution.

Please find time to go through the logs of the previous post.

#grep 'pip install' nagioslogserver/fullinstall | sed 's/pip install/& --no-index --find-links \/tmp\/pipfiles\//' | source /dev/stdin

output:-
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Ignoring indexes: https://pypi.python.org/simple
Collecting argparse
Could not find a version that satisfies the requirement argparse (from versions: )
No matching distribution found for argparse

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Re: Facing issue on installing latest version of nagios serv

Posted: Thu Mar 01, 2018 7:58 am
by scottwilkerson
I don't think you read the document here:
https://support.nagios.com/kb/article/n ... n-495.html
This KB article shows you how to modify the installation so it does not require internet access. However you will still need to download some packages on a computer that has internet access and then transfer those packages to your offline server.
The whole TOP chunk of thing need to be done on a server that HAS internet access (called the "Download Server"), and then transferred to the actual server ("Offline Server") for installation.

There is a section of command that you run on each server.