+ add code perfdata for cmdreturn linux local mode
This commit is contained in:
parent
50a49e5e77
commit
0ddaa81757
|
@ -99,6 +99,11 @@ sub run {
|
|||
short_msg => 'Exit code from command');
|
||||
}
|
||||
|
||||
if (defined($exit_code)) {
|
||||
$self->{output}->perfdata_add(label => "code",
|
||||
value => $exit_code);
|
||||
}
|
||||
|
||||
$self->{output}->display();
|
||||
$self->{output}->exit();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue