+ Test and minor fix on juniper mag
This commit is contained in:
parent
1320e6e47b
commit
e4712b5ceb
|
@ -121,16 +121,16 @@ sub run {
|
|||
threshold => [ { label => 'critical_cluster', 'exit_litteral' => 'critical' }, { label => 'warning_cluster', exit_litteral => 'warning' } ]);
|
||||
|
||||
$self->{output}->output_add(severity => $exit1,
|
||||
short_msg => sprintf("Current concurrent signed-in web users connections: %d, ",
|
||||
short_msg => sprintf("Current concurrent signed-in web users connections: %d",
|
||||
$result->{$oid_signedInWebUsers}));
|
||||
$self->{output}->output_add(severity => $exit2,
|
||||
short_msg => sprintf("Current concurrent meeting users connections: %d, ",
|
||||
$result->{$oid_meetingUserCount}));
|
||||
short_msg => sprintf("Current concurrent meeting users connections: %s",
|
||||
defined($result->{$oid_meetingUserCount}) ? $result->{$oid_meetingUserCount} : 'unknown'));
|
||||
$self->{output}->output_add(severity => $exit3,
|
||||
short_msg => sprintf("Current concurrent node logged users connections: %d, ",
|
||||
short_msg => sprintf("Current concurrent node logged users connections: %d",
|
||||
$result->{$oid_iveConcurrentUsers}));
|
||||
$self->{output}->output_add(severity => $exit4,
|
||||
short_msg => sprintf("Current concurrent cluster logged users connections: %d, ",
|
||||
short_msg => sprintf("Current concurrent cluster logged users connections: %d",
|
||||
$result->{$oid_clusterConcurrentUsers}));
|
||||
|
||||
$self->{output}->perfdata_add(label => "web",
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#
|
||||
####################################################################################
|
||||
|
||||
package network::juniper::mag::plugin::mode::bladetemperature;
|
||||
package network::juniper::mag::mode::bladetemperature;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
||||
|
@ -80,7 +80,7 @@ sub run {
|
|||
my $exit_code = $self->{perfdata}->threshold_check(value => $result->{$oid_iveTemperature},
|
||||
threshold => [ { label => 'critical', 'exit_litteral' => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
|
||||
$self->{output}->output_add(severity => $exit_code,
|
||||
short_msg => sprintf("Blade Temperautre is %.2f%% C",
|
||||
short_msg => sprintf("Blade Temperautre is %.2f C",
|
||||
$result->{$oid_iveTemperature}));
|
||||
$self->{output}->perfdata_add(label => 'temperature', unit => 'C',
|
||||
value => sprintf("%.2f", $result->{$oid_iveTemperature}),
|
||||
|
|
|
@ -53,7 +53,7 @@ sub new {
|
|||
'users' => 'network::juniper::common::ive::mode::users',
|
||||
'memory' => 'snmp_standard::mode::memory',
|
||||
'swap' => 'snmp_standard::mode::swap',
|
||||
'blade-temperature' => 'network::juniper::mag::plugin::mode::bladetemperature',
|
||||
'blade-temperature' => 'network::juniper::mag::mode::bladetemperature',
|
||||
);
|
||||
|
||||
return $self;
|
||||
|
|
Loading…
Reference in New Issue