<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I had this issue also and not being a c programmer (and not having a lot of time to figure out) I adjusted the file "svcstatus-trends.c" on line 291:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Original: SBUF_MALLOC(allrrdlinks,16384)</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
New: SBUF_MALLOC(allrrdlinks,163840)<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
So the buffer value times 10. After this I got rid of the 500 error. So I think the buffer is to little for some environments.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div></div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div>Met vriendelijke groet, </div>
<div>
<div>
<div style="text-indent:0"><font size="1" face="Helvetica" color="black"><span style="font-size:12px; font-weight:normal; font-variant:normal; text-transform:none"><font size="1" face="Calibri,sans-serif"><span style="font-size:13px" lang="en-GB"><b>Herald
 ten Dam<br>
</b></span></font></span></font></div>
<div style="text-indent:0; margin:0"><font size="1" face="Calibri,sans-serif" color="black"><span style="font-size:13px; font-weight:normal; font-variant:normal; text-transform:none">Database Specialist Oracle, Medior z/VM<br>
</span></font></div>
<div style="text-indent:0"><font size="1" face="Calibri" color="black"><span style="font-size:13px; font-weight:normal; font-variant:normal; text-transform:none"><span lang="en-GB"><br>
</span></span></font></div>
<font size="1" face="Calibri" color="black"><span style="font-size:13px; font-weight:normal; font-variant:normal; text-transform:none"></span></font><font size="1" face="Calibri,sans-serif" color="black"><span style="font-size:13px; font-weight:normal; font-variant:normal; text-transform:none"><span lang="en-GB"><b>ICU
 IT Services BV</b></span></span></font>
<div style="text-indent:0; margin:0"><font size="1" face="Calibri,sans-serif" color="black"><span style="font-size:13px; font-weight:normal; font-variant:normal; text-transform:none"><span lang="en-GB">Transistorstraat 55b  I  1322 CK  ALMERE</span></span></font></div>
<div style="text-indent:0; margin:0"><font size="1" face="Calibri,sans-serif" color="black"><span style="font-size:13px; font-weight:normal; font-variant:normal; text-transform:none"><span lang="en-GB"><b> </b></span></span></font></div>
<div style="text-indent:0; margin:0"><font size="1" face="Calibri,sans-serif" color="black"><span style="font-size:13px; font-weight:normal; font-variant:normal; text-transform:none"><font color="#990033"><span lang="en-GB"><b>M</b></span></font><span lang="en-GB"> 06
 – 28 891 653 I </span><font color="#990033"><span lang="en-GB"><b>E </b></span></font><a href="mailto:herald.ten.dam@icu-it.nl"><font face="Calibri">herald.ten.dam@icu-it.nl</font></a></span></font></div>
<div style="text-indent:0; margin:0"><font size="1" face="Calibri,sans-serif" color="black"><span style="font-size:13px; font-weight:normal; font-variant:normal; text-transform:none"><font color="#990033"><span lang="en-GB"><b>T</b></span></font><span lang="en-GB"> 088
 – 5 234 123 I </span><a target="_blank" href="http://www.icu-it.nl" title="http://www.icu-it.nl"><font color="purple"><span lang="de"><font color="windowtext"><span lang="en-GB">www.icu-it.nl</span></font></span></font></a><span lang="en-GB"> I KvK 32135776</span></span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Van:</b> Xymon <xymon-bounces@xymon.com> namens xymon-request@xymon.com <xymon-request@xymon.com><br>
<b>Verzonden:</b> dinsdag 13 oktober 2020 12:00<br>
<b>Aan:</b> xymon@xymon.com <xymon@xymon.com><br>
<b>Onderwerp:</b> Xymon Digest, Vol 117, Issue 7</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Send Xymon mailing list submissions to<br>
        xymon@xymon.com<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
or, via email, send a message with subject or body 'help' to<br>
        xymon-request@xymon.com<br>
<br>
You can reach the person managing the list at<br>
        xymon-owner@xymon.com<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Xymon digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Too much data for svcstatus.sh? (Henrik St?rner)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 12 Oct 2020 16:01:09 +0200<br>
