From: Natasha S. <ste...@li...> - 2009-09-21 17:08:30
|
> > > > > On 17/Sep/2009 12:20 Natasha Stephan > > > > > <ste...@li...> wrote .. > > > > > > [snip] > > > > > > I want to set up a monitor to check whether L's webserver > > > > > > (not Apache) is up. > > > > > > I can go to the console on either D or L, open a browser, > > > > > > and get to the website on L. I can SSH in to D or L, open > > > > > > links, and get to the website on L. But when I go into > > > > > > System and Server Status and set up a Remote HTTP > > > > > > Service monitor, I can only monitor L's website from L. An > > > > > > HTTP (HEAD, GET, or POST) request from D does not find > > > > > > L's website. > > > > > > [snip] > > > > > > I'm thinking there's something different about a HTTP > > > > > > request via the browser than an HTTP request via > > > > > > Webmin > System and Server Status > Remote HTTP > > > > > > Service. Can anyone confirm or deny? > > > > On 9/18/2009, Jamie Cameron > > > > [mailto:jca...@we...] wrote: > > > > > One thing to check is if you have any proxy setup in Webmin > > > > > on D .. this is set at Webmin -> Webmin Configuration -> > > > > > Proxy Servers and Downloads. If so, you may want to turn > > > > > this off or configure it to not use a proxy for L. > > > > > Also, if you go to System and Server Status on D and click on > > > > > the HTTP monitor, what error is shown in the "Current > > > > > status" field? > > > On 18/Sep/2009 08:21 Natasha Stephan > > > <ste...@li...> wrote .. > > > > [snip] > > > > In answer to your question, though, there is no proxying set > > > > up on D. I triple-checked, even though I knew I hadn't entered > > > > anything there. I should give you more information than just > > > > "the servers are in different locations", though. D and L are > > > > in different VLANs. Just as Webmin on D can't do an HTTP > > > > request and find L's website, Webmin on L can't do an HTTP > > > > request and find a website in the same VLAN as D. Not just a > > > > scheduled request, either. If I set up D to monitor L's > > > > website, or L to monitor that other website in D's VLAN, > > > > "Current status" shows Down (the red X). But I can get to > > > > everybody's websites with a browser (Firefox or Links) on > > > > anybody... which is why I was wondering what was different > > > > about an HTTP request from Webmin. An HTTP request from > > > > Webmin will only go through from L to L; as soon as I cross > > > > our firewall appliance, I have trouble. > > > > [snip] > > > On 9/18/2009, Jamie Cameron [mailto:jca...@we...] wrote: > > > Ok, so a proxy likely isn't the cause .. > > > Did you check the System and Server Status module as I mentioned > > > above? It should show a more detailed error message about why > > > the monitor is failing. > > > Also, try running the following command on D : > > > wget -O - http://L/ > > > To see if you can fetch a URL from the command line. > On 18/Sep/2009 13:39 Natasha Stephan <ste...@li...> > wrote .. > > Thanks. Sorry for not being clear, I did look at System and > > Server Status. All it says if you click on the monitor, next to > > Current Status, is "Down". If you look at the list of monitors, > > you see a red X. > > And wget is a great idea! Here is its output on D, when trying > > to go to L: > > [root@D 12.5]# wget http://L > > --15:00:22-- http://L/ > > => `index.html.1' > > Resolving L... [L's internal IP] > > Connecting to L|internalIP|:80... connected. > > HTTP request sent, awaiting response... 200 OK > > [snip] > > Given the "OK", I guess I can indeed fetch a URL from the command > > line. If I run wget -O (and name a path and file), I can get a > > copy of the homepage on L. Doing the same, only going from L > > to the website in the same VLAN as D, also works. On 9/18/2009, Jamie Cameron [mailto:jca...@we...] wrote: > It's odd that wget works, but Webmin doesn't. > If you go to the Upload and Download module on D and use it to > fetch a URL from L, does that work OK? Yes. If I download a known URL on L from Upload and Download, it works on D and L just the same. I tried that same URL in System and Server status as a Remote HTTP Service monitor, and it works on L but not on D. I looked at our firewall/routing appliance to see if there were any helpful errors, but found nothing... which may simply show my ignorance of that device. Thanks, Natasha |