URL monitoring issue
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: URL monitoring issue
@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.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: URL monitoring issue
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]$
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]$
Thanks & Regards,
I2MP Team.
I2MP Team.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: URL monitoring issue
@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.check_http = scripts\check_http_nrpe.exe http://www.merch.ricoh-ecommerce-utility.com /atg/bcc 1
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: URL monitoring issue
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.
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.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
I2MP Team.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: URL monitoring issue
@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:
Try a few combinations like:
Try to find out which combination works in console.
And show me the output.check_http_nrpe.exe www.merch.ricoh-ecommerce-utility.com /atg/bcc
check_http_nrpe.exe www.merch.ricoh-ecommerce-utility.com
check_http_nrpe.exe www.merch.ricoh-ecommerce-utility.com 1
Try to find out which combination works in console.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: URL monitoring issue
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.
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.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
I2MP Team.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: URL monitoring issue
@RIDS_I2MP, Can you open the CMD console again, run this command and show me the output:
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: URL monitoring issue
Hi,
PFA the output.
PFA the output.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
I2MP Team.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: URL monitoring issue
@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.comAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
SteveBeauchemin
- Posts: 524
- Joined: Mon Oct 14, 2013 7:19 pm
Re: URL monitoring issue
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.
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
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.comJust a suggestion to get you to a better place.
Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1