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
32
33
34
35
|
# File 'lib/checks/nginx.rb', line 6
def generate_checks(url)
[
{
:type => "application",
:vendor => "Nginx",
:product =>"Nginx",
:match_details =>"Nginx",
:version => nil,
:match_type => :content_headers,
:match_content => /server: nginx/i,
:dynamic_version => lambda { |x| (x,/server:(.*)/,["nginx","/"]) },
:examples => [
"https://api.appfire.com:443"
],
:paths => ["#{url}"]
},
{
:type => "application",
:vendor => "Nginx",
:product =>"Nginx",
:match_details =>"nginx default 404 page - TODO needs multiline",
:version => nil,
:match_type => :content_body,
:match_content => /<hr><center>nginx<\/center>/i,
:examples => [ "http://202.1.239.132:80" ],
:hide => true,
:paths => ["#{url}"]
}
]
end
|