Le 17/01/2017 à 21:36, Lee Clemens a écrit : > I may have copied the wrong config, which specific check command are you > using? > > Did you try setting the socket? > > "-s" = "$mysql_socket$"
Your quote may have been wrong, but my answer still applies, using the mysql check provided by icinga, the -H $mysql_hostname$ is *always* set, and to use -s, -H must not be set. > Lee Clemens > > -----Original Message----- > From: icinga-users [mailto:icinga-users-boun...@lists.icinga.org] On Behalf > Of Mathieu Arnold > Sent: Tuesday, January 17, 2017 3:19 PM > To: Icinga User's Corner <icinga-users@lists.icinga.org> > Subject: Re: [icinga-users] problem with the mysql check > > Le 17/01/2017 à 21:05, Lee Clemens a écrit : >> Depending on your my.cnf you can use the host as "localhost". > Like I said, it is not listening on any network interface :-) > >> Or define the socket's location: >> "--socket" = { >> value = "$mysql_health_socket$" >> description = "the database's unix socket" >> } > That would be great and all, *but* it would still set the -H $mysql_hostname$ > and: > > -s, --socket=STRING > Use the specified socket (has no effect if -H is used) > > >> 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=0Ah8K >> P4QTJCh738nX2wUDN2UVRXqAmw_W9RT0T5SN-s&s=6iN2mHqtCnABjhbarRJd7OcqtyYHc >> UYA30dPNevHi4E&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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.icinga.org_ >> mailman_listinfo_icinga-2Dusers&d=DQIGaQ&c=euGZstcaTDllvimEN8b7jXrwqOf >> -v5A_CdpgnVfiiMM&r=cyTvbR7oDy3PN_AIIi0Lv9lCBPtfF2xPPrjnAmpZfOs&m=-wwY0 >> is2SY_JW4kqb0NZNHv5Dy1L-IcxCaWxfrMe-B0&s=6bkj9zcyEhwfnCmNOq9IrBij7rg6t >> Ra0wVnHCfOOQdw&e= >> > > -- > 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=DQIGaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=cyTvbR7oDy3PN_AIIi0Lv9lCBPtfF2xPPrjnAmpZfOs&m=-wwY0is2SY_JW4kqb0NZNHv5Dy1L-IcxCaWxfrMe-B0&s=6bkj9zcyEhwfnCmNOq9IrBij7rg6tRa0wVnHCfOOQdw&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=1484684333-PnQaf%2By2r1MS&r_address=lclemens%40hammer.net&report= > _______________________________________________ > icinga-users mailing list > icinga-users@lists.icinga.org > https://lists.icinga.org/mailman/listinfo/icinga-users -- Mathieu Arnold _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users