We made a Plugin for checking status of serial based devices.By running the curl (curl -v http://ip-address:5050/hardware-status)command in terminal we were getting error free output.Whereas in icinga web its showing errors.I am attaching screenshots for reference.Your support is required.
Permission denied may indicate that your check is restricted by SELinux. What Linux distribution are you using?
Another possible way to get something like this: you’re probably running the check as a different user and you can create firewall rules matching on users information with iptables and nftables.