Page 2 of 3
Re: URL monitoring issue
Posted: Tue Feb 12, 2019 12:17 pm
by npolovenko
@RIDS_I2MP, Please replace your nsclient.ini file with the one I attached, restart the NSCLient service from the windows services menu to reload changes and try running the query one more time.
nsclient.ini
Re: URL monitoring issue
Posted: Wed Feb 13, 2019 2:16 am
by RIDS_I2MP
Hello,
I have replaces nsc.ini with the one you provided and restarted the service, getting the below error now:
[nagios@eu2napu002 libexec]$ /usr/local/nagios/libexec/check_nrpe -H 10.148.141.197 -c check_http
The command (check_http) returned an invalid return code: -1
[nagios@eu2napu002 libexec]$
Re: URL monitoring issue
Posted: Wed Feb 13, 2019 1:38 pm
by npolovenko
@RIDS_I2MP, Please find this line in the nsclient.ini file:
And delete 1 from the end. Then restart the nsclient service and try one more time.
Re: URL monitoring issue
Posted: Thu Feb 14, 2019 1:40 am
by RIDS_I2MP
Hello,
I have made the changes as per your suggestion and restarted the service, but getting the same error.
[nagios@eu2napu002 libexec]$ /usr/local/nagios/libexec/check_nrpe -H 10.148.141.197 -c check_http
The command (check_http) returned an invalid return code: -1
[nagios@eu2napu002 libexec]$
[nagios@eu2napu002 libexec]$ /usr/local/nagios/libexec/check_nrpe -H 10.148.141.197 -c check_http
http://merch.ricoh-ecommerce-utility.com/atg/bcc
The command (check_http) returned an invalid return code: -1
[nagios@eu2napu002 libexec]$
PFA the nsc.ini file for your reference.
Re: URL monitoring issue
Posted: Thu Feb 14, 2019 1:35 pm
by npolovenko
@RIDS_I2MP, Can you open the CMD console on the windows server, cd into the NSClient folder, then into scripts folder and run the .exe script:
Untitled.png
Try a few combinations like:
And show me the output.
Try to find out which combination works in console.
Re: URL monitoring issue
Posted: Mon Feb 18, 2019 1:22 am
by RIDS_I2MP
Hello,
Tried below combinations:
check_http_nrpe.exe
www.merch.ricoh-ecommerce-utility.com /atg/bcc
check_http_nrpe.exe
http://www.merch.ricoh-ecommerce-utility.com
check_http_nrpe.exe
http://www.merch.ricoh-ecommerce-utility.com 1
check_http_nrpe.exe
http://merch.ricoh-ecommerce-utility.com/atg/bcc
check_http_nrpe.exe
http://merch.ricoh-ecommerce-utility.com/atg/bcc 1
We are getting the error as:
UNKNOWN - The host could not be resolved.
I am attaching the screen shot here.
Re: URL monitoring issue
Posted: Mon Feb 18, 2019 12:43 pm
by npolovenko
@RIDS_I2MP, Can you open the CMD console again, run this command and show me the output:
Re: URL monitoring issue
Posted: Tue Feb 19, 2019 12:31 am
by RIDS_I2MP
Hi,
PFA the output.
Re: URL monitoring issue
Posted: Tue Feb 19, 2019 2:43 pm
by npolovenko
@RIDS_I2MP, Looks like the nsclookup hits the DNS but it's not able to resolve the domain. You can try running the nsclookup without http and www, but if the DNS still can't reach the domain you'd need to resolve that first.
Code: Select all
nslookup merch.ricoh-ecommerce-utility.com
Re: URL monitoring issue
Posted: Tue Feb 19, 2019 3:42 pm
by SteveBeauchemin
Interesting dilemma
If the Terminal servers can access the host where the web test needs to work, but the DNS name does not work, there is a way around that.
You need to be able to run the command from the CMD prompt before you can get it working remotely. So, try this for the DNS issue.
Add entries to the terminal server host file.
On MS systems, look in C:\Windows\System32\drivers\etc
The hosts file there can be edited using notepad via an Admin account.
Add lines like this but using the actual IP address to the end of the hosts file.
Code: Select all
10.10.10.1 www3.merch.ricoh-ecommerce-utility.com
10.10.10.2 merch.ricoh-ecommerce-utility.com
The system will use the host file and no longer rely on DNS.
Just a suggestion to get you to a better place.
Steve B