CONNECTION REFUSED
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: CONNECTION REFUSED
You need to provide the file extension when changing the permissions like so:
chmod +x install.sh
Also, please run all of this from the actual /tmp/ directory not a custom created one, remove all of the current files you were working with and drop just the install.sh script, and the tarball together into the /tmp directory, then run it from there.
chmod +x install.sh
Also, please run all of this from the actual /tmp/ directory not a custom created one, remove all of the current files you were working with and drop just the install.sh script, and the tarball together into the /tmp directory, then run it from there.
-
brianweeks22
- Posts: 70
- Joined: Fri Dec 21, 2012 12:26 pm
Re: CONNECTION REFUSED
i was able to follow these instructions as well as yours and fully install NRPE...
http://askaralikhan.blogspot.com/2011/0 ... pe-on.html
but under /etc/nagios/nrpe.cfg i still just have
command[check_mem]=/usr/lib/nagios/plugins/contrib/check_mem.pl -u -w 90 -c 95
~
~
~
~
~
http://askaralikhan.blogspot.com/2011/0 ... pe-on.html
but under /etc/nagios/nrpe.cfg i still just have
command[check_mem]=/usr/lib/nagios/plugins/contrib/check_mem.pl -u -w 90 -c 95
~
~
~
~
~
-
brianweeks22
- Posts: 70
- Joined: Fri Dec 21, 2012 12:26 pm
Re: CONNECTION REFUSED
Sorry.. I did not see your last post as it was on page 3, until after I wrote my last post..
Would you like for me to still complete your last request (remove custom directories and do as you explained?)
Thanks
Would you like for me to still complete your last request (remove custom directories and do as you explained?)
Thanks
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: CONNECTION REFUSED
Yes following those instructions probably did not overwrite your NRPE.cfg file which is going to be the easiest way to create a new, functioning one, however I am going to just attach mine and remove somethings from it, simply replace your old NRPE.cfg file with mine and lets cross our fingers it works. You could still be missing some core things that nrpe requires if your NRPE.cfg file really had nothing in it from the start. I am assuming you may have created it to add a command definition.
Make sure that you add your Nagios, and remote server's IP's to the allowed_hosts section.
You will have to extract the nrpe.cfg file and place it in:
Also make sure it is readable and writable by the system.
Make sure that you add your Nagios, and remote server's IP's to the allowed_hosts section.
You will have to extract the nrpe.cfg file and place it in:
Code: Select all
/usr/local/nagios/etc/- Attachments
-
- nrpe.tar.gz
- (2.79 KiB) Downloaded 432 times
-
brianweeks22
- Posts: 70
- Joined: Fri Dec 21, 2012 12:26 pm
Re: CONNECTION REFUSED
replaced old nrpe.cfg with new file... added nagios server as well as 2 hosts IP addresses.. comma separated with no spaces..
exP 10.1.1.1, 10.1.1.2, 10.1.1.3
stopped/started nagios service
still saying connection refused./
i place the file (and replaced) inside of this directory on our server
/etc/nagios/nrpe.cfg
NOT /usr/loca/nagios/etc as this directory does not exist
Thanks
Brian
exP 10.1.1.1, 10.1.1.2, 10.1.1.3
stopped/started nagios service
still saying connection refused./
i place the file (and replaced) inside of this directory on our server
/etc/nagios/nrpe.cfg
NOT /usr/loca/nagios/etc as this directory does not exist
Thanks
Brian
-
brianweeks22
- Posts: 70
- Joined: Fri Dec 21, 2012 12:26 pm
Re: CONNECTION REFUSED
also, just some more information.. the CentOS 6 is the nagios server
I am attempting to check windows clients..
Thanks
I am attempting to check windows clients..
Thanks
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: CONNECTION REFUSED
If you installed from source you need to create the /etc directory under:
/usr/local/nagios/
And then place the config file in there, I think you may have installed Nagios from source and not completely finished the installation instructions for NRPE
.
/usr/local/nagios/
And then place the config file in there, I think you may have installed Nagios from source and not completely finished the installation instructions for NRPE
-
brianweeks22
- Posts: 70
- Joined: Fri Dec 21, 2012 12:26 pm
Re: CONNECTION REFUSED
so now under /usr/local/nagios i created a folder entitled etc
what all do i put under that folder?
Thanks
Edit:
what all do i put under that folder?
Thanks
Edit:
under /usr/local/nagios/etc i placed the new (modified w/IP addresses) nrpe.cfg
restarted xinetd as well as nagios
"connection refused"
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: CONNECTION REFUSED
So when you run the following pointed at your NSClient++ server:
You are now getting connection refused?
Have you used NRPE with any of your other host/service checks? I did not realize you had configured NRPE to run in xinetd and not daemonized. Edit the following and add your remote host to it as well:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H ip.of.the.remote.host.hereYou are now getting connection refused?
Have you used NRPE with any of your other host/service checks? I did not realize you had configured NRPE to run in xinetd and not daemonized. Edit the following and add your remote host to it as well:
Code: Select all
vi /etc/xinetd.d/nrpe-
brianweeks22
- Posts: 70
- Joined: Fri Dec 21, 2012 12:26 pm
Re: CONNECTION REFUSED
under /libexec there is no check_nrpe only check_mssql_health and check_proc_meminfo
I think we may have our problem?!
could you send me what I need to place under libexec?
(If that is the issue)
Thanks
I think we may have our problem?!
could you send me what I need to place under libexec?
(If that is the issue)
Thanks