Bug in Total Capacity of Storeonce

The CRE 1.6.0p14, the file storeonce_clusterinfo is:

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”,
}

and should be

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”,
}

There is already a pull request from myself https://github.com/tribe29/checkmk/pull/170
But as it was not recognized and there where again changes inside the Storeonce firmware my own Storeonce special agent and check is looking for three different counter names.

Example:
Total Capacity can have the three different names

  • Total Capacity (bytes)
  • Total Capacity
  • combinedCapacityBytes

The same problem is for all other values used by the Storeonce check.

Thanks andreas-doehler!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.