Getting connection failed for localhost:8081

The PuppetDB plugin doesn’t use a Smart Proxy - it directly connects to PuppetDB. I’d ensure the service is running and nothing blocks it. For example, it may be a firewall or SELinux.