mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +02:00
+ add code perfdata for cmdreturn linux local mode
This commit is contained in:
parent
514d2a0d66
commit
457123cf87
@ -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…
x
Reference in New Issue
Block a user