line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Nagios::Plugin::CheckHost::Node; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
88234
|
use strict; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
64
|
|
4
|
3
|
|
|
3
|
|
9
|
use warnings; |
|
3
|
|
|
|
|
2
|
|
|
3
|
|
|
|
|
417
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
7
|
|
|
7
|
0
|
324
|
my ($class, $id, $location) = @_; |
8
|
7
|
|
|
|
|
33
|
bless { |
9
|
|
|
|
|
|
|
id => $id, |
10
|
|
|
|
|
|
|
country => $location->[0], |
11
|
|
|
|
|
|
|
city => $location->[1], |
12
|
|
|
|
|
|
|
}, $class; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub identifier { |
16
|
|
|
|
|
|
|
$_[0]->{id} |
17
|
80
|
|
|
80
|
0
|
2603
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub city { |
20
|
|
|
|
|
|
|
$_[0]->{city} |
21
|
1
|
|
|
1
|
0
|
3
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub country { |
24
|
|
|
|
|
|
|
$_[0]->{country} |
25
|
32
|
|
|
32
|
0
|
47
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub shortname { |
28
|
31
|
|
|
31
|
0
|
43
|
sprintf("%s_%s", $_[0]->country, $_[0]->identifier); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |