Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Nagios issues - check_http not finding page that exists
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Nagios issues - check_http not finding page that exists

NekkiNekki Veteran

I'm having some difficulty getting Nagios to monitor a couple of websites.

The sites are running on IIS7.5, and all the pages load and have correct content when viewed in a browser (including Lynx from the Nagios server itself), but the Nagios checks either come back as 302-moved or 404-not found. The checks are just basic 'there or not' tests.

Example test string:

check_http!-u /path/to/content -v -w7 -c15 -t30

I've tried switching user agents to see if anything funky is going on there, but I have the same issue whether I have Nagios identify itself as check_http or as any number of browsers.

I'm pretty sure this is an IIS specific issue, but I can't work out why why Nagios tests different content it returned compared to when the same URL is viewed in a browser.

Any ideas gratefully received.

Comments

  • @nekki Try specifying the vhost -H

    Thanked by 1Nekki
  • @tchen I solved the issue yesterday, but that was exactly the issue, thanks. There's some funky site binding going on with lots of sites bound to different ports on the same main IP, specifying -i was sending everything to the site on port 80 and failing to pick up the ports.

Sign In or Register to comment.