Skip to content

CTOR-2394 [storage::veritas::nba::ssh] - new plugin #6253

Open
garnier-quentin wants to merge 22 commits into
centreon:developfrom
garnier-quentin:develop
Open

CTOR-2394 [storage::veritas::nba::ssh] - new plugin #6253
garnier-quentin wants to merge 22 commits into
centreon:developfrom
garnier-quentin:develop

Conversation

@garnier-quentin

Copy link
Copy Markdown
Contributor

Community contributors

Description

New plugin to monitor netbackup appliance (tested on 5240). To monitor that equipment, we need the last version (v1.2) of perl-libssh modules:
https://github.com/garnier-quentin/perl-libssh

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Functionality enhancement or optimization (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

How this pull request can be tested ?

$ perl centreon_plugins.pl --plugin=storage::veritas::nba::ssh::plugin --mode=storage --hostname=10.0.0.1 --ssh-username=xxxx --ssh-password=yyyy  --verbose
OK: All partitions are ok | 'Configuration#partition.space.usage.bytes'=1460288880B;;;0;107374182400 'Configuration#partition.space.free.bytes'=105913893519B;;;0;107374182400 'Configuration#partition.space.usage.percentage'=1.36%;;;0;100 'MSDP#partition.space.usage.bytes'=187477727652085B;;;0;275977418571776 'MSDP#partition.space.free.bytes'=88499690919690B;;;0;275977418571776 'MSDP#partition.space.usage.percentage'=67.93%;;;0;100 'MSDP Catalog#partition.space.usage.bytes'=9932111872B;;;0;856845975552 'MSDP Catalog#partition.space.free.bytes'=846913863680B;;;0;856845975552 'MSDP Catalog#partition.space.usage.percentage'=1.16%;;;0;100 'NDMP Log#partition.space.usage.bytes'=123931281326B;;;0;805306368000 'NDMP Log#partition.space.free.bytes'=681375086673B;;;0;805306368000 'NDMP Log#partition.space.usage.percentage'=15.39%;;;0;100
checking partition 'AdvancedDisk'
    status: Not Configured
checking partition 'CDPGateway'
    status: Not Configured
checking partition 'Configuration'
    status: Optimal
    space usage total: 100.00 GB used: 1.36 GB (1.36%) free: 98.64 GB (98.64%)
checking partition 'MSDP'
    status: Optimal
    space usage total: 251.00 TB used: 170.51 TB (67.93%) free: 80.49 TB (32.07%)
checking partition 'MSDP Catalog'
    status: Optimal
    space usage total: 798.00 GB used: 9.25 GB (1.16%) free: 788.75 GB (98.84%)
checking partition 'NDMP Log'
    status: Optimal
    space usage total: 750.00 GB used: 115.42 GB (15.39%) free: 634.58 GB (84.61%)
checking partition 'Share'
    status: Not Configured
$ perl centreon_plugins.pl --plugin=storage::veritas::nba::ssh::plugin --mode=memory --hostname=10.0.0.1 --ssh-username=xxxx --ssh-password=yyyy  --verbose
OK: Ram total: 250.70 GB used (-buffers/cache): 116.91 GB (46.63%) free: 3.00 GB (1.20%) available: 131.19 GB (52.33%), buffer: 130.79 GB, shared: 138.79 MB | 'memory.usage.bytes'=125530263552B;;;0;269182509056 'memory.free.bytes'=3222704128B;;;0;269182509056 'memory.usage.percentage'=46.63%;;;0;100 'memory.available.bytes'=140865015808B;;;0;269182509056 'memory.available.percentage'=52.33%;;;0;100 'memory.buffer.bytes'=140429541376B;;;0; 'memory.shared.bytes'=145530880B;;;0;
$ perl centreon_plugins.pl --plugin=storage::veritas::nba::ssh::plugin --mode=hardware --hostname=10.0.0.1 --ssh-username=xxxx --ssh-password=yyyy  --verbose
OK: All 104 components are ok [48/48 disk, 16/16 fan, 8/8 psu, 32/32 temperature]. | 'shelf1~SHT1012651GF3N8~0#hardware.temperature.celsius'=24C;;;; 'shelf1~SHT1012651GF3N8~1#hardware.temperature.celsius'=30C;;;; 'shelf1~SHT1012651GF3N8~2#hardware.temperature.celsius'=29C;;;; 'shelf1~SHT1012651GF3N8~3#hardware.temperature.celsius'=35C;;;; 'shelf1~SHT1012651GF3N8~4#hardware.temperature.celsius'=30C;;;; 'shelf1~SHT1012651GF3N8~5#hardware.temperature.celsius'=40C;;;; 'shelf1~SHT1012651GF3N8~6#hardware.temperature.celsius'=36C;;;; 'shelf1~SHT1012651GF3N8~7#hardware.temperature.celsius'=34C;;;; 'shelf2~SHT1012651GEMW5~0#hardware.temperature.celsius'=24C;;;; 'shelf2~SHT1012651GEMW5~1#hardware.temperature.celsius'=30C;;;; 'shelf2~SHT1012651GEMW5~2#hardware.temperature.celsius'=28C;;;; 'shelf2~SHT1012651GEMW5~3#hardware.temperature.celsius'=35C;;;; 'shelf2~SHT1012651GEMW5~4#hardware.temperature.celsius'=30C;;;; 'shelf2~SHT1012651GEMW5~5#hardware.temperature.celsius'=37C;;;; 'shelf2~SHT1012651GEMW5~6#hardware.temperature.celsius'=34C;;;; 'shelf2~SHT1012651GEMW5~7#hardware.temperature.celsius'=34C;;;; 'shelf3~SHT1012651GF1KL~0#hardware.temperature.celsius'=24C;;;; 'shelf3~SHT1012651GF1KL~1#hardware.temperature.celsius'=31C;;;; 'shelf3~SHT1012651GF1KL~2#hardware.temperature.celsius'=29C;;;; 'shelf3~SHT1012651GF1KL~3#hardware.temperature.celsius'=35C;;;; 'shelf3~SHT1012651GF1KL~4#hardware.temperature.celsius'=30C;;;; 'shelf3~SHT1012651GF1KL~5#hardware.temperature.celsius'=37C;;;; 'shelf3~SHT1012651GF1KL~6#hardware.temperature.celsius'=35C;;;; 'shelf3~SHT1012651GF1KL~7#hardware.temperature.celsius'=34C;;;; 'shelf4~SHF1105167G0110~0#hardware.temperature.celsius'=24C;;;; 'shelf4~SHF1105167G0110~1#hardware.temperature.celsius'=28C;;;; 'shelf4~SHF1105167G0110~2#hardware.temperature.celsius'=30C;;;; 'shelf4~SHF1105167G0110~3#hardware.temperature.celsius'=30C;;;; 'shelf4~SHF1105167G0110~4#hardware.temperature.celsius'=29C;;;; 'shelf4~SHF1105167G0110~5#hardware.temperature.celsius'=30C;;;; 'shelf4~SHF1105167G0110~6#hardware.temperature.celsius'=35C;;;; 'shelf4~SHF1105167G0110~7#hardware.temperature.celsius'=36C;;;; 'hardware.disk.count'=48;;;; 'hardware.fan.count'=16;;;; 'hardware.psu.count'=8;;;; 'hardware.temperature.count'=32;;;;
checking disks
disk '0' shelf '1' enclosure '249' state is OK
disk '1' shelf '1' enclosure '249' state is OK
disk '2' shelf '1' enclosure '249' state is OK
disk '3' shelf '1' enclosure '249' state is OK
disk '4' shelf '1' enclosure '249' state is OK
disk '5' shelf '1' enclosure '249' state is OK
disk '6' shelf '1' enclosure '249' state is OK
disk '7' shelf '1' enclosure '249' state is OK
disk '8' shelf '1' enclosure '249' state is OK
disk '9' shelf '1' enclosure '249' state is OK
disk '10' shelf '1' enclosure '249' state is OK
disk '11' shelf '1' enclosure '249' state is OK
disk '0' shelf '2' enclosure '251' state is OK
disk '1' shelf '2' enclosure '251' state is OK
disk '2' shelf '2' enclosure '251' state is OK
disk '3' shelf '2' enclosure '251' state is OK
disk '4' shelf '2' enclosure '251' state is OK
disk '5' shelf '2' enclosure '251' state is OK
disk '6' shelf '2' enclosure '251' state is OK
disk '7' shelf '2' enclosure '251' state is OK
disk '8' shelf '2' enclosure '251' state is OK
disk '9' shelf '2' enclosure '251' state is OK
disk '10' shelf '2' enclosure '251' state is OK
disk '11' shelf '2' enclosure '251' state is OK
disk '0' shelf '3' enclosure '250' state is OK
disk '1' shelf '3' enclosure '250' state is OK
disk '2' shelf '3' enclosure '250' state is OK
disk '3' shelf '3' enclosure '250' state is OK
disk '4' shelf '3' enclosure '250' state is OK
disk '5' shelf '3' enclosure '250' state is OK
disk '6' shelf '3' enclosure '250' state is OK
disk '7' shelf '3' enclosure '250' state is OK
disk '8' shelf '3' enclosure '250' state is OK
disk '9' shelf '3' enclosure '250' state is OK
disk '10' shelf '3' enclosure '250' state is OK
disk '11' shelf '3' enclosure '250' state is OK
disk '0' shelf '4' enclosure '248' state is OK
disk '1' shelf '4' enclosure '248' state is OK
disk '2' shelf '4' enclosure '248' state is OK
disk '3' shelf '4' enclosure '248' state is OK
disk '4' shelf '4' enclosure '248' state is OK
disk '5' shelf '4' enclosure '248' state is OK
disk '6' shelf '4' enclosure '248' state is OK
disk '7' shelf '4' enclosure '248' state is OK
disk '8' shelf '4' enclosure '248' state is OK
disk '9' shelf '4' enclosure '248' state is OK
disk '10' shelf '4' enclosure '248' state is OK
disk '11' shelf '4' enclosure '248' state is OK
checking fans
fan '0' shelf '1' enclosure 'SHT1012651GF3N8' state is OK
fan '1' shelf '1' enclosure 'SHT1012651GF3N8' state is OK
fan '2' shelf '1' enclosure 'SHT1012651GF3N8' state is OK
fan '3' shelf '1' enclosure 'SHT1012651GF3N8' state is OK
fan '0' shelf '2' enclosure 'SHT1012651GEMW5' state is OK
fan '1' shelf '2' enclosure 'SHT1012651GEMW5' state is OK
fan '2' shelf '2' enclosure 'SHT1012651GEMW5' state is OK
fan '3' shelf '2' enclosure 'SHT1012651GEMW5' state is OK
fan '0' shelf '3' enclosure 'SHT1012651GF1KL' state is OK
fan '1' shelf '3' enclosure 'SHT1012651GF1KL' state is OK
fan '2' shelf '3' enclosure 'SHT1012651GF1KL' state is OK
fan '3' shelf '3' enclosure 'SHT1012651GF1KL' state is OK
fan '0' shelf '4' enclosure 'SHF1105167G0110' state is OK
fan '1' shelf '4' enclosure 'SHF1105167G0110' state is OK
fan '2' shelf '4' enclosure 'SHF1105167G0110' state is OK
fan '3' shelf '4' enclosure 'SHF1105167G0110' state is OK
checking power supplies
power supply '0' shelf '1' enclosure 'SHT1012651GF3N8' state is OK
power supply '1' shelf '1' enclosure 'SHT1012651GF3N8' state is OK
power supply '0' shelf '2' enclosure 'SHT1012651GEMW5' state is OK
power supply '1' shelf '2' enclosure 'SHT1012651GEMW5' state is OK
power supply '0' shelf '3' enclosure 'SHT1012651GF1KL' state is OK
power supply '1' shelf '3' enclosure 'SHT1012651GF1KL' state is OK
power supply '0' shelf '4' enclosure 'SHF1105167G0110' state is OK
power supply '1' shelf '4' enclosure 'SHF1105167G0110' state is OK
checking temperatures
temperature '0' shelf '1' enclosure 'SHT1012651GF3N8' state is OK [current: 24]
temperature '1' shelf '1' enclosure 'SHT1012651GF3N8' state is OK [current: 30]
temperature '2' shelf '1' enclosure 'SHT1012651GF3N8' state is OK [current: 29]
temperature '3' shelf '1' enclosure 'SHT1012651GF3N8' state is OK [current: 35]
temperature '4' shelf '1' enclosure 'SHT1012651GF3N8' state is OK [current: 30]
temperature '5' shelf '1' enclosure 'SHT1012651GF3N8' state is OK [current: 40]
temperature '6' shelf '1' enclosure 'SHT1012651GF3N8' state is OK [current: 36]
temperature '7' shelf '1' enclosure 'SHT1012651GF3N8' state is OK [current: 34]
temperature '0' shelf '2' enclosure 'SHT1012651GEMW5' state is OK [current: 24]
temperature '1' shelf '2' enclosure 'SHT1012651GEMW5' state is OK [current: 30]
temperature '2' shelf '2' enclosure 'SHT1012651GEMW5' state is OK [current: 28]
temperature '3' shelf '2' enclosure 'SHT1012651GEMW5' state is OK [current: 35]
temperature '4' shelf '2' enclosure 'SHT1012651GEMW5' state is OK [current: 30]
temperature '5' shelf '2' enclosure 'SHT1012651GEMW5' state is OK [current: 37]
temperature '6' shelf '2' enclosure 'SHT1012651GEMW5' state is OK [current: 34]
temperature '7' shelf '2' enclosure 'SHT1012651GEMW5' state is OK [current: 34]
temperature '0' shelf '3' enclosure 'SHT1012651GF1KL' state is OK [current: 24]
temperature '1' shelf '3' enclosure 'SHT1012651GF1KL' state is OK [current: 31]
temperature '2' shelf '3' enclosure 'SHT1012651GF1KL' state is OK [current: 29]
temperature '3' shelf '3' enclosure 'SHT1012651GF1KL' state is OK [current: 35]
temperature '4' shelf '3' enclosure 'SHT1012651GF1KL' state is OK [current: 30]
temperature '5' shelf '3' enclosure 'SHT1012651GF1KL' state is OK [current: 37]
temperature '6' shelf '3' enclosure 'SHT1012651GF1KL' state is OK [current: 35]
temperature '7' shelf '3' enclosure 'SHT1012651GF1KL' state is OK [current: 34]
temperature '0' shelf '4' enclosure 'SHF1105167G0110' state is OK [current: 24]
temperature '1' shelf '4' enclosure 'SHF1105167G0110' state is OK [current: 28]
temperature '2' shelf '4' enclosure 'SHF1105167G0110' state is OK [current: 30]
temperature '3' shelf '4' enclosure 'SHF1105167G0110' state is OK [current: 30]
temperature '4' shelf '4' enclosure 'SHF1105167G0110' state is OK [current: 29]
temperature '5' shelf '4' enclosure 'SHF1105167G0110' state is OK [current: 30]
temperature '6' shelf '4' enclosure 'SHF1105167G0110' state is OK [current: 35]
temperature '7' shelf '4' enclosure 'SHF1105167G0110' state is OK [current: 36]

Checklist

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (develop).
  • I have provide data or shown output displaying the result of this code in the plugin area concerned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants