Xymon Mailing List Archive search

entries in bb-services

2 messages in this thread

list Christian Rehberger · Tue, 17 Oct 2006 07:34:39 +0200 ·
Hi all,

I want to check the cupsd and tomcat with entries in the bb-services file, but it doesn't works :-(

Who can tell me how the checks works exactly?

For the cupsd I'm using the entry:

[cupsd]
   send "GET /printers\r\n"
   expect "HTTP/0.9 200 OK"
   port 631

The cupsd delivers a wrong answer. What is meant by the send string?
Is it a telnet connection or how can I check the send end expect on the shell?

The tomcat is best checked with the shell command:

wget http://localhost:8080 | grep "200 OK"

Is there a possibility to put something like that in the bb-services file?

Thanks a lot

Chris

-- 
Christian Rehberger
System Consultant · OCLC PICA GmbH
Grünwalder Weg 28g · 82041 Oberhaching · Germany
t +49-(0)89-61308 333 · f +49-(0)89-61308 399 e user-612b35aa5f4b@xymon.invalid · w http://www.oclcpica.org
list Henrik Størner · Tue, 17 Oct 2006 07:46:40 +0200 ·
quoted from Christian Rehberger
On Tue, Oct 17, 2006 at 07:34:39AM +0200, Christian Rehberger wrote:
I want to check the cupsd and tomcat with entries in the bb-services 
file, but it doesn't works :-(
Both of these provide web (HTTP) interfaces, so you really should be
checking them with the standard http test.

I.e. for your print server, you'd use something like

  10.0.0.1 print.foo.com # http://print.foo.com:631/printers

This puts the status in an "http" column which may seem a bit odd. 
If you want it to show up in a "cupsd" column, you'll have to make it an
http "content" check, like

  10.0.0.1 print.foo.com # cont=cupsd;http://print.foo.com:631/printers;.


For Tomcat, just use a plain http test:

  10.0.0.1 tomcat.foo.com # http://tomcat.foo.com:8080/


Regards,
Henrik