| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | 1 | ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::browseragent(): set'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 41 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | 1 | ▶ | $returnCode = $objectNagios->SSLversion ( 2 ) == 2 ? 1 : 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | 1 | ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::SSLversion(): set 2'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | 1 | ▶ | $returnCode = $objectNagios->SSLversion ( 3 ) == 3 ? 1 : 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 47 | 1 | ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::SSLversion(): set 3'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 49 | 1 | ▶ | $returnCode = $objectNagios->SSLversion ( 23 ) == 23 ? 1 : 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 50 | 1 | ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::SSLversion(): set 23'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 51 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 52 | 1 | ▶ | $returnCode = $objectNagios->SSLversion ( 32 ) == 3 ? 1 : 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 139 | 1 | ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::pluginValue(): get performanceData'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 140 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 141 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 142 | 1 | ▶ | $returnCode = $objectNagios->timeout () == 30 ? 1 : 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 143 | 1 | ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::timeout(): get'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 144 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 145 | 1 | ▶ | $returnCode = $objectNagios->timeout (60) == 60 ? 1 : 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 146 | 1 | ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::timeout(): set'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 147 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 148 | 1 | ▶ | $returnCode = $objectNagios->debug () == 0 ? 1 : 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 149 | 1 | ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::debug(): get'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 150 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 151 | 1 | ▶ | $returnCode = $objectNagios->debug (2) == 0 ? 1 : 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 152 | 1 | ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::debug(): set 2'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 153 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 154 | 1 | ▶ | $returnCode = $objectNagios->debug (1) == 1 ? 1 : 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 155 | 1 | ok ($returnCode, 'ASNMTAP::Asnmtap::Plugins::Nagios::debug(): set 1'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 156 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 157 | 1 | ▶ | $returnCode = $objectNagios->debug (0) == 0 ? 1 : 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
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"
$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"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert - alert"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message"
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"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
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"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert" and $objectNagios->pluginValue("error") eq "error"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message"
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"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
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"
$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"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert - alert"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message"
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"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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
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"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert" and $objectNagios->pluginValue("error") eq "error"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message" and $objectNagios->pluginValue("alert") eq "alert"
$objectNagios->pluginValue("stateValue") == $ERRORS{"UNKNOWN"} and $objectNagios->pluginValue("message") eq "message"
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"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||