Nagios XI VM does not work to monitor a Web Transaction

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
LGaribay
Posts: 5
Joined: Wed Dec 18, 2013 3:08 pm

Nagios XI VM does not work to monitor a Web Transaction

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

What is the error you receive and what is the full command?
Have you tried running the check from the cli?
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.
LGaribay
Posts: 5
Joined: Wed Dec 18, 2013 3:08 pm

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

Post 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>
LGaribay
Posts: 5
Joined: Wed Dec 18, 2013 3:08 pm

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

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

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

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
LGaribay
Posts: 5
Joined: Wed Dec 18, 2013 3:08 pm

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

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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?
LGaribay
Posts: 5
Joined: Wed Dec 18, 2013 3:08 pm

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

Post by LGaribay »

No I don't, how do you have your VM setup (vm settings)? Network adapter is "Bridged"...
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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>
Locked