From: Henrik St?rner <henrik@hswn.dk><br>
To: xymon@xymon.com<br>
Subject: Re: [Xymon] Too much data for svcstatus.sh?<br>
Message-ID: <46a50f10-4fe1-4990-fa37-4062e8da7921@hswn.dk><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
Hi,<br>
<br>
the best way to debug this is to get a proper stack trace of when the<br>
program crashes. For this, you first need to make sure you have a binary<br>
of svcstatus.cgi which includes debug information - if you look at the<br>
Xymon sources, the build/Makefile.Linux file has a commented-out line<br>
setting the CFLAGS variable for debugging:<br>
<br>
# Compile flags for debugging<br>
# CFLAGS = -g -DDEBUG -Wall -D_REENTRANT $(LFSDEF) $(OSDEF)<br>
<br>
Uncomment the last line, run "make clean; make" and then use the<br>
web/svcstatus.cgi binary from that.<br>
<br>
To run the program in the gdb debugger, I would bypass the web server<br>
CGI and run it by hand like this:<br>
<br>
$ export SCRIPT_NAME="svcstatus.sh"<br>
$ export REQUEST_METHOD="GET"<br>
$ export QUERY_STRING="HOST=claudio.hswn.dk&SERVICE=disk"<br>
$ gdb ./web/svcstatus.cgi<br>
(gdb) run<br>
<br>
The value for the QUERY_STRING should be taken from the URL for your<br>
status-page - the part after the '?' sign. The example here is from the<br>
xymon.com site, but you really just need to modify the hostname to that<br>
of your own.<br>
<br>
Note that you must run it on the Xymon server, because it reads the file<br>
stored there.<br>
<br>
<br>
Regards,<br>
Henrik<br>
<br>
Den 21.05.2020 kl. 17.47 skrev Mike Burger:<br>
> Good morning.<br>
><br>
> Running Xymon 4.3.30, compiled from source tarball, on a RHEL 6.10<br>
> server.<br>
><br>
> This morning, I encountered an interesting issue.<br>
><br>
> I have a monitored system that has 197 discrete filesystems/mounts.<br>
><br>
> When I attempt to enter this server's "Trends" section, I receive an<br>
> internal server error (500).<br>
><br>
> My httpd error log shows this when I attempt to access the trends link<br>
> for the server in question:<br>
><br>
> [Thu May 21 11:29:41 2020] [error] [client 10.40.24.55] Premature end<br>
> of script headers: svcstatus.sh, referer:<br>
> <a href="http://sysmon.fhmc.local/xymon/edmprod/edmprod.html">http://sysmon.fhmc.local/xymon/edmprod/edmprod.html</a><br>
> [Thu May 21 11:29:59 2020] [error] [client 10.40.24.55] *** glibc<br>
> detected *** /apps/xymon/server/bin/svcstatus.cgi: realloc(): invalid<br>
> next size: 0x0000000000de7dd0 ***, referer:<br>
> <a href="http://sysmon.fhmc.local/xymon/edmprod/edmprod.html">http://sysmon.fhmc.local/xymon/edmprod/edmprod.html</a><br>
> [Thu May 21 11:29:59 2020] [error] [client 10.40.24.55]<br>
> /apps/xymon/server/bin/svcstatus.cgi[0x408a4f], referer:<br>
> <a href="http://sysmon.fhmc.local/xymon/edmprod/edmprod.html">http://sysmon.fhmc.local/xymon/edmprod/edmprod.html</a><br>
> [Thu May 21 11:29:59 2020] [error] [client 10.40.24.55]<br>
> /apps/xymon/server/bin/svcstatus.cgi[0x403453], referer:<br>
> <a href="http://sysmon.fhmc.local/xymon/edmprod/edmprod.html">http://sysmon.fhmc.local/xymon/edmprod/edmprod.html</a><br>
> [Thu May 21 11:29:59 2020] [error] [client 10.40.24.55]<br>
> /apps/xymon/server/bin/svcstatus.cgi[0x404bb7], referer:<br>
> <a href="http://sysmon.fhmc.local/xymon/edmprod/edmprod.html">http://sysmon.fhmc.local/xymon/edmprod/edmprod.html</a><br>
> [Thu May 21 11:29:59 2020] [error] [client 10.40.24.55]<br>
> /apps/xymon/server/bin/svcstatus.cgi[0x4022c9], referer:<br>
> <a href="http://sysmon.fhmc.local/xymon/edmprod/edmprod.html">http://sysmon.fhmc.local/xymon/edmprod/edmprod.html</a><br>
> [Thu May 21 11:29:59 2020] [error] [client 10.40.24.55]<br>
> 00400000-0043c000 r-xp 00000000 fd:08<br>
> 24906?????????????????????????????<br>
> /apps/xymon/server/bin/svcstatus.cgi, referer:<br>
> <a href="http://sysmon.fhmc.local/xymon/edmprod/edmprod.html">http://sysmon.fhmc.local/xymon/edmprod/edmprod.html</a><br>
> [Thu May 21 11:29:59 2020] [error] [client 10.40.24.55]<br>
> 0063c000-0063e000 rw-p 0003c000 fd:08<br>
> 24906?????????????????????????????<br>
> /apps/xymon/server/bin/svcstatus.cgi, referer:<br>
> <a href="http://sysmon.fhmc.local/xymon/edmprod/edmprod.html">http://sysmon.fhmc.local/xymon/edmprod/edmprod.html</a><br>
><br>
> This does not happen for any other monitored system in my environment.<br>
><br>
> This system is one of the more critical servers in my environment, so<br>
> I'd like to figure out what's going on and remediate it if possible.<br>
><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
Xymon@xymon.com<br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Xymon Digest, Vol 117, Issue 7<br>
*************************************<br>
</div>
</span></font></div>
</div>
</body>
</html>