On Thu, Aug 29, 2019 at 4:16 PM Japheth Cleaver <cleaver at terabithia.org> wrote:
Sorry, there was more needed to simulate the CGI call. This should return something for you:
su -s /bin/sh www-data QUERY_STRING="HOST=pihole.xx.lan&SERVICE=http" REQUEST_METHOD=GET SCRIPT_NAME=svcstatus /usr/share/xymon/cgi-bin/svcstatus.sh
pihole:~# su -s /bin/sh www-data \h:\w$ QUERY_STRING="HOST=pihole.xx.lan&SERVICE=http" REQUEST_METHOD=GET SCRIPT_NAME=svcstatus /usr/lib/xymon/cgi-bin/svcstatus.sh Refresh: 60 Content-Security-Policy: script-src 'self'; connect-src 'self'; form-action 'self'; sandbox allow-forms allow-same-origin; X-Content-Security-Policy: script-src 'self'; connect-src 'self'; form-action 'self'; sandbox allow-forms allow-same-origin; X-Webkit-CSP: script-src 'self'; connect-src 'self'; form-action 'self'; sandbox allow-forms allow-same-origin; 2019-08-29 16:25:44.991272 No such host Status: 403 Refresh: 30 Content-type: text/html
<html><head><title>Invalid request</title></head> <body>No such host</body></html> \h:\w$
The host (pihole.xx.lan) is defined in /etc/xymon/hosts.cfg