There is a simple solution for this problem. CMK datasource only shows metrics where a graph is defined for. This is really strange
For this problem with the filesystem percentage i have the following as solution.
Create a file “filesystem.py” inside your site under “~/local/share/check_mk/web/plugins/metrics/” with the following content.
However I never use Python and maybe I do something wrong.
I go on : /opt/omd/sites/OMD/local/share/check_mk/web/plugins/metrics
Then I Create the script with chmod +x.
I have this error:
# ./filesystem.py
Traceback (most recent call last):
File "./filesystem.py", line 2, in <module>
from cmk.gui.plugins.metrics import (
ImportError: No module named 'cmk'
why this? The script don’t need to be executed. You only have to create the file as site user not as root. And now you should see a percent graph for your filesystem.
Then you can also select the percent value in Grafana.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.