Page 1 of 2

Issue while monitoring Remote Linux Server

Posted: Fri Dec 09, 2016 9:05 am
by HAL
Hi,

We are in a phase of installing Nagios XI agent on SuSE Linux Server.
We are getting error while running the ./fullinstall executable file.
Please find the attached screenshot for the above error.
We have followed the attached document to install the agent.
However we are still facing issues.

Kindly suggest appropriate method to install the agent on the SuSE Linux Server.

Thanks & Regards,
HAL

Re: Issue while monitoring Remote Linux Server

Posted: Fri Dec 09, 2016 11:42 am
by dwhitfield
The output of more install.log suggests you are trying to install the agent on the Nagios server rather than on the SLES.

Could you clarify where you are installing the agent?

Also, can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the Download Profile (not Show Profile) button in the top right corner. If for whatever reason you cannot download the profile, please put the output of Show Profile in the thread (that will at least get us some info).

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

- Dave

UPDATE: Profile received and shared with techs.

Re: Issue while monitoring Remote Linux Server

Posted: Mon Dec 12, 2016 2:46 am
by HAL
Hi,

I have PM you profile.txt .
Please check and validate on the further steps.

Thanks & Regards,
Hal.

Re: Issue while monitoring Remote Linux Server

Posted: Mon Dec 12, 2016 10:40 am
by rkennedy
Can you please clarify on @dwhitfields previous question? It seems to indicate the same thing I'm seeing.
The output of more install.log suggests you are trying to install the agent on the Nagios server rather than on the SLES.

Could you clarify where you are installing the agent?

Re: Issue while monitoring Remote Linux Server

Posted: Tue Dec 13, 2016 8:46 am
by HAL
We are trying to install agent on SuSE Linux server in order to establish connection between Nagios server and remote Linux server.

Re: Issue while monitoring Remote Linux Server

Posted: Tue Dec 13, 2016 5:16 pm
by rkennedy
Could you verify the screenshot posted? The initial screenshot appears to be for a Cent5 machine with the install.log, not SUSE, which is where we have confusion.

Re: Issue while monitoring Remote Linux Server

Posted: Tue Dec 13, 2016 5:28 pm
by lmiltchev
In addition to this, post the entire install.log from the SUSE machine, run the following commands in the command line, and show the output:

Code: Select all

ip addr | grep global | grep -m 1 'inet' | awk '/inet[^6]/{print substr($2,0)}' | sed 's|/.*||'
cat /etc/*release

Re: Issue while monitoring Remote Linux Server

Posted: Tue Dec 13, 2016 5:30 pm
by dwhitfield
By verify, @rkennedy means more than just "yep, that's it"

@lmiltchev's suggestion should help you in that regard.

So, why are they asking you for this?

Here's the deal. Your profile says you are running Cent 6.8. One screenshot says Cent 6.4 and the other says SUSE. Now, why would there be a change between the two screenshots...maybe they came from two different sessions? Maybe the IP address changed in interim or DNS is goofed up?

We have here in our office an ssh banner that shows the IP address of the supposed server in question. It is, unfortunately, not 100% reliable. On our side, whether that is due to our VM appliance, I am not sure, but basically, what we are seeing right now makes no sense from where we sit. You are better positioned to figure out what is going on.

Now, once the agent install log is showing that it is picking up SUSE info, it'll be easier to move forward.

One thing to check...files like /etc/os-release. I know that is used in newer versions of SUSE...not sure about 11.

Is it possible puppet/chef/ansible/whatever overwrote one of those files? You are using just one of many places to get the release info. I will confess that the location you used is my go-to as well, though I tend to use cat /etc/*-release so it doesn't really matter what the distro is...although now that I am looking at Ludmil's I'm not sure why I use the dash!

Re: Issue while monitoring Remote Linux Server

Posted: Mon Dec 19, 2016 6:17 am
by HAL
As asked by you, we have run both the commands on Linux server that we need to monitor in Nagios. Below is the output for same. Please advise further.

OSLSEC014:~ # ip addr | grep global | grep -m 1 'inet' | awk '/inet[^6]/{print substr($2,0)}' | sed 's|/.*||'
10.202.24.39


OSLSEC014:~ # cat /etc/*release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 3
NAME=SUSE Linux Enterprise Server 11
VERSION=11

Regards,
HAL

Re: Issue while monitoring Remote Linux Server

Posted: Mon Dec 19, 2016 11:01 am
by rkennedy
Image
Can you please post the install.log outputted from that machine? I don't believe we're looking at the right one.

To poll the version the script is simply running rpm -q centos-release so there should not be a discrepancy -

Code: Select all

[root@bob linux-nrpe-agent]# rpm -q centos-release
centos-release-6-8.el6.centos.12.3.x86_64