[Nagiosplug-help] check_mysql with unix sockets
Hari Sekhon
hpsekhon at googlemail.com
Wed Apr 30 10:55:00 CEST 2008
Eric Ericson wrote:
>
> I'm running into an issue trying to configure to check_mysql to use a
> unix socket (by which I mean the mysql.sock file).
>
> The only help file or documentation I can find is the output from the
> check_mysql which indicates that I can pass it via the -H or
> --hostname flag. Unfortunately though, when I use this configuration
> check_mysql throws an error about it being an invalid hostname after
> doing the appropriate DNS lookup for the full path the the sock file
> as a hostname. (e.g, '/var/lib/mysql-prod-uk/mysql.sock'.simplyhired.com).
>
> Any guidance would be appreciated,
>
> -E2
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
Looks like that plugin doesn't take socket, I guess the writer thought
that since nagios was a network service monitoring tool it would always
be used over tcp ports... assumptions assumptions....
I'd say just tell it to use -H localhost if you can, otherwise check
nagios exchange for a third party plugin that uses sockets or write one
yourself in whatever language you know.
-h
--
Hari Sekhon
More information about the Help
mailing list