On 8/29/2019 1:30 PM, Guy wrote:
On Thu, Aug 29, 2019 at 4:16 PM Japheth Cleaver <user-87556346d4af@xymon.invalid> 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
Hmm. Is the 'xx' here a literal or a replacement domain? If the latter,
does the original domain have a "-" in it? There was a recent bug
regarding display issues for this and the fix might not have made it
into the package.
More broadly, are you seeing similar behavior for all svcstatus pages
you're hitting? And do other CGI pages come up OK?
-jc