+ add code perfdata for cmdreturn linux local mode

This commit is contained in:
garnier-quentin 2015-11-24 16:41:15 +01:00
parent 50a49e5e77
commit 0ddaa81757
1 changed files with 5 additions and 0 deletions

View File

@ -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();
}