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.
how to install check_by_ssh plugin
Re: how to install check_by_ssh plugin
This will install the Nagios plugins. Let us know if this resolves your issue.Nagios Plugin Installation
cd /tmp/nagios-plugins-2.1.2
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
Thank you!
Re: how to install check_by_ssh plugin
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.
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
Run this from the NagiosXI server command line:
Replacing remote_ip with the IP address of the host you're monitoring.
Code: Select all
/usr/local/nagios/libexec/check_by_ssh -H remote_ip -C uptime
Re: how to install check_by_ssh plugin
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
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
Yes, please close this ticket.
thanks!
thanks!
Re: how to install check_by_ssh plugin
Closing this topic as resolved.
Thank you for visiting the Nagios Support Forum!
Thank you for visiting the Nagios Support Forum!