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

UCS System returns "not-applicable" for kernel_mem_total and kernel_mem_free stats #1

Open
dwebr opened this issue Sep 24, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@dwebr
Copy link

dwebr commented Sep 24, 2022

Issue: UCS running version 4.2(1m)B returns "not-applicable" for kernel_mem_total and kernel_mem_free stats which results in prometheus throwing errors during polling.

Work around: comment out the following statements in the swsystem.py file.

kernel_mem_total.labels(self.domain, switch).set(int(item.kernel_mem_total))
kernel_mem_free.labels(self.domain, switch).set(int(item.kernel_mem_free))

Example Output

/repos/prometheus-ucs-exporter/scripts$ ./explore.py query-classid swSystemStats

Managed Object                  :       SwSystemStats
--------------
class_id                        :SwSystemStats
child_action                    :None
correctable_parity_error        :not-applicable
correctable_parity_error_avg    :not-applicable
correctable_parity_error_max    :not-applicable
correctable_parity_error_min    :not-applicable
dn                              :sys/switch-B/sysstats
intervals                       :58982460
kernel_mem_free                 :not-applicable
kernel_mem_free_avg             :not-applicable
kernel_mem_free_max             :not-applicable
kernel_mem_free_min             :not-applicable
kernel_mem_total                :not-applicable
kernel_mem_total_avg            :not-applicable
kernel_mem_total_max            :not-applicable
kernel_mem_total_min            :not-applicable
load                            :2.360000
load_avg                        :2.413333
load_max                        :2.620000
load_min                        :2.130000
mem_available                   :52264
mem_available_avg               :52278
mem_available_max               :52302
mem_available_min               :52264
mem_cached                      :11591
mem_cached_avg                  :11576
mem_cached_max                  :11591
mem_cached_min                  :11563
rn                              :sysstats
sacl                            :None
status                          :None
suspect                         :no
thresholded                     :
time_collected                  :2022-09-24T10:13:48.368
update                          :131081



Managed Object                  :       SwSystemStats
--------------
class_id                        :SwSystemStats
child_action                    :None
correctable_parity_error        :not-applicable
correctable_parity_error_avg    :not-applicable
correctable_parity_error_max    :not-applicable
correctable_parity_error_min    :not-applicable
dn                              :sys/switch-A/sysstats
intervals                       :58982460
kernel_mem_free                 :not-applicable
kernel_mem_free_avg             :not-applicable
kernel_mem_free_max             :not-applicable
kernel_mem_free_min             :not-applicable
kernel_mem_total                :not-applicable
kernel_mem_total_avg            :not-applicable
kernel_mem_total_max            :not-applicable
kernel_mem_total_min            :not-applicable
load                            :3.820000
load_avg                        :2.701667
load_max                        :3.820000
load_min                        :2.090000
mem_available                   :52062
mem_available_avg               :52050
mem_available_max               :52062
mem_available_min               :52036
mem_cached                      :11060
mem_cached_avg                  :11068
mem_cached_max                  :11083
mem_cached_min                  :11060
rn                              :sysstats
sacl                            :None
status                          :None
suspect                         :no
thresholded                     :
time_collected                  :2022-09-24T10:14:32.366
update                          :131078
@uberspot uberspot added the bug Something isn't working label Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants