check_phpfpm_status icon indicating copy to clipboard operation
check_phpfpm_status copied to clipboard

changed tempfile naming, added some debugging and fixed a typo

Open magenbrot opened this issue 5 years ago • 2 comments

Hi @regilero,

I've had a problem while using your check. The temporary file was created with the hostname given as argument. This leads to problems when you have more than one PHP-FPM pool, since all data was written to the same file when using multiple checks.

I've changed the $TempFile variable to use the $Pool from the status page result.

Additionally I added some more debugging and fixed a typo.

magenbrot avatar May 24 '19 14:05 magenbrot

Hello, that's effectively a problem. Thanks for writing a fix. But from what I can read on your patch you replace this problem by another one, what about multiple servers having the same pool name? Could you rewrite your fix and alter the temporary filename by adding both the pool name and the host name? Then you could also add a a line with your name in the CHANGELOG, and a quick issue description.

regilero avatar Jun 07 '19 09:06 regilero

you're right. I'll change that

magenbrot avatar Jun 11 '19 11:06 magenbrot