From rectifier@gmail.com Wed Jun 24 08:23:38 2026 From: rectifier@gmail.com To: xymon@xymon.com Subject: [Xymon] Graphing terminal server connection issue Date: Mon, 23 Nov 2015 16:00:07 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6352447221863557173==" --===============6352447221863557173== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi all, I am having an issue with graphing a powershell script that announces how many connections we have to RDS farm environment. The html output (which contains the info I want to graph) is as such:

Terminal Server Status


Total users: 23
Active Sessions: 19
Disconnected Sessions: 4


UsernameSession NameSession IDStateIdle Time (hh:mm)Login etc....................... This is all on same line and there is a lot more info about the table and CSS. Is CSS ok with rrd graphing and Xymon? In xymonserver.cfg, I have termusers=ncv and termusers listed in GRAPHS= At the end of the file (just to simplify as it wasn't working) I have NCV_termusers="ActiveSessions:GAUGE,*:NONE" In graphs.cfg (but there is no rrd file as yet) I have: [termusers] TITLE Terminal Server Users YAXIS Users DEF:active=termusers.rrd:ActiveSessions:AVERAGE DEF:disc=termusers.rrd:DisconnectedSessions:AVERAGE LINE2:active#00CCCC:Active Users LINE2:disc#FF0000:Disconnected Users COMMENT:\n GPRINT:active:LAST:Active Users \: %5.1lf%s (cur) GPRINT:active:MAX: \: %5.1lf%s (max) GPRINT:active:MIN: \: %5.1lf%s (min) GPRINT:active:AVERAGE: \: %5.1lf%s (avg)\n GPRINT:disc:LAST:Disconnected Users \: %5.1lf%s (cur) GPRINT:disc:MAX: \: %5.1lf%s (max) GPRINT:disc:MIN: \: %5.1lf%s (min) GPRINT:disc:AVERAGE: \: %5.1lf%s (avg)\n But it won't create the rrd file and I am pretty sure this is because of the output, there is something in there that creates an issue. 1) any tips on how to diagnose this type of problem more efficiently? 2) anyone had a similar issue when graphing from POWERSHELL or similar to mine? The old termusers scripts (possibly from Xymonton) used to graph properly but when my colleague made the PowerShell version, the graphing never worked. Thanks! --===============6352447221863557173==-- From jlaidman@rebel-it.com.au Wed Jun 24 08:23:39 2026 From: jlaidman@rebel-it.com.au To: xymon@xymon.com Subject: [Xymon] Graphing terminal server connection issue Date: Mon, 23 Nov 2015 22:56:08 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9199962308216750507==" --===============9199962308216750507== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Steve On Tue, Nov 24, 2015 at 2:00 AM Steve B wrote: > This is all on same line and there is a lot more info about the table and > CSS. Is CSS ok with rrd graphing and Xymon? > I think this is the problem. The NCV parsing code expects the A:B (or A=B) terms to be separated by newlines. Essentially it reads in each line, looks for the first A:B and then skips to the next line. I don't think CSS is a problem. J --===============9199962308216750507==-- From jlaidman@rebel-it.com.au Wed Jun 24 08:23:39 2026 From: jlaidman@rebel-it.com.au To: xymon@xymon.com Subject: [Xymon] Graphing terminal server connection issue Date: Mon, 23 Nov 2015 23:03:51 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6187999773215735533==" --===============6187999773215735533== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Tue, Nov 24, 2015 at 9:56 AM Jeremy Laidman wrote: > I don't think CSS is a problem. > Although HTML markup before the NCV term will possibly lead to problems. The man page says: "Note that each "NAME : value" must be on a line by itself. If you have a custom script generating the status- or data-message that is fed into the NCV handler, make sure it inserts a newline before each of the data-items you want to track" J --===============6187999773215735533==-- From rectifier@gmail.com Wed Jun 24 08:23:39 2026 From: rectifier@gmail.com To: xymon@xymon.com Subject: [Xymon] Graphing terminal server connection issue Date: Tue, 24 Nov 2015 15:03:35 +0100 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2671695945481920194==" --===============2671695945481920194== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Thanks Jeremy, much appreciated. Have discussed with my colleague and he will be tweaking his script accordingly. Sure it will work after that! Cheers Steve On Tue, Nov 24, 2015 at 12:03 AM, Jeremy Laidman wrote: > On Tue, Nov 24, 2015 at 9:56 AM Jeremy Laidman > wrote: > >> I don't think CSS is a problem. >> > > Although HTML markup before the NCV term will possibly lead to problems. > The man page says: > > "Note that each "NAME : value" must be on a line by itself. If you have a > custom script generating the status- or data-message that is fed into the > NCV handler, make sure it inserts a newline before each of the data-items > you want to track" > > J > --===============2671695945481920194==-- From cleaver@terabithia.org Wed Jun 24 08:23:39 2026 From: cleaver@terabithia.org To: xymon@xymon.com Subject: [Xymon] Graphing terminal server connection issue Date: Tue, 24 Nov 2015 11:23:41 -0800 Message-ID: <6d2f6aec48db485620eb8e20f44c4350.squirrel@mail.kkytbs.net> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5791985188429031263==" --===============5791985188429031263== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Tue, November 24, 2015 6:03 am, Steve B wrote: > Thanks Jeremy, much appreciated. Have discussed with my colleague and he > will be tweaking his script accordingly. Sure it will work after that! > > Cheers > > Steve > > On Tue, Nov 24, 2015 at 12:03 AM, Jeremy Laidman > > wrote: > >> On Tue, Nov 24, 2015 at 9:56 AM Jeremy Laidman >> >> wrote: >> >>> I don't think CSS is a problem. >>> >> >> Although HTML markup before the NCV term will possibly lead to problems. >> The man page says: >> >> "Note that each "NAME : value" must be on a line by itself. If you have >> a >> custom script generating the status- or data-message that is fed into >> the >> NCV handler, make sure it inserts a newline before each of the >> data-items >> you want to track" >> >> J Depending on the nature of the script, if there's a lot of explanatory HTML there to help humans read things, I've found it's easier to have all that up front, and then list the few things I want to NCV-analyze down on their own at the bottom. At scale, you'd want to use the ncv_skipstart/skipend functionality that was put in in 4.3.22, or list the NCV data at the start and everything else below, but basically, don't be afraid to list the data components twice if it gets too messy :) https://xymon.com/help/manpages/man8/xymond_rrd.8.html#lbAH HTH, -jc --===============5791985188429031263==--