Xymon Mailing List Archive search

test for absence of http service

list Henrik Størner
Thu, 20 Mar 2014 06:46:54 +0100
Message-Id: <user-2802398b7b01@xymon.invalid>

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