line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package # hidden from cpan |
2
|
|
|
|
|
|
|
Monitoring::Generator::TestConfig::P1Data; |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
17
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
89
|
|
5
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
261
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
######################################## |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=over 4 |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=item get_p1_script |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
returns the p1 script source |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
adapted from the nagios debian package |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=back |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=cut |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub get_p1_script { |
22
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
23
|
1
|
|
|
|
|
2
|
our $scriptsource; |
24
|
1
|
50
|
|
|
|
3
|
if(!defined $scriptsource) { |
25
|
1
|
|
|
|
|
2
|
$scriptsource = do { local $/; }; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
41
|
|
26
|
|
|
|
|
|
|
} |
27
|
1
|
|
|
|
|
6
|
return($scriptsource); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__DATA__ |