mabitt / mab-nagios-plugins

Bunch of nagios plugins - haproxy, passenger, php-fpm, redis, urlmd5
9 stars 5 forks source link

Error on check_phpfpm (bad grep usage for parse) #1

Open exos opened 12 years ago

exos commented 12 years ago

Hi, i want use this nagios plugin but trhow an error. I edited and fix it. In grep command parameters you find match with "active", but in the actual version of PHP-FPM there too "max active processes:"

I modified this and other section of script.

You see the changes (explained) here:

https://github.com/exos/mab-nagios-plugins/commit/becbf6b2db23aafb08e8c67fe66e1f7a50e31714#diff-6

mabitt commented 12 years ago

which version are you using?

exos commented 12 years ago

Of the "mab-nagios-plugins", I use the last master push, and the PHP 5.3.13 (compiled by dotdeb, patched with Suhosin 0.9.33), the data arrived from status page is like that:

pool: www process manager: dynamic start time: 05/Jun/2012:22:03:47 +0000 start since: 827629 accepted conn: 8837662 listen queue: 0 max listen queue: 48 listen queue len: 128 idle processes: 29 active processes: 6 total processes: 35 max active processes: 43 max children reached: 0

Chek my pull request, i fix it and works!