<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi all,<br><br></div>I am having an issue with graphing a powershell script that announces how many connections we have to RDS farm environment.<br><br></div>The html output (which contains the info I want to graph) is as such:<br><br></style> </head><body> <h2>Terminal Server Status</h2><br><b>Total users: 23<br>Active Sessions: 19 <br>Disconnected Sessions: 4</b><br><br><table class="NormalTable"><colgroup><col /><col /><col /><col /><col /><col /></colgroup><tr><th>Username</th><th>Session Name</th><th>Session ID</th><th>State</th><th>Idle Time (hh:mm)</th><th>Login <br></div>etc.......................<br><br></div>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?<br><br></div>In xymonserver.cfg, I have termusers=ncv and termusers listed in GRAPHS=<br></div>At the end of the file (just to simplify as it wasn't working) I have<br><br>NCV_termusers="ActiveSessions:GAUGE,*:NONE"<br><br></div><div>In graphs.cfg (but there is no rrd file as yet) I have:<br><br>[termusers]<br>        TITLE Terminal Server Users<br>        YAXIS Users<br>        DEF:active=termusers.rrd:ActiveSessions:AVERAGE<br>        DEF:disc=termusers.rrd:DisconnectedSessions:AVERAGE<br>        LINE2:active#00CCCC:Active Users<br>        LINE2:disc#FF0000:Disconnected Users<br>        COMMENT:\n<br>        GPRINT:active:LAST:Active Users        \: %5.1lf%s (cur)<br>        GPRINT:active:MAX: \: %5.1lf%s (max)<br>        GPRINT:active:MIN: \: %5.1lf%s (min)<br>        GPRINT:active:AVERAGE: \: %5.1lf%s (avg)\n<br>        GPRINT:disc:LAST:Disconnected Users  \: %5.1lf%s (cur)<br>        GPRINT:disc:MAX: \: %5.1lf%s (max)<br>        GPRINT:disc:MIN: \: %5.1lf%s (min)<br>        GPRINT:disc:AVERAGE: \: %5.1lf%s (avg)\n<br><br></div>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.<br><br></div>1) any tips on how to diagnose this type of problem more efficiently?<br></div>2) anyone had a similar issue when graphing from POWERSHELL or similar to mine?<br></div><br>The old termusers scripts (possibly from Xymonton) used to graph properly but when my colleague made the PowerShell version, the graphing never worked.<br><br></div>Thanks!<br><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div>