Skip to content
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

Perl Notices on uninitialized values #4

Open
doertedev opened this issue Apr 15, 2014 · 1 comment
Open

Perl Notices on uninitialized values #4

doertedev opened this issue Apr 15, 2014 · 1 comment

Comments

@doertedev
Copy link

I run:
./check_phpfpm_status.pl -H 127.0.0.1 -u /fpm_status -s SOMEFANCYURL -w 10,1,1 -c 5,2,2

And get:
Use of uninitialized value $LastMaxListenQueue in numeric ge (>=) at ./check_phpfpm_status.pl line 416.
Use of uninitialized value $LastMaxListenQueue in subtraction (-) at ./check_phpfpm_status.pl line 424.
$Le actual Result$

@regilero regilero added the Bug label Apr 22, 2014
@regilero
Copy link
Owner

Ok, let's assume SOMEFANCYURL is a domain name (DNS) and not an url.
LastMaxListenQueue is always initialized (https://github.com/regilero/check_phpfpm_status/blob/master/check_phpfpm_status.pl#L387), so something may have set a null inside, maybe the read of the temporary file (https://github.com/regilero/check_phpfpm_status/blob/master/check_phpfpm_status.pl#L388-394).

Try to remove the tempfile or to read the content, it should be something like:
/tmp/127.0.0.1_check_phpfpm_status<xxxxmd5_of_urlxxx> and the 4th line should be the content set in this variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants