regilero / check_phpfpm_status

Nagios check for php-fpm status report
GNU General Public License v3.0
39 stars 19 forks source link

Error parsing parameters #7

Closed redmine24 closed 9 years ago

redmine24 commented 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:

regilero commented 9 years ago

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.

regilero commented 9 years ago

Should be fixed now