6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/checks/google.rb', line 6
def generate_checks(url)
[
{
:type => "service",
:vendor => "Google",
:product => "Hosted",
:match_details => "Google Missing Page",
:match_type => :content_body,
:version => "",
:match_content => /The requested URL <code>\/<\/code> was not found on this server\./,
:hide => true,
:paths => ["#{url}"]
},
{
:type => "application",
:vendor => "Google",
:product =>"Search Appliance",
:match_details =>"server header reports google search appliance",
:version => nil,
:match_type => :content_headers,
:match_content => /server: Google Search Appliance/i,
:paths => ["#{url}"],
:examples => ["http://161.107.1.43:80"]
}
]
end
|