20 Mar
2014
20 Mar
'14
5:46 a.m.
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