Page 1 of 1
Error Installing nagios analyser on centos 7
Posted: Thu Sep 14, 2017 2:07 am
Error while installing nagios on centos 7 core.
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: 'build_rrdtool'
Re: Error Installing nagios analyser on centos 7
Posted: Thu Sep 14, 2017 12:31 pm
by tgriep
I found the following message in the install.log file
TEST FAILED: usr/local/lib64/python2.7/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
usr/local/lib64/python2.7/site-packages/
and your PYTHONPATH environment variable currently contains:
'/usr/local/openvpn_as/lib/python2.7/site-packages'
There could be a custom PYTHONPATH environment variable setup on the server causing the error.
Can you run the following on the NNA server and post the output to check for that environment variable?
Code: Select all
env grep -i python
which python
echo $PYTHONPATH
It could also be a setting in the /etc/sudoers file blocking environment variables from being set.
Can you post that file so we can look at it?
Re: Error Installing nagios analyser on centos 7
Posted: Sun Oct 22, 2017 10:59 am
nagiosna.jpg
Please find the attachments for the update
Re: Error Installing nagios analyser on centos 7
Posted: Mon Oct 23, 2017 1:15 pm
by tgriep
The output for those commands look good.
Run the following command to create a folder Python uses to store temporary files
Then, try and install NNA again.
If it fails, run the following commands and post the /tmp/info.txt file.
Code: Select all
ls -l /usr/local >/tmp/info.txt
ls -l /usr/local/lib64 >>/tmp/info.txt
ls -l /usr/local/lib64/python2.7 >>/tmp/info.txt
ls -l /usr/local/lib64/python2.7/site-packages >>/tmp/info.txt