6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/checks/mikrotik.rb', line 6
def generate_checks(url)
[
{
:type => "other",
:vendor =>"Mikrotik",
:product =>"RouterOS",
:match_details => "page title",
:match_type => :content_body,
:match_content => /<title>RouterOS router configuration page/,
:version => nil,
:dynamic_version => lambda { |x| _first_body_capture(x,/<h1>RouterOS v(.*?)<\/h1>/) },
:examples => ["http://91.211.58.34:80"],
:verify => ["aWJtI0ludHJpZ3VlOjpFbnRpdHk6OlVyaSNodHRwOi8vOTEuMjExLjU4LjM0Ojgw"],
:paths => ["#{url}"]
}
]
end
|