Plugins PHP-FPM

I managed to get the plugin to work:

Most important part was to realise that the script currently cannot handle tcp sockets and only works with unixsockets.
Second annoying part was that the script currently doesn’t iterate over the list, so you can only configure one socket.
Third part was that the script doesn’t tell you that a config_file is mandatory, I changed that to print it out and exit with UNKNOWN.

It’s pretty late now, maybe tomorrow I’ll provide a working code with tcp sockets. Anyways here the adjusted code:

diff php_fpm_pools php_fpm_pools.ori
80d79
<             print(self.socket_path, self.status_path)
82c81
<             #sys.exit(1)
---
>             sys.exit(1)
151,152c150
<     print("Config file does not exist or is empty!")
<     sys.exit(3)
---
>     sys.exit(0)
164a163
>