How to show two value in the same graph ( like default windows interface check up/down bandwidth )

You need a graph definition what looks like this.

    graph_info["up_down_data"] = {
        "title": _("Upload Download"),
        "metrics": [
            ("upload", "-area"),
            ("download", "area"),
        ],
    }

It would also be good to define your metrics what it is.
As you have Mbits in your output you should also define factors for the correct values in the graph. Normally all traffic values are in bits or bytes per second.

All the definition files should be inside “~/local/share/check_mk/web/plugins/metrics/”.

4 Likes