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
148 stars 88 forks source link

CPU Usage of multicore systems #86

Open Benedikt1992 opened 8 years ago

Benedikt1992 commented 8 years ago

I would like to have a mode to get a more detailed view of the cpu usage of every single core in a multicore system instead of one single value (mode: cpu-load)

Is there anybody else with this need?

Benedikt1992 commented 8 years ago

I've tried to implement it fast forward: https://github.com/Benedikt1992/check_nwc_health/commit/472fcf05317a48197b73bdda119bb5773d669b01

Surprise surprise it does not work. I am absolute new to perl. I would appreciate any kind of help

Example Outout of the multiProcUsage OID:

SNMPv2-SMI::enterprises.2620.1.6.7.5.1.5.1.0 = Counter32: 21
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.5.2.0 = Counter32: 29
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.5.3.0 = Counter32: 28
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.5.4.0 = Counter32: 31
Benedikt1992 commented 8 years ago

I get the message Mode multi-cpu-load is not implemented for this type of device

What am I missing?

lausser commented 8 years ago

Because there is no mode multi-cpu-load?

Von: Benedikt Bock [mailto:notifications@github.com] Gesendet: Dienstag, 31. Mai 2016 14:41 An: lausser/check_nwc_health Betreff: Re: [lausser/check_nwc_health] CPU Usage of multicore systems (#86)

I get the message Mode multi-cpu-load is not implemented for this type of device

What am I missing?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lausser/check_nwc_health/issues/86#issuecomment-222676382 , or mute the thread https://github.com/notifications/unsubscribe/AAMJOOBP79IUB_TdlkLQb82ez0mayVX5ks5qHCxYgaJpZM4IoYU1 . https://github.com/notifications/beacon/AAMJOK-Mt-3ftowQnrbDCoOEWYKtHPDaks5qHCxYgaJpZM4IoYU1.gif

Benedikt1992 commented 8 years ago

I have implemented this mode here: https://github.com/Benedikt1992/check_nwc_health/commit/472fcf05317a48197b73bdda119bb5773d669b01 I have added a new File plugins-scripts/Classes/CheckPoint/Firewall1/Component/MultiCpuSubsystem.pm and referenced it in plugins-scripts/Classes/CheckPoint/Firewall1.pm and plugins-scripts/check_nwc_health.pl (with the new mode multi-cpu-usage)

Last I added it to plugins-scripts/Makefile.am so it will be recognized in the build process.

What is missing?

Benedikt1992 commented 8 years ago

problem solved