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 . . . .
check_nrpe :connection refused by host
Re: check_nrpe :connection refused by host
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: check_nrpe :connection refused by host
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
[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
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.
Is there any routers/firewalls between the nagios server and the remote host.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: check_nrpe :connection refused by host
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:
and show us the output. Also, post the nsclient.log for a review.
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H <client ip>Be sure to check out our Knowledgebase for helpful articles and solutions!
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: check_nrpe :connection refused by host
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
[/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
Can you show us the "nsclient.log"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: check_nrpe :connection refused by host
Hi,
Please find attached the nsclient.log
Please find attached the nsclient.log
You do not have the required permissions to view the files attached to this post.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_nrpe :connection refused by host
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.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: check_nrpe :connection refused by host
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,
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,