Closed redmine24 closed 9 years ago
Hello, Looks like example from help doesn't work:
$ ./check_phpfpm_status.pl -H localhost -u /status -w 1,-1,-1 -c 0,2,5 PHP-FPM OK - www, 0.044 sec. response time, Busy/Idle 35/96, (max: 160, reached: 0), ReqPerSec 33423.3, Queue 0 (len: 0, reached: 0)|Idle=96;Busy=35;MaxProcesses=160;MaxProcessesReach=0;Queue=0;MaxQueueReach=0;QueueLen=0;ReqPerSec=33423.280000
$ ./check_phpfpm_status.pl -H localhost -u /status -w -1,10,-1 -c -1,20,-1 Unknown option: 1 Unknown option: , Unknown option: 1 Unknown option: 0 Unknown option: , Unknown option: 1 Unknown option: 1 Unknown option: , Unknown option: 2 Unknown option: 0 Unknown option: , Unknown option: 1 PHP-FPM OK - www, 0.704 sec. response time, Busy/Idle 131/0, (max: 160, reached: 0), ReqPerSec 29450.4, Queue 0 (len: 0, reached: 0)|Idle=0;Busy=131;MaxProcesses=160;MaxProcessesReach=0;Queue=0;MaxQueueReach=0;QueueLen=0;ReqPerSec=29450.400000
My environment:
Thanks for the report, it seems that the "-" before the number is interpreted as an argument prefix, maybe you can try with some quotes around the argument list.
Should be fixed now
Hello, Looks like example from help doesn't work:
$ ./check_phpfpm_status.pl -H localhost -u /status -w 1,-1,-1 -c 0,2,5 PHP-FPM OK - www, 0.044 sec. response time, Busy/Idle 35/96, (max: 160, reached: 0), ReqPerSec 33423.3, Queue 0 (len: 0, reached: 0)|Idle=96;Busy=35;MaxProcesses=160;MaxProcessesReach=0;Queue=0;MaxQueueReach=0;QueueLen=0;ReqPerSec=33423.280000
$ ./check_phpfpm_status.pl -H localhost -u /status -w -1,10,-1 -c -1,20,-1 Unknown option: 1 Unknown option: , Unknown option: 1 Unknown option: 0 Unknown option: , Unknown option: 1 Unknown option: 1 Unknown option: , Unknown option: 2 Unknown option: 0 Unknown option: , Unknown option: 1 PHP-FPM OK - www, 0.704 sec. response time, Busy/Idle 131/0, (max: 160, reached: 0), ReqPerSec 29450.4, Queue 0 (len: 0, reached: 0)|Idle=0;Busy=131;MaxProcesses=160;MaxProcessesReach=0;Queue=0;MaxQueueReach=0;QueueLen=0;ReqPerSec=29450.400000
My environment: