You should never place your own additions into the ~/share
directories (pre 1.6) nor into the new directories below /lib/python/cmk/gui/plugins
.
The right places for own plugins are shown by the cmk --path
command:
OMD[mysite]:~$ cmk --path
...
Locally installed addons
Locally installed checks : /omd/sites/mysite/local/share/check_mk/checks/
Locally installed notification scripts : /omd/sites/mysite/local/share/check_mk/notifications/
Locally installed inventory plugins : /omd/sites/mysite/local/share/check_mk/inventory/
Locally installed check man pages : /omd/sites/mysite/local/share/check_mk/checkman/
Locally installed agents and plugins : /omd/sites/mysite/local/share/check_mk/agents/
Locally installed Multisite addons : /omd/sites/mysite/local/share/check_mk/web/
Locally installed PNP templates : /omd/sites/mysite/local/share/check_mk/pnp-templates/
Locally installed documentation : /omd/sites/mysite/local/share/doc/check_mk/
Locally installed localizations : /omd/sites/mysite/local/share/check_mk/locale/
That is: put your Perf-O-Meter plugins in ~/local/share/check_mk/web/plugins/metrics
. This way they won’t get overwritten or lost by an update of Checkmk.