t/Asnmtap/Plugins/Nagios.t

filter: Statementstmt 100% 282 / 282 Branchbran 50.0% 92 / 184 Conditioncond 33.3% 16 / 48 MC/DCmcdc 0.0% 0 / 20 Subroutinesub 100% 12 / 12 Podpod n/a totaltotal 73.6% 402 / 546 CC 1 SCAR 0.0
CC
1
Cov
76%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« t/Templates/Plugins/WebTransact/check_template-WebTransact.t ↑ Summary t/Asnmtap/Plugins.t »
1 1 ▶use Test::More tests => 102;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 1 ▶BEGIN { require_ok ( 'ASNMTAP::Asnmtap::Plugins::Nagios' ) };
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶BEGIN { use_ok ( 'ASNMTAP::Asnmtap::Plugins::Nagios' ) };
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶BEGIN { use_ok ( 'ASNMTAP::Asnmtap::Plugins::Nagios', qw(:COMMANDS) ) };
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶BEGIN { use_ok ( 'ASNMTAP::Asnmtap::Plugins::Nagios', qw(:ALL) ) };
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶BEGIN { use_ok ( 'ASNMTAP::Asnmtap::Plugins::Nagios', qw(:NAGIOS %ERRORS %STATE %TYPE) ) };
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 TODO: {
11 1 $ENV{ASNMTAP_PROXY} = "username:password\@server";
12  
13 1 my $objectNagios = ASNMTAP::Asnmtap::Plugins::Nagios->new (
14 _programName => 'Nagios.t',
15 _programDescription => 'Test ASNMTAP::Asnmtap::Plugins::Nagios',
16 _programVersion => '3.002.003',
17 _programUsagePrefix => '[--commandLineOption]',
18 _programHelpPrefix => '--commandLineOption ...',
19 _programGetOptions => ['commandLineOption=s', 'host|H:s', 'url|U:s', 'port|P:i', 'password|p|passwd:s', 'username|u|loginname:s', 'community|C:s', 'timeout|t:i', 'trendline|T:i', 'environment|e:s', 'proxy:s'],
20 _SSLversion => 23,
21 _clientCertificate => { certFile => 'ssl/crt/alex-peeters.crt',
22 keyFile => 'ssl/key/alex-peeters-nopass.key',
23 caFile => 'CA CERT PEER VERIFICATION FILE',
24 caDir => 'CA CERT PEER VERIFICATION DIR',
25 pkcs12File => 'CLIENT PKCS12 CERT SUPPORT FILE',
26 pkcs12Password => 'CLIENT PKCS12 CERT SUPPORT PASSWORD'},
27 _timeout => 30,
28 _debug => 0);
29  
30 1 isa_ok( $objectNagios, 'ASNMTAP::Asnmtap::Plugins::Nagios' );
31 1 can_ok( $objectNagios, qw(programName programDescription programVersion getOptionsArgv getOptionsValue debug dumpData printRevision printRevision printUsage printHelp) );
32 1 can_ok( $objectNagios, qw(appendPerformanceData browseragent SSLversion clientCertificate pluginValue pluginValues proxy timeout setEndTime_and_getResponsTime write_debugfile call_system exit) );
33  
34 1 my ($returnCode, $errorStatus, $status, $stdout, $stderr);
35  
36 1 ▶ $returnCode = $objectNagios->browseragent () eq 'Mozilla/5.0 (compatible; ASNMTAP; U; ASNMTAP 3.002.003 postfix; nl-BE; rv:3.002.003) Gecko/yyyymmdd libwww-perl/5.813' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->browseragent eq 'Mozilla/5.0 (compatible; ASNMTAP; U; ASNMTAP 3.002.003 postfix; nl-BE; rv:3.002.003) Gecko/yyyymmdd libwww-perl/5.813' ? : 1 0 1
37 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::browseragent(): get');
38  
39 1 ▶ $returnCode = $objectNagios->browseragent ( 'Mozilla/4.7' ) eq 'Mozilla/4.7' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->browseragent('Mozilla/4.7') eq 'Mozilla/4.7' ? : 1 0 1
40 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::browseragent(): set');
41  
42  
43 1 ▶ $returnCode = $objectNagios->SSLversion ( 2 ) == 2 ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->SSLversion(2) == 2 ? : 1 0 1
44 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::SSLversion(): set 2');
45  
46 1 ▶ $returnCode = $objectNagios->SSLversion ( 3 ) == 3 ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->SSLversion(3) == 3 ? : 1 0 1
47 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::SSLversion(): set 3');
48  
49 1 ▶ $returnCode = $objectNagios->SSLversion ( 23 ) == 23 ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->SSLversion(23) == 23 ? : 1 0 1
50 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::SSLversion(): set 23');
51  
52 1 ▶ $returnCode = $objectNagios->SSLversion ( 32 ) == 3 ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->SSLversion(32) == 3 ? : 1 0 1
53 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::SSLversion(): set 32');
54  
55  
56 1 ▶ $returnCode = $objectNagios->clientCertificate ('certFile') eq 'ssl/crt/alex-peeters.crt' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->clientCertificate('certFile') eq 'ssl/crt/alex-peeters.crt' ? : 1 0 1
57 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::clientCertificate(): get certFile');
58  
59 1 ▶ $returnCode = $objectNagios->clientCertificate ('certFile' => 'certFile') eq 'certFile' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->clientCertificate('certFile', 'certFile') eq 'certFile' ? : 1 0 1
60 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::clientCertificate(): set certFile');
61  
62 1 ▶ $returnCode = $objectNagios->clientCertificate ('keyFile') eq 'ssl/key/alex-peeters-nopass.key' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->clientCertificate('keyFile') eq 'ssl/key/alex-peeters-nopass.key' ? : 1 0 1
63 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::clientCertificate(): get keyFile');
64  
65 1 ▶ $returnCode = $objectNagios->clientCertificate ('keyFile' => 'keyFile') eq 'keyFile' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->clientCertificate('keyFile', 'keyFile') eq 'keyFile' ? : 1 0 1
66 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::clientCertificate(): set keyFile');
67
68 1 ▶ $returnCode = $objectNagios->clientCertificate ('caFile') eq 'CA CERT PEER VERIFICATION FILE' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->clientCertificate('caFile') eq 'CA CERT PEER VERIFICATION FILE' ? : 1 0 1
69 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::clientCertificate(): get caFile');
70  
71 1 ▶ $returnCode = $objectNagios->clientCertificate ('caFile' => 'caFile') eq 'caFile' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->clientCertificate('caFile', 'caFile') eq 'caFile' ? : 1 0 1
72 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::clientCertificate(): set caFile');
73  
74 1 ▶ $returnCode = $objectNagios->clientCertificate ('caDir') eq 'CA CERT PEER VERIFICATION DIR' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->clientCertificate('caDir') eq 'CA CERT PEER VERIFICATION DIR' ? : 1 0 1
75 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::clientCertificate(): get caDir');
76  
77 1 ▶ $returnCode = $objectNagios->clientCertificate ('caDir' => 'caDir') eq 'caDir' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->clientCertificate('caDir', 'caDir') eq 'caDir' ? : 1 0 1
78 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::clientCertificate(): set caDir');
79  
80 1 ▶ $returnCode = $objectNagios->clientCertificate ('pkcs12File') eq 'CLIENT PKCS12 CERT SUPPORT FILE' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->clientCertificate('pkcs12File') eq 'CLIENT PKCS12 CERT SUPPORT FILE' ? : 1 0 1
81 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::clientCertificate(): get pkcs12File');
82  
83 1 ▶ $returnCode = $objectNagios->clientCertificate ('pkcs12File' => 'pkcs12File') eq 'pkcs12File' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->clientCertificate('pkcs12File', 'pkcs12File') eq 'pkcs12File' ? : 1 0 1
84 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::clientCertificate(): set pkcs12File');
85  
86 1 ▶ $returnCode = $objectNagios->clientCertificate ('pkcs12Password') eq 'CLIENT PKCS12 CERT SUPPORT PASSWORD' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->clientCertificate('pkcs12Password') eq 'CLIENT PKCS12 CERT SUPPORT PASSWORD' ? : 1 0 1
87 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::clientCertificate(): get pkcs12Password');
88  
89 1 ▶ $returnCode = $objectNagios->clientCertificate ('pkcs12Password' => 'pkcs12Password') eq 'pkcs12Password' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->clientCertificate('pkcs12Password', 'pkcs12Password') eq 'pkcs12Password' ? : 1 0 1
90 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::clientCertificate(): set pkcs12Password');
91  
92 1 ▶ $returnCode = $objectNagios->clientCertificate ('pkcs12Password' => 'pkcs12Password') eq 'pkcs12Password' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->clientCertificate('pkcs12Password', 'pkcs12Password') eq 'pkcs12Password' ? : 1 0 1
93 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::clientCertificate(): set pkcs12Password');
94  
95  
96 1 ▶ $returnCode = $objectNagios->programName () eq 'Nagios.t' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->programName eq 'Nagios.t' ? : 1 0 1
97 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::programName(): get');
98  
99 1 ▶ $returnCode = $objectNagios->programName ('-Change programName-') eq '-Change programName-' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->programName('-Change programName-') eq '-Change programName-' ? : 1 0 1
100 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::programName(): set');
101  
102  
103 1 ▶ $returnCode = $objectNagios->programDescription () eq 'Test ASNMTAP::Asnmtap::Plugins::Nagios' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->programDescription eq 'Test ASNMTAP::Asnmtap::Plugins::Nagios' ? : 1 0 1
104 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::programDescription(): get');
105  
106 1 ▶ $returnCode = $objectNagios->programDescription ('-change programDescription-') eq '-change programDescription-' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->programDescription('-change programDescription-') eq '-change programDescription-' ? : 1 0 1
107 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::programDescription(): set');
108  
109  
110 1 ▶ $returnCode = $objectNagios->programVersion () eq '3.002.003' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->programVersion eq '3.002.003' ? : 1 0 1
111 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::programVersion(): get');
112  
113 1 ▶ $returnCode = $objectNagios->programVersion ('x.xxx.xxx') eq 'x.xxx.xxx' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->programVersion('x.xxx.xxx') eq 'x.xxx.xxx' ? : 1 0 1
114 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::programVersion(): set');
115  
116  
117 1 my $startTime = $objectNagios->pluginValue('startTime');
118 1 ▶ $errorStatus = ($startTime eq $objectNagios->pluginValue('startTime')) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$startTime eq $objectNagios->pluginValue('startTime') ? : 1 0 1
119 1 ok ($errorStatus, 'ASNMTAP::Asnmtap::Plugins::Nagios::PLUGINS::pluginValue(): get startTime');
120  
121 1 my $responseTime = $objectNagios->setEndTime_and_getResponsTime($startTime);
122 1 ▶ $errorStatus = (defined $responseTime) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
defined $responseTime ? : 1 0 1
123 1 ok ($errorStatus, 'ASNMTAP::Asnmtap::Plugins::Nagios::PLUGINS::setEndTime_and_getResponsTime(): set/get');
124  
125 1 my $endTime = $objectNagios->pluginValue('endTime');
126 1 ▶ $errorStatus = (defined $endTime) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
defined $endTime ? : 1 0 1
127 1 ok ($errorStatus, 'ASNMTAP::Asnmtap::Plugins::Nagios::PLUGINS::endTime(): get');
128  
129 1 $returnCode = $objectNagios->appendPerformanceData ();
130 1 ▶ $errorStatus = (defined $returnCode) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
defined $returnCode ? : 1 0 1
131 1 ok ($errorStatus, 'ASNMTAP::Asnmtap::Plugins::Nagios::PLUGINS::appendPerformanceData(): get');
132  
133 1 $returnCode = $objectNagios->appendPerformanceData ('Plugin='.$startTime.'ms;;;;');
134 1 ▶ $errorStatus = ($returnCode eq 'Plugin='.$startTime.'ms;;;;') ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$returnCode eq 'Plugin=' . $startTime . 'ms;;;;' ? : 0 1 1
135 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::appendPerformanceData(): set');
136  
137 1 $returnCode = $objectNagios->pluginValue ('performanceData');
138 1 ▶ $errorStatus = ($returnCode eq 'Plugin='.$startTime.'ms;;;;') ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$returnCode eq 'Plugin=' . $startTime . 'ms;;;;' ? : 0 1 1
139 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): get performanceData');
140  
141  
142 1 ▶ $returnCode = $objectNagios->timeout () == 30 ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->timeout == 30 ? : 1 0 1
143 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::timeout(): get');
144  
145 1 ▶ $returnCode = $objectNagios->timeout (60) == 60 ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->timeout(60) == 60 ? : 1 0 1
146 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::timeout(): set');
147  
148 1 ▶ $returnCode = $objectNagios->debug () == 0 ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->debug == 0 ? : 1 0 1
149 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::debug(): get');
150  
151 1 ▶ $returnCode = $objectNagios->debug (2) == 0 ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->debug(2) == 0 ? : 1 0 1
152 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::debug(): set 2');
153  
154 1 ▶ $returnCode = $objectNagios->debug (1) == 1 ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->debug(1) == 1 ? : 1 0 1
155 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::debug(): set 1');
156
157 1 ▶ $returnCode = $objectNagios->debug (0) == 0 ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->debug(0) == 0 ? : 1 0 1
158 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::debug(): set 0');
159  
160  
161 1 ▶ $returnCode = $objectNagios->getOptionsValue ('boolean_debug_all') == 0 ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->getOptionsValue('boolean_debug_all') == 0 ? : 1 0 1
162 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::getOptionsValue(): get boolean_debug_all');
163  
164 1 ▶ $returnCode = $objectNagios->getOptionsValue ('boolean_debug_all') == 0 ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->getOptionsValue('boolean_debug_all') == 0 ? : 1 0 1
165 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::getOptionsValue(): get boolean_debug_all');
166  
167 1 ▶ $returnCode = $objectNagios->getOptionsValue ('boolean_debug_NOK') == 0 ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->getOptionsValue('boolean_debug_NOK') == 0 ? : 1 0 1
168 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::getOptionsValue(): get boolean_debug_NOK');
169  
170  
171 1 ▶ $returnCode = ($objectNagios->proxy( server => 'server' ) eq 'server') ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->proxy('server', 'server') eq 'server' ? : 1 0 1
172 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::proxy(): set server');
173  
174 1 ▶ $returnCode = ($objectNagios->proxy( username => 'username' ) eq 'username') ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->proxy('username', 'username') eq 'username' ? : 1 0 1
175 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::proxy(): set username');
176  
177 1 ▶ $returnCode = ($objectNagios->proxy( password => 'password' ) eq 'password') ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->proxy('password', 'password') eq 'password' ? : 1 0 1
178 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::proxy(): set password');
179  
180  
181 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{DEPENDENT} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'DEPENDENT'} ? : 1 0 1
182 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): get stateValue');
183  
184  
185 1 $objectNagios->pluginValue ( stateValue => $ERRORS{OK} );
186 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{OK} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'OK'} ? : 1 0 1
187 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateValue OK/OK');
188  
189 1 $objectNagios->pluginValue ( stateError => $STATE{$ERRORS{OK}} );
190 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{OK} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'OK'} ? : 1 0 1
191 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateError OK/OK');
192  
193 1 $objectNagios->pluginValues ( { stateValue => $ERRORS{OK} }, $TYPE{APPEND} );
194 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{OK} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'OK'} ? : 1 0 1
195 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue OK/OK');
196  
197 1 $objectNagios->pluginValues ( { stateError => $STATE{$ERRORS{OK}} }, $TYPE{APPEND} );
198 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{OK} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'OK'} ? : 1 0 1
199 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateError OK/OK');
200  
201  
202 1 $objectNagios->pluginValue ( stateValue => $ERRORS{WARNING} );
203 1 ▶ $returnCode = ( $objectNagios->pluginValue ( 'stateValue' ) == $ERRORS{WARNING} ) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') == $ERRORS{'WARNING'} ? : 1 0 1
204 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue WARNING/WARNING');
205  
206 1 $objectNagios->pluginValue ( stateError => $STATE{$ERRORS{WARNING}} );
207 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{WARNING} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'WARNING'} ? : 1 0 1
208 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateError WARNING/WARNING');
209  
210 1 $objectNagios->pluginValues ( { stateValue => $ERRORS{WARNING} }, $TYPE{APPEND} );
211 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{WARNING} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'WARNING'} ? : 1 0 1
212 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue WARNING/WARNING');
213  
214 1 $objectNagios->pluginValues ( { stateError => $STATE{$ERRORS{WARNING}} }, $TYPE{APPEND} );
215 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{WARNING} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'WARNING'} ? : 1 0 1
216 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateError WARNING/WARNING');
217  
218  
219 1 $objectNagios->pluginValue ( stateValue => $ERRORS{OK} );
220 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{WARNING} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'WARNING'} ? : 1 0 1
221 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateValue OK/WARNING');
222  
223 1 $objectNagios->pluginValue ( stateError => $STATE{$ERRORS{OK}} );
224 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{WARNING} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'WARNING'} ? : 1 0 1
225 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateError OK/WARNING');
226  
227 1 $objectNagios->pluginValues ( { stateValue => $ERRORS{OK} }, $TYPE{APPEND} );
228 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{WARNING} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'WARNING'} ? : 1 0 1
229 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue OK/WARNING');
230  
231 1 $objectNagios->pluginValues ( { stateError => $STATE{$ERRORS{OK}} }, $TYPE{APPEND} );
232 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{WARNING} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'WARNING'} ? : 1 0 1
233 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateError OK/WARNING');
234  
235
236 1 $objectNagios->pluginValue ( stateValue => $ERRORS{CRITICAL} );
237 1 ▶ $returnCode = ( $objectNagios->pluginValue ( 'stateValue' ) == $ERRORS{CRITICAL} ) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') == $ERRORS{'CRITICAL'} ? : 1 0 1
238 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue CRITICAL/CRITICAL');
239  
240 1 $objectNagios->pluginValue ( stateError => $STATE{$ERRORS{CRITICAL}} );
241 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{CRITICAL} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'CRITICAL'} ? : 1 0 1
242 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateError CRITICAL/CRITICAL');
243  
244 1 $objectNagios->pluginValues ( { stateValue => $ERRORS{CRITICAL} }, $TYPE{APPEND} );
245 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{CRITICAL} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'CRITICAL'} ? : 1 0 1
246 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue CRITICAL/CRITICAL');
247  
248 1 $objectNagios->pluginValues ( { stateError => $STATE{$ERRORS{CRITICAL}} }, $TYPE{APPEND} );
249 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{CRITICAL} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'CRITICAL'} ? : 1 0 1
250 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateError CRITICAL/CRITICAL');
251  
252
253 1 $objectNagios->pluginValue ( stateValue => $ERRORS{OK} );
254 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{CRITICAL} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'CRITICAL'} ? : 1 0 1
255 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateValue OK/CRITICAL');
256  
257 1 $objectNagios->pluginValue ( stateError => $STATE{$ERRORS{OK}} );
258 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{CRITICAL} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'CRITICAL'} ? : 1 0 1
259 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateError OK/CRITICAL');
260  
261 1 $objectNagios->pluginValues ( { stateValue => $ERRORS{OK} }, $TYPE{APPEND} );
262 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{CRITICAL} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'CRITICAL'} ? : 1 0 1
263 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue OK/CRITICAL');
264  
265 1 $objectNagios->pluginValues ( { stateError => $STATE{$ERRORS{OK}} }, $TYPE{APPEND} );
266 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{CRITICAL} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'CRITICAL'} ? : 1 0 1
267 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateError OK/CRITICAL');
268  
269  
270 1 $objectNagios->pluginValue ( stateValue => $ERRORS{WARNING} );
271 1 ▶ $returnCode = ( $objectNagios->pluginValue ( 'stateValue' ) == $ERRORS{CRITICAL} ) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') == $ERRORS{'CRITICAL'} ? : 1 0 1
272 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue WARNING/CRITICAL');
273  
274 1 $objectNagios->pluginValue ( stateError => $STATE{$ERRORS{WARNING}} );
275 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{CRITICAL} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'CRITICAL'} ? : 1 0 1
276 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateError WARNING/CRITICAL');
277  
278 1 $objectNagios->pluginValues ( { stateValue => $ERRORS{WARNING} }, $TYPE{APPEND} );
279 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{CRITICAL} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'CRITICAL'} ? : 1 0 1
280 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue WARNING/CRITICAL');
281  
282 1 $objectNagios->pluginValues ( { stateError => $STATE{$ERRORS{WARNING}} }, $TYPE{APPEND} );
283 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{CRITICAL} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'CRITICAL'} ? : 1 0 1
284 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateError WARNING/CRITICAL');
285  
286
287 1 $objectNagios->pluginValue ( stateValue => $ERRORS{UNKNOWN} );
288 1 ▶ $returnCode = ( $objectNagios->pluginValue ( 'stateValue' ) == $ERRORS{UNKNOWN} ) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') == $ERRORS{'UNKNOWN'} ? : 1 0 1
289 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue UNKNOWN/UNKNOWN');
290  
291 1 $objectNagios->pluginValue ( stateError => $STATE{$ERRORS{UNKNOWN}} );
292 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{UNKNOWN} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'UNKNOWN'} ? : 1 0 1
293 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateError UNKNOWN/UNKNOWN');
294  
295 1 $objectNagios->pluginValues ( { stateValue => $ERRORS{UNKNOWN} }, $TYPE{APPEND} );
296 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{UNKNOWN} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'UNKNOWN'} ? : 1 0 1
297 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue UNKNOWN/UNKNOWN');
298  
299 1 $objectNagios->pluginValues ( { stateError => $STATE{$ERRORS{UNKNOWN}} }, $TYPE{APPEND} );
300 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{UNKNOWN} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'UNKNOWN'} ? : 1 0 1
301 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateError UNKNOWN/UNKNOWN');
302  
303  
304 1 $objectNagios->pluginValue ( stateValue => $ERRORS{OK} );
305 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{UNKNOWN} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'UNKNOWN'} ? : 1 0 1
306 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateValue OK/UNKNOWN');
307  
308 1 $objectNagios->pluginValue ( stateError => $STATE{$ERRORS{OK}} );
309 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{UNKNOWN} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'UNKNOWN'} ? : 1 0 1
310 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateError OK/UNKNOWN');
311  
312 1 $objectNagios->pluginValues ( { stateValue => $ERRORS{OK} }, $TYPE{APPEND} );
313 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{UNKNOWN} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'UNKNOWN'} ? : 1 0 1
314 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue OK/UNKNOWN');
315  
316 1 $objectNagios->pluginValues ( { stateError => $STATE{$ERRORS{OK}} }, $TYPE{APPEND} );
317 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{UNKNOWN} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'UNKNOWN'} ? : 1 0 1
318 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateError OK/UNKNOWN');
319  
320
321 1 $objectNagios->pluginValue ( stateValue => $ERRORS{WARNING} );
322 1 ▶ $returnCode = ( $objectNagios->pluginValue ( 'stateValue' ) == $ERRORS{UNKNOWN} ) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') == $ERRORS{'UNKNOWN'} ? : 1 0 1
323 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue WARNING/UNKNOWN');
324  
325 1 $objectNagios->pluginValue ( stateError => $STATE{$ERRORS{WARNING}} );
326 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{UNKNOWN} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'UNKNOWN'} ? : 1 0 1
327 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateError WARNING/UNKNOWN');
328  
329 1 $objectNagios->pluginValues ( { stateValue => $ERRORS{WARNING} }, $TYPE{APPEND} );
330 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{UNKNOWN} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'UNKNOWN'} ? : 1 0 1
331 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue WARNING/UNKNOWN');
332  
333 1 $objectNagios->pluginValues ( { stateError => $STATE{$ERRORS{WARNING}} }, $TYPE{APPEND} );
334 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{UNKNOWN} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'UNKNOWN'} ? : 1 0 1
335 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateError WARNING/UNKNOWN');
336
337  
338 1 $objectNagios->pluginValue ( stateValue => $ERRORS{CRITICAL} );
339 1 ▶ $returnCode = ( $objectNagios->pluginValue ( 'stateValue' ) == $ERRORS{UNKNOWN} ) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') == $ERRORS{'UNKNOWN'} ? : 1 0 1
340 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue CRITICAL/UNKNOWN');
341  
342 1 $objectNagios->pluginValue ( stateError => $STATE{$ERRORS{CRITICAL}} );
343 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{UNKNOWN} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'UNKNOWN'} ? : 1 0 1
344 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): set/get stateError CRITICAL/UNKNOWN');
345  
346 1 $objectNagios->pluginValues ( { stateValue => $ERRORS{CRITICAL} }, $TYPE{APPEND} );
347 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{UNKNOWN} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'UNKNOWN'} ? : 1 0 1
348 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateValue CRITICAL/UNKNOWN');
349  
350 1 $objectNagios->pluginValues ( { stateError => $STATE{$ERRORS{CRITICAL}} }, $TYPE{APPEND} );
351 1 ▶ $returnCode = $objectNagios->pluginValue ( 'stateValue' ) eq $ERRORS{UNKNOWN} ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') eq $ERRORS{'UNKNOWN'} ? : 1 0 1
352 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get stateError CRITICAL/UNKNOWN');
353  
354  
355 1 $objectNagios->pluginValue ( message => 'message' );
356 1 ▶ $returnCode = $objectNagios->pluginValue ( 'message' ) eq 'message' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('message') eq 'message' ? : 1 0 1
357 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): get message');
358  
359 1 $objectNagios->pluginValue ( alert => 'alert' );
360 1 ▶ $returnCode = $objectNagios->pluginValue ( 'alert' ) eq 'alert' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('alert') eq 'alert' ? : 1 0 1
361 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): get alert');
362  
363 1 $objectNagios->pluginValue ( error => 'error' );
364 1 ▶ $returnCode = $objectNagios->pluginValue ( 'error' ) eq 'error' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('error') eq 'error' ? : 1 0 1
365 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): get error');
366  
367 1 $objectNagios->pluginValue ( result => 'result' );
368 1 ▶ $returnCode = $objectNagios->pluginValue ( 'result' ) eq 'result' ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('result') eq 'result' ? : 1 0 1
369 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): get result');
370
371 1 $objectNagios->pluginValues ( { statusValue => $ERRORS{OK}, message => 'message', alert => 'alert', error => 'error', result => 'result' }, $TYPE{APPEND} );
372 1 ▶ $returnCode = ( $objectNagios->pluginValue ( 'stateValue' ) == $ERRORS{UNKNOWN} and $objectNagios->pluginValue ( 'message' ) eq 'message' and $objectNagios->pluginValue ( 'alert' ) eq 'alert - alert' and $objectNagios->pluginValue ( 'error' ) eq 'error - error' and $objectNagios->pluginValue ( 'result' ) eq 'result' ) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') == $ERRORS{'UNKNOWN'} && $objectNagios->pluginValue('message') eq 'message' && $objectNagios->pluginValue('alert') eq 'alert - alert' && $objectNagios->pluginValue('error') eq 'error - error' && $objectNagios->pluginValue('result') eq 'result' ? : 1 0 1
Condition33%4/12
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert - alert" and $objectNagios->pluginValue("error") eq "error - error" and $objectNagios->pluginValue("result") eq "result"
!ll&&!rl&&r
001
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert - alert" and $objectNagios->pluginValue("error") eq "error - error"
!ll&&!rl&&r
001
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert - alert"
!ll&&!rl&&r
001
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message"
!ll&&!rl&&r
001
MC/DC0%0/5
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert - alert" and $objectNagios->pluginValue("error") eq "error - error" and $objectNagios->pluginValue("result") eq "result"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} $objectNagios->pluginValue("message") eq "message" $objectNagios->pluginValue("alert") eq "alert - alert" $objectNagios->pluginValue("error") eq "error - error" $objectNagios->pluginValue("result") eq "result"
Truth table16%1/6
A and B and C and D and E
A= $objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"}B= $objectNagios->pluginValue("message") eq "message"C= $objectNagios->pluginValue("alert") eq "alert - alert"D= $objectNagios->pluginValue("error") eq "error - error"E= $objectNagios->pluginValue("result") eq "result"
ABCDEresult
0XXXX0
10XXX0
110XX0
1110X0
111100
111111
373 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get statusValue OK, message, alert, error and result, 1');
374  
375 1 $objectNagios->pluginValues ( { statusValue => $ERRORS{OK}, message => 'message', alert => 'alert', error => 'error', result => 'result' }, $TYPE{REPLACE} );
376 1 ▶ $returnCode = ( $objectNagios->pluginValue ( 'stateValue' ) == $ERRORS{UNKNOWN} and $objectNagios->pluginValue ( 'message' ) eq 'message' and $objectNagios->pluginValue ( 'alert' ) eq 'alert' and $objectNagios->pluginValue ( 'error' ) eq 'error' and $objectNagios->pluginValue ( 'result' ) eq 'result' ) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') == $ERRORS{'UNKNOWN'} && $objectNagios->pluginValue('message') eq 'message' && $objectNagios->pluginValue('alert') eq 'alert' && $objectNagios->pluginValue('error') eq 'error' && $objectNagios->pluginValue('result') eq 'result' ? : 1 0 1
Condition33%4/12
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert" and $objectNagios->pluginValue("error") eq "error" and $objectNagios->pluginValue("result") eq "result"
!ll&&!rl&&r
001
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert" and $objectNagios->pluginValue("error") eq "error"
!ll&&!rl&&r
001
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert"
!ll&&!rl&&r
001
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message"
!ll&&!rl&&r
001
MC/DC0%0/5
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert" and $objectNagios->pluginValue("error") eq "error" and $objectNagios->pluginValue("result") eq "result"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} $objectNagios->pluginValue("message") eq "message" $objectNagios->pluginValue("alert") eq "alert" $objectNagios->pluginValue("error") eq "error" $objectNagios->pluginValue("result") eq "result"
Truth table16%1/6
A and B and C and D and E
A= $objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"}B= $objectNagios->pluginValue("message") eq "message"C= $objectNagios->pluginValue("alert") eq "alert"D= $objectNagios->pluginValue("error") eq "error"E= $objectNagios->pluginValue("result") eq "result"
ABCDEresult
0XXXX0
10XXX0
110XX0
1110X0
111100
111111
377 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get statusValue OK, message, alert, error and result, 0');
378  
379 1 $objectNagios->pluginValues ( { statusError => $STATE{$ERRORS{OK}}, message => 'message', alert => 'alert', error => 'error', result => 'result' }, $TYPE{APPEND} );
380 1 ▶ $returnCode = ( $objectNagios->pluginValue ( 'stateValue' ) == $ERRORS{UNKNOWN} and $objectNagios->pluginValue ( 'message' ) eq 'message' and $objectNagios->pluginValue ( 'alert' ) eq 'alert - alert' and $objectNagios->pluginValue ( 'error' ) eq 'error - error' and $objectNagios->pluginValue ( 'result' ) eq 'result' ) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') == $ERRORS{'UNKNOWN'} && $objectNagios->pluginValue('message') eq 'message' && $objectNagios->pluginValue('alert') eq 'alert - alert' && $objectNagios->pluginValue('error') eq 'error - error' && $objectNagios->pluginValue('result') eq 'result' ? : 1 0 1
Condition33%4/12
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert - alert" and $objectNagios->pluginValue("error") eq "error - error" and $objectNagios->pluginValue("result") eq "result"
!ll&&!rl&&r
001
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert - alert" and $objectNagios->pluginValue("error") eq "error - error"
!ll&&!rl&&r
001
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert - alert"
!ll&&!rl&&r
001
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message"
!ll&&!rl&&r
001
MC/DC0%0/5
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert - alert" and $objectNagios->pluginValue("error") eq "error - error" and $objectNagios->pluginValue("result") eq "result"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} $objectNagios->pluginValue("message") eq "message" $objectNagios->pluginValue("alert") eq "alert - alert" $objectNagios->pluginValue("error") eq "error - error" $objectNagios->pluginValue("result") eq "result"
Truth table16%1/6
A and B and C and D and E
A= $objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"}B= $objectNagios->pluginValue("message") eq "message"C= $objectNagios->pluginValue("alert") eq "alert - alert"D= $objectNagios->pluginValue("error") eq "error - error"E= $objectNagios->pluginValue("result") eq "result"
ABCDEresult
0XXXX0
10XXX0
110XX0
1110X0
111100
111111
381 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get statusError OK, message, alert, error and result, 1');
382  
383 1 $objectNagios->pluginValues ( { statusError => $STATE{$ERRORS{OK}}, message => 'message', alert => 'alert', error => 'error', result => 'result' }, $TYPE{REPLACE} );
384 1 ▶ $returnCode = ( $objectNagios->pluginValue ( 'stateValue' ) == $ERRORS{UNKNOWN} and $objectNagios->pluginValue ( 'message' ) eq 'message' and $objectNagios->pluginValue ( 'alert' ) eq 'alert' and $objectNagios->pluginValue ( 'error' ) eq 'error' and $objectNagios->pluginValue ( 'result' ) eq 'result' ) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$objectNagios->pluginValue('stateValue') == $ERRORS{'UNKNOWN'} && $objectNagios->pluginValue('message') eq 'message' && $objectNagios->pluginValue('alert') eq 'alert' && $objectNagios->pluginValue('error') eq 'error' && $objectNagios->pluginValue('result') eq 'result' ? : 1 0 1
Condition33%4/12
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert" and $objectNagios->pluginValue("error") eq "error" and $objectNagios->pluginValue("result") eq "result"
!ll&&!rl&&r
001
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert" and $objectNagios->pluginValue("error") eq "error"
!ll&&!rl&&r
001
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert"
!ll&&!rl&&r
001
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message"
!ll&&!rl&&r
001
MC/DC0%0/5
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert" and $objectNagios->pluginValue("error") eq "error" and $objectNagios->pluginValue("result") eq "result"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} $objectNagios->pluginValue("message") eq "message" $objectNagios->pluginValue("alert") eq "alert" $objectNagios->pluginValue("error") eq "error" $objectNagios->pluginValue("result") eq "result"
Truth table16%1/6
A and B and C and D and E
A= $objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"}B= $objectNagios->pluginValue("message") eq "message"C= $objectNagios->pluginValue("alert") eq "alert"D= $objectNagios->pluginValue("error") eq "error"E= $objectNagios->pluginValue("result") eq "result"
ABCDEresult
0XXXX0
10XXX0
110XX0
1110X0
111100
111111
385 1 ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValues(): set/get statusError OK, message, alert, error and result, 0');
386  
387  
388 1 $returnCode = $objectNagios->call_system("echo 'ASNMTAP'");
389 1 ok ( $returnCode == $ERRORS{OK}, 'ASNMTAP::Asnmtap::Plugins::Nagios::call_system("echo \'ASNMTAP\'")' );
390
391 1 $returnCode = $objectNagios->call_system("ASNMTAP 'ASNMTAP'");
392 1 ok ( $returnCode == $ERRORS{UNKNOWN}, 'ASNMTAP::Asnmtap::Plugins::Nagios::call_system("ASNMTAP \'ASNMTAP\'")' );
393  
394  
395 1 ▶ no warnings 'deprecated';
Subroutine BEGIN: called CC=1 SCAR=0.0
396 1 $objectNagios->{_pluginValues}->{stateValue} = $ERRORS{OK};
397 1 $objectNagios->{_pluginValues}->{stateError} = $STATE{$ERRORS{OK}};
398 1 $objectNagios->exit (0);
399 }
« t/Templates/Plugins/WebTransact/check_template-WebTransact.t ↑ Summary t/Asnmtap/Plugins.t »