mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 09:05:19 +02:00
fix and remove debug
This commit is contained in:
parent
8b1c27b659
commit
7eb7e05b0a
@ -83,7 +83,7 @@ sub run {
|
|||||||
|
|
||||||
foreach my $dev (@{$entity_view->{'config.hardware.device'}}) {
|
foreach my $dev (@{$entity_view->{'config.hardware.device'}}) {
|
||||||
if (ref($dev) =~ /$self->{device}/) {
|
if (ref($dev) =~ /$self->{device}/) {
|
||||||
if ($dev->connectable->connected == 1) {
|
if (defined($dev->connectable) && $dev->connectable->connected == 1) {
|
||||||
$data->{$entity_value}->{total_device_connected}++;
|
$data->{$entity_value}->{total_device_connected}++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -92,8 +92,6 @@ sub run {
|
|||||||
|
|
||||||
# Disk
|
# Disk
|
||||||
if (defined($self->{check_disk_limit})) {
|
if (defined($self->{check_disk_limit})) {
|
||||||
use Data::Dumper;
|
|
||||||
print Data::Dumper::Dumper($entity_view->{'config.hardware.device'});
|
|
||||||
foreach my $device (@{$entity_view->{'config.hardware.device'}}) {
|
foreach my $device (@{$entity_view->{'config.hardware.device'}}) {
|
||||||
if ($device->isa('VirtualDisk')) {
|
if ($device->isa('VirtualDisk')) {
|
||||||
if (defined($device->storageIOAllocation->limit) && $device->storageIOAllocation->limit != -1) {
|
if (defined($device->storageIOAllocation->limit) && $device->storageIOAllocation->limit != -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user