Page 1 of 1

Nagios XI VM does not work to monitor a Web Transaction

Posted: Wed Dec 18, 2013 3:16 pm
by LGaribay
Hi,
I created a new Web Transaction using the wizard on the online demo site which worked great. I downloaded the latest VM with Nagios XI and repeated the creation of the Web Transaction, but it did not work... any ideas?

Re: Nagios XI VM does not work to monitor a Web Transaction

Posted: Wed Dec 18, 2013 4:56 pm
by abrist
What is the error you receive and what is the full command?
Have you tried running the check from the cli?

Re: Nagios XI VM does not work to monitor a Web Transaction

Posted: Wed Dec 18, 2013 7:13 pm
by LGaribay
This is what I get on the VM:
Host Service Status Duration Attempt Last Check Status Information
api.compassion.com Public Country Image Monitoring Test Critical 1m 26s 1/5 2013-12-18 18:59:43 (null)

On the online demo I do get a successfull response.

CLI? command line?

Transaction I use is:

<testcases xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" repeat="1" xmlns="http://testharness.icdi.ci.org/">
<case
id="1"
description1="2002.001a PublicCountryMapService Legacy HappyPath: Legacy Country Code no default parameters, no hdrs"
method="get"
url="https://api.compassion.com/US/1/country ... =PH5990193"
verifyresponsecode="200"
logrequest="yes"
logresponse="yes"
addheader="Connection: Keep-Alive"
/>
</testcases>

Re: Nagios XI VM does not work to monitor a Web Transaction

Posted: Wed Dec 18, 2013 7:14 pm
by LGaribay
This is what I get on the online demo:

api.compassion.com Public Country Image Monitoring Test 2 Ok 5m 12s 1/5 2013-12-19 00:13:59 WebInject OK - All tests passed successfully in 0.577 seconds

Re: Nagios XI VM does not work to monitor a Web Transaction

Posted: Thu Dec 19, 2013 3:26 pm
by sreinhardt
I also do not have issues with this check on any test systems, including a stock 2.7 vm. Do you have any web proxies on your network between the XI vm and the api site? Also do you have dns properly setup so that api.compassion.com can resolve?

Code: Select all

nslookup api.compassion.com

Re: Nagios XI VM does not work to monitor a Web Transaction

Posted: Tue Dec 24, 2013 9:07 pm
by LGaribay
Hi Spenser and sorry for the late response, I did the nslookup and got this:
Server: 10.0.1.1
Address: 10.0.1.1#53

Non-authoritative answer:
Name: api.compassion.com
Address: 63.146.91.78

And on the web page:
Host Service Status Duration Attempt Last Check Status Information
api.compassion.com Public Country Image Monitoring Test Critical 18m 32s 1/5 2013-12-24 21:01:43 (null)

I don't know if to monitor https web transactions I need to setup something else on Nagios.

Please advise,

Thanks

Luis

Re: Nagios XI VM does not work to monitor a Web Transaction

Posted: Thu Dec 26, 2013 10:14 am
by slansing
It almost sounds like you have some internal routing or proxy issues since you can test this against your site from our online demo just fine. Do you know anything about this?

Re: Nagios XI VM does not work to monitor a Web Transaction

Posted: Thu Dec 26, 2013 2:35 pm
by LGaribay
No I don't, how do you have your VM setup (vm settings)? Network adapter is "Bridged"...

Re: Nagios XI VM does not work to monitor a Web Transaction

Posted: Thu Dec 26, 2013 2:52 pm
by slansing
Well bridged is fine, you can reach out into your network that way. Can you run the following:

Code: Select all

nmap -p 80,443 <address of site you are trying to reach>