lausser / check_nwc_health

nwc = network component. This plugin checks lots of aspects of routers, switches, wlan controllers, firewalls,.....
http://labs.consol.de/nagios/check_nwc_health
GNU General Public License v2.0
146 stars 88 forks source link

Support for new HP Aruba OS-CX Switch-Family #286

Closed antonfischl1980 closed 2 years ago

antonfischl1980 commented 2 years ago

Hi,

HP has release a new generation of Aruba switches which have a completely different OS ("Aruba OS-CX") then their predecessors. As far as I know, those will replace the current "Aruba OS-S" Series of Switches in the coming months and years.

We have now received our first OS-CX Switch. Most of the "standard modes" ("list-interfaces", "interface-health", etc.) work out of the box. "hardware-health" (of course) does not work.

I can see the following hardware sensors on the CLI:

vt31-cxos# sh environment show environment fan Fan information

Mbr/Fan Product Serial Number Speed Direction Status RPM Name 1/1 N/A N/A N/A left-to-right ok N/A 1/2 N/A N/A N/A left-to-right ok N/A

show environment led Mbr/Name State Status 1/locator off ok

show environment power-supply Product Serial PSU Wattage Mbr/PSU Number Number Status Maximum 1/1 N/A N/A OK 500

show environment temperature Temperature information Current Mbr/Slot-Sensor Module Type temperature Status 1/1-PHY-01-08 line-card-module 54.00 C normal 1/1-PHY-09-16 line-card-module 53.00 C normal 1/1-PHY-17-24 line-card-module 50.00 C normal 1/1-PHY-25-32 line-card-module 51.00 C normal 1/1-PHY-33-40 line-card-module 52.00 C normal 1/1-PHY-41-48 line-card-module 49.00 C normal

1/1-Inlet-Air management-module 29.25 C normal 1/1-Switch-ASIC-Internal management-module 55.00 C normal 1/1-Switch-CPU-1 management-module 54.50 C normal 1/1-Switch-CPU-2 management-module 55.88 C normal

I already made --mode=walk and will email you the result.

Thanks in Advance.

lausser commented 2 years ago
OK - hardware working fine, storage 31 (/dev) has 100.00% free space left, storage 32 (/) has 94.52% free space left, storage 33 (/sys/fs/cgroup/systemd) has 100.00% free space left, storage 34 (/sys/fs/fuse/connections) has 100.00% free space left, storage 35 (/fs/nos) has 86.92% free space left, storage 36 (/fs/selftest) has 99.94% free space left, storage 37 (/fs/security) has 99.89% free space left, storage 38 (/fs/coredump) has 99.80% free space left, storage 39 (/fs/logs) has 99.56% free space left, storage 40 (/run/netns/ntb) has 100.00% free space left
checking powersupplies
power supply 1/1/1 status is ok
checking fans
fan 1.1.1/1/1 status is ok
fan 1.1.2/1/2 status is ok
checking temps
temperature 1.3.1.1/1/1-PHY-01-08 is 54.00C, normal
temperature 1.3.1.2/1/1-PHY-09-16 is 53.00C, normal
temperature 1.3.1.3/1/1-PHY-17-24 is 50.00C, normal
temperature 1.3.1.4/1/1-PHY-25-32 is 51.00C, normal
temperature 1.3.1.5/1/1-PHY-33-40 is 52.00C, normal
temperature 1.3.1.6/1/1-PHY-41-48 is 49.00C, normal
temperature 1.4.1.1/1/1-Inlet-Air is 29.50C, normal
temperature 1.4.1.2/1/1-Switch-ASIC-Internal is 55.50C, normal
temperature 1.4.1.3/1/1-Switch-CPU-1 is 55.00C, normal
temperature 1.4.1.4/1/1-Switch-CPU-2 is 56.88C, normal
checking storages
storage 31 (/dev) has 100.00% free space left
storage 32 (/) has 94.52% free space left
storage 33 (/sys/fs/cgroup/systemd) has 100.00% free space left
storage 34 (/sys/fs/fuse/connections) has 100.00% free space left
storage 35 (/fs/nos) has 86.92% free space left
storage 36 (/fs/selftest) has 99.94% free space left
storage 37 (/fs/security) has 99.89% free space left
storage 38 (/fs/coredump) has 99.80% free space left
storage 39 (/fs/logs) has 99.56% free space left
storage 40 (/run/netns/ntb) has 100.00% free space left | 'ps_1_power'=0;;;;500 'fan_1.1.1_rpm'=0;;;; 'fan_1.1.2_rpm'=0;;;; 'temp_1.3.1.1'=54;;;; 'temp_1.3.1.2'=53;;;; 'temp_1.3.1.3'=50;;;; 'temp_1.3.1.4'=51;;;; 'temp_1.3.1.5'=52;;;; 'temp_1.3.1.6'=49;;;; 'temp_1.4.1.1'=29.50;;;; 'temp_1.4.1.2'=55.50;;;; 'temp_1.4.1.3'=55;;;; 'temp_1.4.1.4'=56.88;;;; '/dev_free_pct'=100%;0:;0:;0;100 '/_free_pct'=94.52%;10:;5:;0;100 '/sys/fs/cgroup/systemd_free_pct'=100%;0:;0:;0;100 '/sys/fs/fuse/connections_free_pct'=100%;0:;0:;0;100 '/fs/nos_free_pct'=86.92%;10:;5:;0;100 '/fs/selftest_free_pct'=99.94%;10:;5:;0;100 '/fs/security_free_pct'=99.89%;10:;5:;0;100 '/fs/coredump_free_pct'=99.80%;10:;5:;0;100 '/fs/logs_free_pct'=99.56%;10:;5:;0;100 '/run/netns/ntb_free_pct'=100%;0:;0:;0;100