Update users.pm

This commit is contained in:
Jean-François Rameau 2016-03-15 14:28:31 +01:00
parent f6241a3ff1
commit 62ad1afc0b
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@ sub run {
$result->{$oid_licenceUsers} = undef if ($result->{$oid_licenceUsers} == 0);
$self->{output}->output_add(severity => $exit,
short_msg => sprintf("'%d' connected users (Available licence: %s)",
$result->{$oid_totalConnectedUsers}),
defined($result->{$oid_licenceUsers}) ? $result->{$oid_licenceUsers} : '-');
$result->{$oid_totalConnectedUsers},
defined($result->{$oid_licenceUsers}) ? $result->{$oid_licenceUsers} : '-'));
$self->{output}->perfdata_add(value => $result->{$oid_totalConnectedUsers}, label => 'users',
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'),
critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical'),