Werk #15009: Fix "invalid syntax" error on adding metrics to custom graphs
Komponente | User interface |
Titel | Fix "invalid syntax" error on adding metrics to custom graphs |
Datum | 16.12.2022 |
Checkmk-Editon | Checkmk Enterprise (CEE) |
Checkmk-Version | 2.2.0i1 2.1.0p19 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
If you added metrics via "Add all metrics of this graph to" - "New custom graph..." an error like "Cannot load custom_graph from /omd/sites/MYSITE/var/check_mk/web/MYUSER/user_custom_graphs.mk: invalid syntax (
We have seen this especially while adding CPU utilization metrics of windows hosts.
A workaround was to edit the file "/omd/sites/MYSITE/var/check_mk/web/MYUSER/user_custom_graphs.mk" and change entries like "'help': l'CPU time spent in user space'" to "'help': 'CPU time spent in user space'".