Page 1 of 1

how to install check_by_ssh plugin

Posted: Mon Aug 21, 2017 3:00 pm
by ikekim
I have Nagios XI installed and want to monitor remote Redhat 7.x machine using SSH. Installing the agent is likely not allowed in our environment.

This is from Nagios instruction from page 2: https://assets.nagios.com/downloads/nag ... ng_SSH.pdf

Before you can use the check_by_ssh plugin, you must install/configure the following on the remote Linux/Unix server you want to monitor: ● Create a nagios user ● Install Nagios plugins and/or monitoring scripts ● Install and configure the SSH daemon

I downloaded the Nagios official plugins(I believe there are 50 plugins) and extracted the files, but there is no instructional step for install command. I read the README file, but this seems to give me the steps of making the install files from the source, I think.

Is there a simple command that will run the install in order for me to install the plugins that will include check_by_ssh plugin?

thanks.

Re: how to install check_by_ssh plugin

Posted: Mon Aug 21, 2017 3:11 pm
by bolson
Nagios Plugin Installation
cd /tmp/nagios-plugins-2.1.2
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
This will install the Nagios plugins. Let us know if this resolves your issue.

Thank you!

Re: how to install check_by_ssh plugin

Posted: Mon Aug 21, 2017 3:56 pm
by ikekim
Thank you.

I ran your commands and it seems to execute okay, but how do I check if the check_by_ssh plugin is installed properly and is running?

On page 4 of the same document it says:

Also test the check_by_ssh plugin, run the following command:
/usr/local/nagios/libexec/check_by_ssh -H remoteip -C uptime

So I ran the command from the host where I installed the plugins:
/usr/local/nagios/libexec/check_by_ssh -H 127.0.0.1 -C uptime

But I got the error:
Remote command execution failed:


thanks.

Re: how to install check_by_ssh plugin

Posted: Mon Aug 21, 2017 4:29 pm
by bolson
Run this from the NagiosXI server command line:

Code: Select all

/usr/local/nagios/libexec/check_by_ssh -H remote_ip -C uptime
Replacing remote_ip with the IP address of the host you're monitoring.

Re: how to install check_by_ssh plugin

Posted: Tue Aug 22, 2017 1:14 pm
by ikekim
Thank you . It worked.

I wanted to post my answer sooner but because I didn't have the root password, I built a separate test VM to apply the steps you have given.

ik

Re: how to install check_by_ssh plugin

Posted: Tue Aug 22, 2017 1:15 pm
by bolson
May we close this topic?

Re: how to install check_by_ssh plugin

Posted: Wed Aug 23, 2017 9:04 am
by ikekim
Yes, please close this ticket.

thanks!

Re: how to install check_by_ssh plugin

Posted: Wed Aug 23, 2017 9:26 am
by bolson
Closing this topic as resolved.

Thank you for visiting the Nagios Support Forum!