-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for connecting to an UNIX socket #22
base: master
Are you sure you want to change the base?
Conversation
Hello, I'll need to test that, but at first impression it seems good. Thanks. Hope I can take some time soon to review it more deeply. |
check_phpfpm_status.pl
Outdated
@@ -107,6 +108,8 @@ sub help { | |||
ServerName, (host header of HTTP request) use it if you specified an IP in -H to match the good Virtualhost in your target | |||
-f, --fastcgi | |||
Connect directly to php-fpm via network or local socket, using fastcgi protocol instead of HTTP. | |||
-u, --unixsocket |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The -u
option is already used as a shortcut for --url
. My perl is a bit rusty, but it looks like there is no short form for the --unixsocket
option at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx, you are right. The problem is that the most useful short forms are already in use (-u -U -s -S). I'm considering to give --unixsocket no short form (like --verifyssl). Someone else having an idea? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I am happy with the long form - it's an icinga plugin, so not something we need to type regularly :)
* fix indention
Hi @regilero!
Here's a merge request that adds support for UNIX sockets.
Notes: when --unixsocket is used, -f --fastcgi is implied