Depending on your my.cnf you can use the host as "localhost". Or define the socket's location: "--socket" = { value = "$mysql_health_socket$" description = "the database's unix socket" }
Lee Clemens -----Original Message----- From: icinga-users [mailto:icinga-users-boun...@lists.icinga.org] On Behalf Of Mathieu Arnold Sent: Tuesday, January 17, 2017 2:28 PM To: icinga-users@lists.icinga.org Subject: [icinga-users] problem with the mysql check Hi, I've been fighting with the mysql check for some time, the problem I have is that mysql is not listening on any INET{,6} socket, only on /tmp/mysql.sock and I don't seem to be able to be able to get the command to *not* pass the -H argument. If I don't supply an argument, icinga ends up adding -H $host.address$, if I set mysql_hostname to "" or null, it ends up passing -H "". So, is there a way to set mysql_hostname to something, that will make it not be there at all ? I think the mysql (and mysql_query) check commands should not set the mysql_hostname by default, or provide a way to not set it. -- Mathieu Arnold _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.icinga.org_mailman_listinfo_icinga-2Dusers&d=DQICAg&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=cyTvbR7oDy3PN_AIIi0Lv9lCBPtfF2xPPrjnAmpZfOs&m=0Ah8KP4QTJCh738nX2wUDN2UVRXqAmw_W9RT0T5SN-s&s=6iN2mHqtCnABjhbarRJd7OcqtyYHcUYA30dPNevHi4E&e= ---------- This email has been scanned for spam and viruses by Proofpoint Essentials. Visit the following link to report this email as spam: https://us1.proofpointessentials.com/index01.php?mod_id=11&mod_option=logitem&mail_id=1484681255-xIT65kH8qt%2BK&r_address=lclemens%40hammer.net&report=1 _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users