Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Eltex MES Managed Switches. #144

Merged
merged 1 commit into from Aug 11, 2017
Merged

Conversation

k0ste
Copy link
Contributor

@k0ste k0ste commented Aug 8, 2017

Added support for Eltex MES devices.
Tested on Access & Aggregation MES devices that I have.
eltexSensorDescription is empty string. Later I will report to the manufacturer about this issue.

MES3124:

[k0ste@WorkStation check_nwc_health]$ ./plugins-scripts/check_nwc_health --hostname 10.100.129.1 --mode hardware-health
OK - environmental hardware working fine | 'sensor__temp'=29°C;55;65;; 'sensor__temp'=33°C;55;65;; 'sensor__temp'=36°C;55;65;;
[k0ste@WorkStation check_nwc_health]$ ./plugins-scripts/check_nwc_health --hostname 10.100.129.1 --mode hardware-health -v
I am a MES3124 28-port 1G/10G Managed Switch
OK - environmental hardware working fine
fan1_unit1 is normal
fan2_unit1 is normal
fan3_unit1 is normal
fan4_unit1 is normal
sensor  is 29°C
sensor  is 33°C
sensor  is 36°C
ps1_unit1 is normal
ps2_unit1 is normal | 'sensor__temp'=29°C;55;65;; 'sensor__temp'=33°C;55;65;; 'sensor__temp'=36°C;55;65;;
[k0ste@WorkStation check_nwc_health]$ ./plugins-scripts/check_nwc_health --hostname 10.100.129.1 --mode cpu-load -v
I am a MES3124 28-port 1G/10G Managed Switch
OK - cpu usage is 22%
cpu usage is 22% | 'cpu_usage'=22%;50;90;0;100 'cpu_usage_one_minute'=5%;50;90;0;100 'cpu_usage_five_minutes'=3%;50;90;0;100

MES5324:

[k0ste@WorkStation check_nwc_health]$ ./plugins-scripts/check_nwc_health --hostname 10.100.129.59 --mode hardware-health
OK - environmental hardware working fine | 'sensor__temp'=38°C;55;65;; 'sensor__temp'=34°C;55;65;; 'sensor__temp'=29°C;55;65;; 'sensor__temp'=35°C;55;65;;
I am a MES5324 28-port 10G/40G Managed Switch
OK - environmental hardware working fine
fan1_unit1 is normal
fan2_unit1 is normal
fan3_unit1 is normal
fan4_unit1 is normal
sensor  is 38°C
sensor  is 34°C
sensor  is 29°C
sensor  is 35°C
ps1_unit1 is normal
ps2_unit1 is normal | 'sensor__temp'=38°C;55;65;; 'sensor__temp'=34°C;55;65;; 'sensor__temp'=29°C;55;65;; 'sensor__temp'=35°C;55;65;;
[k0ste@WorkStation check_nwc_health]$ ./plugins-scripts/check_nwc_health --hostname 10.100.129.59 --mode cpu-load -v
I am a MES5324 28-port 10G/40G Managed Switch
OK - cpu usage is 5%
cpu usage is 5% | 'cpu_usage'=5%;50;90;0;100 'cpu_usage_one_minute'=5%;50;90;0;100 'cpu_usage_five_minutes'=5%;50;90;0;100

MES2124P (have only 2 fans on chassis and only one PSU):

[k0ste@WorkStation check_nwc_health]$ ./plugins-scripts/check_nwc_health --hostname 10.100.129.6 --mode hardware-health
OK - environmental hardware working fine | 'sensor__temp'=32°C;55;65;;
[k0ste@WorkStation check_nwc_health]$ ./plugins-scripts/check_nwc_health --hostname 10.100.129.6 --mode hardware-health -v
I am a MES2124P rev.C 28-port 1G Managed Switch with 24 POE+ ports
OK - environmental hardware working fine
fan1_unit1 is normal
fan2_unit1 is normal
fan3_unit1 is unknown
fan4_unit1 is unknown
fan5_unit1 is unknown
sensor  is 32°C | 'sensor__temp'=32°C;55;65;;
[k0ste@WorkStation check_nwc_health]$ ./plugins-scripts/check_nwc_health --hostname 10.100.129.6 --mode cpu-load -v
I am a MES2124P rev.C 28-port 1G Managed Switch with 24 POE+ ports
OK - cpu usage is 5%
cpu usage is 5% | 'cpu_usage'=5%;50;90;0;100 'cpu_usage_one_minute'=5%;50;90;0;100 'cpu_usage_five_minutes'=5%;50;90;0;100

MES2324 (fanless with one PSU):

[k0ste@WorkStation check_nwc_health]$ ./plugins-scripts/check_nwc_health --hostname 10.100.2.1 --mode hardware-health
OK - environmental hardware working fine | 'sensor__temp'=31°C;55;65;;
[k0ste@WorkStation check_nwc_health]$ ./plugins-scripts/check_nwc_health --hostname 10.100.2.1 --mode hardware-health -v
I am a MES2324 28-port 1G/10G Managed Switch
OK - environmental hardware working fine
fan1_unit1 is unknown
fan2_unit1 is unknown
fan3_unit1 is unknown
fan4_unit1 is unknown
sensor  is 31°C | 'sensor__temp'=31°C;55;65;;
[k0ste@WorkStation check_nwc_health]$ ./plugins-scripts/check_nwc_health --hostname 10.100.2.1 --mode cpu-load -v
I am a MES2324 28-port 1G/10G Managed Switch
OK - cpu usage is 4%
cpu usage is 4% | 'cpu_usage'=4%;50;90;0;100 'cpu_usage_one_minute'=5%;50;90;0;100 'cpu_usage_five_minutes'=4%;50;90;0;100

@lausser lausser merged commit bc66ad7 into lausser:master Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants