how to install check_by_ssh plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ikekim
Posts: 85
Joined: Wed Aug 16, 2017 12:21 pm

how to install check_by_ssh plugin

Post 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.
bolson

Re: how to install check_by_ssh plugin

Post 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!
ikekim
Posts: 85
Joined: Wed Aug 16, 2017 12:21 pm

Re: how to install check_by_ssh plugin

Post 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.
bolson

Re: how to install check_by_ssh plugin

Post 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.
ikekim
Posts: 85
Joined: Wed Aug 16, 2017 12:21 pm

Re: how to install check_by_ssh plugin

Post 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
bolson

Re: how to install check_by_ssh plugin

Post by bolson »

May we close this topic?
ikekim
Posts: 85
Joined: Wed Aug 16, 2017 12:21 pm

Re: how to install check_by_ssh plugin

Post by ikekim »

Yes, please close this ticket.

thanks!
bolson

Re: how to install check_by_ssh plugin

Post by bolson »

Closing this topic as resolved.

Thank you for visiting the Nagios Support Forum!
Locked