I want to monitor Galera Cluster and I found mysql-galera-cluster on exchange! This mkp is only for Check_MK Server, but which plugin should I copy to the agent ?
I copy the mk_mysql to the agent but it need mysql.cfg: Could not open required defaults file: /mysql.cfg
in the documentation they I should create mysql.cfg in /etc/check_mk/ and I did that but when I run the plugin I get:
grep: /mysql.cfg: No such file or directory
<<<mysql_ping>>>
[[]]
Could not open required defaults file: /mysql.cfg
Fatal error in defaults handling. Program aborted
This should not be necessary ā the agent already sets this variable.
Donāt run the plugin on its own. Run the agent and check the output for the relevant sections, starting with ā<<< mysqlā
on Server side:
Do I have to copy all mysql from /omd/versions/1.6.0p27.cre/share/check_mk/checks#
mysql mysql_capacity mysql.include mysql_ping mysql_slave
to /omd/sites/mysite/local/share/check_mk/checks/ ?
@martin.schwarz thank you for your answer, in our checks folder we have only own checks so thats why I asked if I should copy something there⦠until know I copy only mysql from check_mk to the checks folder on the server.
When I run that I get:
OMD[mysite]:~$ cmk -n -vv --no-cache --checks mysql,mysql_ping,mysql_sessions -II serverdm
Discovering services on: serverdm
serverdm:
Unknown plugin file mysql_sessions
Unknown plugin file mysql_sessions
+ FETCHING DATA
[agent] No persisted sections loaded
[agent] Not using cache (Cache usage disabled)
[agent] Execute data source
[agent] Connecting via TCP to 172.31.0.28:6556 (5.0s timeout)
[agent] ERROR: Communication failed: [Errno 113] No route to host
[piggyback] No persisted sections loaded
[piggyback] Execute data source
No piggyback files for 'serverdm'. Skip processing.
No piggyback files for '172.31.0.28'. Skip processing.
Loading autochecks from /omd/sites/mysite/var/check_mk/autochecks/serverdm.mk
+ EXECUTING DISCOVERY PLUGINS (3)
Trying discovery with: mysql, mysql_ping, mysql_sessions
Try aquire lock on /omd/sites/mysite/var/check_mk/autochecks/serverdm.mk
Got lock on /omd/sites/mysite/var/check_mk/autochecks/serverdm.mk
Releasing lock on /omd/sites/mysite/var/check_mk/autochecks/serverdm.mk
Released lock on /omd/sites/mysite/var/check_mk/autochecks/serverdm.mk
SUCCESS - Found no services, no host labels
Youāre talking about the checks folder in the local hierarchy, right?
That one should not matter for the mysql* checks since they are built-in and should be found in ~mysite/share/check_mk/checks/
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.