RRD Graph Filesystem Usage (Percentage values)

Hello all,
we are using cmk 2.0p18 cee.
quick question, is there actually a special reason why you don’t have a graph with the percentage fill level in the RRD graphs of a filesystem as well? I find it a bit annoying to see there always only the absolute values.

regards
Christian

Hi Christian,

I think it’s more helpful to have the real numbers, but if you want to have the percentage graph, put the following code in “~/local/share/check_mk/web/plugins/metrics/perc_fs.py”:

#!/usr/bin/env python3

graph_info["fs_used_percent"] = {
    "title": _("Filesystem percentage used"),
    "metrics": [
        ("fs_used_percent", "area"),
    ],
    "scalars": [
        "fs_used_percent:warn",
        "fs_used_percent:crit",
    ],
    "range": (0, 100),
}

Nun werden dir die Prozentwerte für das Filesystem dargestellt.

Viele Grüße,
Christian