Xymon Mailing List Archive search

test for absence of http service

3 messages in this thread

list John D. Alexander · Wed, 19 Mar 2014 19:18:32 +0000 ·
I would like to test for the absence of the http service on a system and alert if it responds to http.

This is easy with most of the other network tests using a negation (!).    Ideas?


John Alexander
Network Administrator
user-43e31ec8d822@xymon.invalid<mailto:user-43e31ec8d822@xymon.invalid>
Feeney Wireless, LLC  - PO Box 2549, Eugene, Oregon 97402
(Free) XXX-XXX-XXXX   (P) XXX-XXX-XXXX     (F) XXX-XXX-XXXX
www.feeneywireless.com<http://www.feeneywireless.com/>;
[FW_Acronym_email]<http://feeneywireless.com/>;
This email transmission is intended only for the addressee shown above. It may contain information that is privileged, confidential or otherwise protected from disclosure. Any review, dissemination or use of this transmission or its contents by persons other than the addressee is strictly prohibited! If you have received this email transmission in error please notify us immediately.
list Colin Coe · Thu, 20 Mar 2014 06:15:46 +0800 ·
I may be reading the question wrong but why not test for port 80 or 443?

CC

On Thu, Mar 20, 2014 at 3:18 AM, John D. Alexander <
quoted from John D. Alexander
user-9a0964743c57@xymon.invalid> wrote:
 I would like to test for the absence of the http service on a system and
alert if it responds to http.


This is easy with most of the other network tests using a negation (!).
Ideas?


*John Alexander*
Network Administrator

*user-43e31ec8d822@xymon.invalid <user-43e31ec8d822@xymon.invalid>*
quoted from John D. Alexander
Feeney Wireless, LLC  - PO Box 2549, Eugene, Oregon 97402

(Free) XXX-XXX-XXXX   (P) XXX-XXX-XXXX     (F) XXX-XXX-XXXX

*www.feeneywireless.com* <http://www.feeneywireless.com/>;

[image: FW_Acronym_email] <http://feeneywireless.com/>;
quoted from John D. Alexander

This email transmission is intended only for the addressee shown above. It
may contain information that is privileged, confidential or otherwise
protected from disclosure. Any review, dissemination or use of this
transmission or its contents by persons other than the addressee is
strictly prohibited! If you have received this email transmission in error
please notify us immediately.

-- 

RHCE#805007969328369
list Henrik Størner · Thu, 20 Mar 2014 06:46:54 +0100 ·
quoted from John D. Alexander
Den 19-03-2014 20:18, John D. Alexander skrev:
I would like to test for the absence of the http service on a system and
alert if it responds to http.

This is easy with most of the other network tests using a negation
(!).    Ideas?
Tests beginning with "http" in hosts.cfg are assumed to be web tests, so 
what you can do is to define another test for just port 80 in 
protocols.cfg, e.g.

	[web]
		port 80
		
and then in hosts.cfg you'll have

	10.0.0.1	myhost	# !web


Regards,
Henrik