regilero / check_phpfpm_status

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

temp filename does not depend on port #26

Open uschwarz opened 4 years ago

uschwarz commented 4 years ago

If you talk directly to the fastcgi port, url is only the path, /status by default. This means if you run several different php-fpm daemons (for example: multiple version of PHP) on different ports, those all overwrite each others stored data.

To fix, you could probably hash more data (including $o_port) in

my $TempFile = $TempPath.$o_host.'_check_phpfpm_status'.md5_hex($url);