Xymon Mailing List Archive search

http test on switches - fail

2 messages in this thread

list Chuck Morrison · Wed, 24 Aug 2005 16:36:55 -0600 ·
Hi all,

I've set up hobbit (4.1.1) to check for http, conn and ssh on some switches, but the results have been mixed. All the switches have web interfaces and I can get to each of them via any browser.

Some of the lower end switches don't appear to send any identifying information back to the hobbit server. For these switches Hobbit shows a time for the http connection and graphs it, but shows red and no identifying info. Hobbit shows a time, graph and green for the high end switches that return some info about the http server used.

Is there a way to flag this http test so it doesn't go red if it doesn't receive anything but a connection time ? Or am I misunderstanding how this works ?

Chuck Morrison
list Henrik Størner · Wed, 28 Sep 2005 10:40:26 +0000 (UTC) ·
quoted from Chuck Morrison
In <user-dd899b37cb88@xymon.invalid> Chuck Morrison <user-68b3bf62662d@xymon.invalid> writes:
I've set up hobbit (4.1.1) to check for http, conn and ssh on some 
switches, but the results have been mixed. All the switches have web 
interfaces and I can get to each of them via any browser.
It would be interesting to know exactly what goes on in the communication
between Hobbit and the switch. Any chance that you could run tcpdump
and capture the traffic between Hobbit and one of these switches ?
(Please make sure to get the full data packet - e.g. with tcpdump you'll
need to use "-s 1514" to pick up the entire data packet and not just the
headers).
quoted from Chuck Morrison
Is there a way to flag this http test so it doesn't go red if it doesn't 
receive anything but a connection time ? Or am I misunderstanding how 
this works ?
You could define a custom tcp test that just checks if the port is open.
Eg put this in the ~hobbit/server/etc/bb-services file:

  [web]
      port 80
      send "GET / HTTP/1.0\r\n\r\n"
      options banner

Then instead of the "http://...."; in bb-hosts, just put the word "web".
That will make Hobbit connect to the port, send a plain HTTP 1.0 request,
and if any response comes back it will show up on the status page - 
but it doesn't require any.


Henrik