CentOS 5.5 client install problem
CentOS 5.5 client install problem
Hello,
So I followed the instructions to install the CentOS monitoring agent on my machine. I've done this several times now successfully. When I ran the install this time, it appeared to install just fine with no errors. However when I try to connect to it using NagiosXI, I'm getting a successful ping but everything else says connection refused or timed out.
Please help.
So I followed the instructions to install the CentOS monitoring agent on my machine. I've done this several times now successfully. When I ran the install this time, it appeared to install just fine with no errors. However when I try to connect to it using NagiosXI, I'm getting a successful ping but everything else says connection refused or timed out.
Please help.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CentOS 5.5 client install problem
This may have not not installed successfully
to test from the Nagios XI machine run
you should see
If not, back on the client run
If this goes without error, re-run the agent installer
to test from the Nagios XI machine run
Code: Select all
cd /usr/local/nagios/libexec
./check_nrpe -H <client_machine_IP>Code: Select all
NRPE v2.12Code: Select all
yum -y install autoconf gcc glibc libmcrypt-devel make openssl-devel perl-Net-SMTP-TLS sudo sysstat xinetdRe: CentOS 5.5 client install problem
Well Scott, I got to give you an A for effort but no luck. I wasnt able to connect from the NagiosXI box to the client machine 192.168.1.41 running:
cd /usr/local/nagios/libexec
./check_nrpe -H 192.168.1.41
I got the same error as within NagiosXI which is connection refused or timed out. Keep in mind I can ping this machine within NagiosXI.
So I ran:
yum -y install autoconf gcc glibc libmcrypt-devel make openssl-devel perl-Net-SMTP-TLS sudo sysstat xinetd
and it ran fine without any errors, updated whatever it needed to and was happy.
Then I re-ran the install and it ran without errors, but in the end I get the same results.....
Connection refused or timed out.
Please also keep in mind you've helped me on CentOS earlier and because of that I've been able to monitor several other machines. So I somewhat know what I'm doing.
Thank you again for all your hard work. Now what's next?
cd /usr/local/nagios/libexec
./check_nrpe -H 192.168.1.41
I got the same error as within NagiosXI which is connection refused or timed out. Keep in mind I can ping this machine within NagiosXI.
So I ran:
yum -y install autoconf gcc glibc libmcrypt-devel make openssl-devel perl-Net-SMTP-TLS sudo sysstat xinetd
and it ran fine without any errors, updated whatever it needed to and was happy.
Then I re-ran the install and it ran without errors, but in the end I get the same results.....
Connection refused or timed out.
Please also keep in mind you've helped me on CentOS earlier and because of that I've been able to monitor several other machines. So I somewhat know what I'm doing.
Thank you again for all your hard work. Now what's next?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CentOS 5.5 client install problem
Ok, on the client lets run
You should get
If so, it is listening, which is good. Then from the XI server site we need to see if we can reach the client
If that goes ok, lets try to telnet to it
Code: Select all
cd /usr/local/nagios/libexec
./check_nrpe -H localhostCode: Select all
CHECK_NRPE: Error - Could not complete SSL handshake.Code: Select all
ping 192.168.1.41Code: Select all
telnet 192.168.1.41 5667Re: CentOS 5.5 client install problem
I have always been able to ping from the XI box to 192.168.1.41 in SSH and in XI.
When I run:
cd /usr/local/nagios/libexec
./check_nrpe -H localhost
I get:
[root@web2 linux-nrpe-agent]# cd /usr/local/nagios/libexec
[root@web2 libexec]# ./check_nrpe -H localhost
CHECK_NRPE: Socket timeout after 10 seconds.
[root@web2 libexec]#
So that's a little different than what you were expecting.
Also I'm not able to get telnet working on from the XI box in putty. Below is what I get:
[root@localhost ~]# ping 192.168.1.41
PING 192.168.1.41 (192.168.1.41) 56(84) bytes of data.
64 bytes from 192.168.1.41: icmp_seq=1 ttl=64 time=0.382 ms
64 bytes from 192.168.1.41: icmp_seq=2 ttl=64 time=0.381 ms
64 bytes from 192.168.1.41: icmp_seq=3 ttl=64 time=0.392 ms
^C
--- 192.168.1.41 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2362ms
rtt min/avg/max/mdev = 0.381/0.385/0.392/0.005 ms
[root@localhost ~]# telent 192.168.1.41 5667
-bash: telent: command not found
[root@localhost ~]# telnet
telnet> 192.168.1.41 5667
?Invalid command
telnet> 192.168.1.41
?Invalid command
telnet> 192.168.1.41 5667
?Invalid command
When I run:
cd /usr/local/nagios/libexec
./check_nrpe -H localhost
I get:
[root@web2 linux-nrpe-agent]# cd /usr/local/nagios/libexec
[root@web2 libexec]# ./check_nrpe -H localhost
CHECK_NRPE: Socket timeout after 10 seconds.
[root@web2 libexec]#
So that's a little different than what you were expecting.
Also I'm not able to get telnet working on from the XI box in putty. Below is what I get:
[root@localhost ~]# ping 192.168.1.41
PING 192.168.1.41 (192.168.1.41) 56(84) bytes of data.
64 bytes from 192.168.1.41: icmp_seq=1 ttl=64 time=0.382 ms
64 bytes from 192.168.1.41: icmp_seq=2 ttl=64 time=0.381 ms
64 bytes from 192.168.1.41: icmp_seq=3 ttl=64 time=0.392 ms
^C
--- 192.168.1.41 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2362ms
rtt min/avg/max/mdev = 0.381/0.385/0.392/0.005 ms
[root@localhost ~]# telent 192.168.1.41 5667
-bash: telent: command not found
[root@localhost ~]# telnet
telnet> 192.168.1.41 5667
?Invalid command
telnet> 192.168.1.41
?Invalid command
telnet> 192.168.1.41 5667
?Invalid command
Re: CentOS 5.5 client install problem
Ok sorry but I mistyped TELNET on the XI box in putty.
Here is what happens when I TELNET from XI in putty to 192.168.1.41 5667
[root@localhost ~]# telnet 192.168.1.41 5667
Trying 192.168.1.41...
telnet: connect to address 192.168.1.41: No route to host
[root@localhost ~]#
Here is what happens when I TELNET from XI in putty to 192.168.1.41 5667
[root@localhost ~]# telnet 192.168.1.41 5667
Trying 192.168.1.41...
telnet: connect to address 192.168.1.41: No route to host
[root@localhost ~]#
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CentOS 5.5 client install problem
This looks like nrpe isn't runningmdzx111 wrote:When I run:
cd /usr/local/nagios/libexec
./check_nrpe -H localhost
I get:
[root@web2 linux-nrpe-agent]# cd /usr/local/nagios/libexec
[root@web2 libexec]# ./check_nrpe -H localhost
CHECK_NRPE: Socket timeout after 10 seconds.
Can we restart xinetd
Code: Select all
service xinetd restartCode: Select all
ls -l /usr/local/nagios/bin/nrpeRe: CentOS 5.5 client install problem
Ok so its all working now. Firewall was running as part of the problem and has been turned off.
This one is close. Now if we can only get other Ubuntu machines going, we'll be all set.
Thank you again!
This one is close. Now if we can only get other Ubuntu machines going, we'll be all set.
Thank you again!