SSH problem?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pohlin
Posts: 18
Joined: Wed Jan 31, 2018 10:08 pm

SSH problem?

Post by pohlin »

First, I download nrpe from source, upon configuring, i reached this step:
sed -i '/^allowed_hosts=/s/$/,10.25.5.2/' /usr/local/nagios/etc/nrpe.cfg
which i need to put my nagios server ip there, but it shows something sed: unknown option 's'

So i tried download nrpe script which it could configure automatically and i just have to type nagios server ip to allowed to connect to nrpe.
I even tiredvi /etc/xinetd.d/nrpe , the nagios server ip is written allowed.

but when i test /usr/local/nagios/libexec/check_nrpe -H <my nagios server ip>
it says could not connect, connection reset by peer
and on the web interface it shows (No output on stdout) stderr: connect to address 192.168.0.137 port 5666: Connection refused

so i googled alot, some say i should install telnet, but it shows pycurl error 22, 401 autherization required
some say it may be behind a proxy, but when i try curl -vv http://mirror.centos.org/centos/6/cr/x8 ... repomd.xml
it says HTTP/1.1 401 Authentication Required, Connection: keep alive

so im not sure if im behind a proxy or not but i tried https://support.nagios.com/kb/article.php?id=147 to solve it
it says i need to access SSH, then tried https://assets.nagios.com/download ... 1517278131
when i reach the stepssh-copy-id -i ~/.ssh/id_rsa.pub nagios@remoteip
it says could not resolve hostname remote ip, name or service not known
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: SSH problem?

Post by npolovenko »

@pohlin, Please don't create multiple threads for the same issue. Let's keep on working on your original thread here:
https://support.nagios.com/forum/viewto ... 62#p244162
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: SSH problem?

Post by npolovenko »

@pohlin, Please don't create multiple threads for the same issue. Let's keep on working on your original thread here:
https://support.nagios.com/forum/viewto ... 62#p244162
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked