Hi guys
I’m using Checkmk 1.6.0p6 and I need to monitor my HP StoreOnce 4500. I did a full scan to discover all the services and I get 2 warnings caused by wrong data:
ServiceSet 1 Capacity Size of filesystem is 0 MB(!), Dedup ratio: 13.43
Total Capacity Size of filesystem is 0 MB(!)
I checked it on the StoreOnce itself there is more than ~3 TB of ~15 TB available.
Does anyone know a solution for this problem? Thanks in advance.
a3093
(Gonzalo)
December 30, 2019, 2:27pm
2
It happened to me too. I did not find the solution and disabled it.
_rb
(RB)
January 2, 2020, 9:19am
3
Hi dsiab,
this is a bug in handling the old format of the agent output. Will be fixed soon with werk #10756 .
a3093
(Gonzalo)
April 6, 2020, 4:59pm
4
dsiab547:
werk #10756 .
Hello!
I have upgraded to version 1.6.0p11 and the Total Capacity service returns me 0MB still.
I thought it was fixed in werk # 10756.
Does anyone have the same problem?
regards
This werk should fix the 0 bug but not the wrong calculation of bytes to gigabytes.
You can take a look at the post Wrong value for size of Total Capacity StoreOnce
But i think this will only help if you have some numbers and not only 0
1 Like
One thing more is that your “Total Capacity” comes not from the check like the output from your first topic.
You can have a look inside the “Total Capacity” what check this is. It is not the “ServiceSet” check.
a3093
(Gonzalo)
April 7, 2020, 9:12am
7
Hi Andreas-Doehler, you are right,
the service is not “ServiceSet”, but “check_mk-storeonce_clusterinfo.space”. I will seek information on this matter.
Thanks for your help.
a3093
(Gonzalo)
April 7, 2020, 1:58pm
8
More info:
cmk -d my_host
<<<storeonce_clusterinfo:sep(9)>>>
Total Capacity 53165.886909973
Total Capacity (bytes) 53165886909973
Inside your clusterinfo section is there a value with name “localCapacityBytes” or “localFreeBytes”
This is only inside the service set data.
My old check what i use is working. I see that i must extend my pull request from today also with the not working clusterinfo section
#!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# +------------------------------------------------------------------+
# | ____ _ _ __ __ _ __ |
# | / ___| |__ ___ ___| | __ | \/ | |/ / |
# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
# | | |___| | | | __/ (__| < | | | | . \ |
# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
# | |
# | Copyright Mathias Kettner 2017 mk@mathias-kettner.de |
# +------------------------------------------------------------------+
#
# This file is part of Check_MK.
# The official homepage is at http://mathias-kettner.de/check_mk.
#
# check_mk is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation in version 2. check_mk is distributed
# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
This file has been truncated. show original
This is the old working version
But do not use this like a replacement - i don’t checked if it works with actual 1.6.
My system with the StoreOnce must be upgraded to 1.6 i think the next week.
Then i must do the work to get correct results.
1 Like
a3093
(Gonzalo)
April 21, 2020, 6:51am
10
I did not see the notification of your answer, thank you very much andreas-doehler.
You have given me an idea that I am going to try.
Thank you
a3093
(Gonzalo)
April 21, 2020, 7:55am
11
In the “master” branch of the file https://github.com/tribe29/checkmk/blob/master/checks/storeonce_clusterinfo the section “Cluster space” is:
# .--cluster space-------------------------------------------------------.
# | _ _ |
# | ___| |_ _ ___| |_ ___ _ __ ___ _ __ __ _ ___ ___ |
# | / __| | | | / __| __/ _ \ '__| / __| '_ \ / _` |/ __/ _ \ |
# | | (__| | |_| \__ \ || __/ | \__ \ |_) | (_| | (_| __/ |
# | \___|_|\__,_|___/\__\___|_| |___/ .__/ \__,_|\___\___| |
# | |_| |
# +----------------------------------------------------------------------+
# | |
# '----------------------------------------------------------------------'
def inventory_storeonce_clusterinfo_space(parsed):
return [('Total Capacity', {})]
check_info['storeonce_clusterinfo.space'] = {
'inventory_function': inventory_storeonce_clusterinfo_space,
'check_function': check_storeonce_space,
'service_description': "%s",
'has_perfdata': True,
'includes': ["size_trend.include", "df.include", "storeonce.include"],
'group': "filesystem",
'default_levels_variable': "filesystem_Default_levels",
}
This does not work, it returns Total Capacity = 0.
The code should be:
# .--cluster space-------------------------------------------------------.
# | _ _ |
# | ___| |_ _ ___| |_ ___ _ __ ___ _ __ __ _ ___ ___ |
# | / __| | | | / __| __/ _ \ '__| / __| '_ \ / _` |/ __/ _ \ |
# | | (__| | |_| \__ \ || __/ | \__ \ |_) | (_| | (_| __/ |
# | \___|_|\__,_|___/\__\___|_| |___/ .__/ \__,_|\___\___| |
# | |_| |
# +----------------------------------------------------------------------+
# | |
# '----------------------------------------------------------------------'
def inventory_storeonce_clusterinfo_space(parsed):
return [('Total Capacity', {})]
def check_storeonce_clusterinfo_space(item, params, parsed):
total_mb = float(parsed['Total Capacity (bytes)'])/1024/1024
free_mb = float(parsed['Free Space (bytes)'])/1024/1024
yield df_check_filesystem_list(item, params, [ (item, total_mb, free_mb, 0) ])
dedup = float(parsed['Dedupe Ratio'])
yield 0, "Dedup: %.2f" % dedup
check_info['storeonce_clusterinfo.space'] = {
'inventory_function': inventory_storeonce_clusterinfo_space,
'check_function': check_storeonce_clusterinfo_space,
'service_description': "%s",
'has_perfdata': True,
'includes': ["size_trend.include", "df.include", "storeonce.include"],
'group': "filesystem",
'default_levels_variable': "filesystem_Default_levels",
}
Esto funciona:
Cheers
Pull request created that these will be also in the next stable release.
1 Like
a3093
(Gonzalo)
April 27, 2020, 7:22am
13
Thank you very much @andreas-doehler , your help was essential to find the solution.
Cheers