Page 2 of 2
Re: check_nrpe :connection refused by host
Posted: Thu Apr 10, 2014 10:14 am
by abrist
Is the nsclient service running? Have you restarted the client since making other changes in this thread.
Your connection output does not report anything listening on 5666 . . . .
Re: check_nrpe :connection refused by host
Posted: Thu Apr 10, 2014 10:24 am
by Frédéric GRANAT
Yes, I've just restarted nsclient and nmap still gives the same output.
[root@nagiosxi services]# nmap w2k8-srvbackup -p 5666
Starting Nmap 5.51 (
http://nmap.org ) at 2014-04-10 17:23 CEST
Nmap scan report for w2k8-srvbackup (172.16.6.10)
Host is up (0.00033s latency).
rDNS record for 172.16.6.10: w2k8-srvbackup.cg.ahp
PORT STATE SERVICE
5666/tcp closed nrpe
MAC Address: 00:19:BB:CC:EB:94 (Hewlett Packard)
Nmap done: 1 IP address (1 host up) scanned in 0.13 seconds
Re: check_nrpe :connection refused by host
Posted: Thu Apr 10, 2014 11:05 am
by abrist
Is the nsclient.ini file in your first post complete? If so, it is much shorter than it should be.
Is there any routers/firewalls between the nagios server and the remote host.
Re: check_nrpe :connection refused by host
Posted: Thu Apr 10, 2014 11:08 am
by lmiltchev
I haven't tried this particular version of NSClient++ and I am not sure how "unmodified" nsclient.ini file looks like, but I believe the "port = 5666" should be in the NRPE section, not in the external scripts' section. Anyway, run the following command on the Nagios server:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H <client ip>
and show us the output. Also, post the nsclient.log for a review.
Re: check_nrpe :connection refused by host
Posted: Fri Apr 11, 2014 6:47 am
by Frédéric GRANAT
I modified my nsclient.ini and restart my nsclient++
[/settings/NRPE/server]
;# NRPE PORT NUMBER
; This is the port the NRPEListener.dll will listen to.
port = 5666
;
;# COMMAND ARGUMENT PROCESSING
; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed.
allow arguments = true
;
;# COMMAND ALLOW NASTY META CHARS
; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow nasty characters = true
/usr/local/nagios/libexec/check_nrpe -H server
Connection refused by host
Re: check_nrpe :connection refused by host
Posted: Fri Apr 11, 2014 10:40 am
by lmiltchev
Can you show us the "nsclient.log"?
Re: check_nrpe :connection refused by host
Posted: Mon Apr 14, 2014 2:29 am
by Frédéric GRANAT
Hi,
Please find attached the nsclient.log
Re: check_nrpe :connection refused by host
Posted: Mon Apr 14, 2014 10:12 am
by slansing
Looks like you may have assigned a group of services to this host thinking that you already had the checks defined, you are missing a great deal of definitions and likely the custom plugins that go with them. If you did copy your services over it is likely that you set this up in the past and you could copy the plugins and configuration definitions over into this server. I know we have covered this in the past with you, specifically with NRPE based definition issues, it should be no different.
Re: check_nrpe :connection refused by host
Posted: Tue Apr 15, 2014 9:38 am
by Frédéric GRANAT
Hi,
I've just learned that we're giving up the backup using Backup exec so monitoring is no more needed.
You can close the topic.
Thanks,