I'm not entirely sure how to pass argument to svcstatus.sh on the command line. The web server runs as www-data. Here's what I tried.
www-data at pihole:~$ /usr/lib/xymon/cgi-bin/svcstatus.sh pihole.xx.lan http Status: 403 Refresh: 30 Content-type: text/html
<html><head><title>Invalid request</title></head> <body>Invalid request</body></html> www-data at pihole:~$ id uid=33(www-data) gid=33(www-data) groups=33(www-data),107(xymon) www-data at pihole:~$
On Thu, Aug 29, 2019 at 2:28 PM Japheth Cleaver <cleaver at terabithia.org> wrote:
On 8/29/2019 11:15 AM, Guy wrote:
Hello,
The Xymon index page is loading; however, when I attempt to drill down into an individual service check (invoking svcstatus.sh), lighttpd returns a 500 internal server error.
OS: Devuan Ascii 2.0 Kernel: Linux pihole 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u5 (2019-08-11) x86_64 GNU/Linux Lighttpd: Version: 1.4.45-1 Xymon: Version: 4.3.28-2
Xymon and lighttpd were both installed from the official Devuan repos using apt-get.
Here's my lighttpd config: https://clbin.com/F2LzF Here's an strace: https://clbin.com/EuesM
Thanks,
Guy
Hi,
Can you try running svcstatus.sh by hand as the web user, with the appropriate QUERY_STRING="HOST=pihole.xx.lan&SERVICE=http", and see what happens? From the stack trace it seems to get as far as the bash fork, but there's not much on the return to go on.
-jc