Howdy, Stranger!

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

Advertise on LowEndTalk.com

Nagios issues - check_http not finding page that exists
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

Nagios issues - check_http not finding page that exists

NekkiNekki Moderator

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.

Here lies Nekki. He loved massive amounts of storage, K-Pop and calling people cunts.

Comments

  • @nekki Try specifying the vhost -H

    Thanked by 1Nekki
  • NekkiNekki Moderator

    @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.

    Here lies Nekki. He loved massive amounts of storage, K-Pop and calling people cunts.

Sign In or Register to comment.