Xymon Mailing List Archive search

Xymon and Lighttpd 500 Internal Error

list Guy
Thu, 29 Aug 2019 14:57:21 -0400
Message-Id: <CAKqSsrDP0uOPsx_aQYOGA1yvXOPT5RBO9A=user-743c5ba5643b@xymon.invalid>

Yea, I'm lost.

www-data at pihole:~$ export QUERY_STRING="HOST=pihole.xx.lan&SERVICE=http"
www-data at pihole:~$ echo $QUERY_STRING
HOST=pihole.xx.lan&SERVICE=http
www-data at pihole:~$ /usr/lib/xymon/cgi-bin/svcstatus.sh $QUERY_STRING
Status: 403
Refresh: 30
Content-type: text/html

<html><head><title>Invalid request</title></head>
<body>Invalid request</body></html>
www-data at pihole:~$

I couldn't find anything in the man pages or on-line documentation
about invoking svcstatus.sh on the command line.

On Thu, Aug 29, 2019 at 2:28 PM Japheth Cleaver <user-87556346d4af@xymon.invalid> 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