Random Project

Small Fixes

I had a small problem. The NSClient run as SYSTEM account, which is not CitrixAdministrator. I removed the lines 110-113 and everything seems to work. I’m not sure if this is special to my environment.
Line 110: If theFarm.WinFarmObject.IsCitrixAdministrator = 0 then

I had a problem with NSClient 0.4.172 which doesn’ t like the perf data, because the perf data is not divided by a space. I added a space after every ‘;’
outputMessage=intSessions& ” sesions – “& intActive& ” active, “_
& intDisconnected& ” disconnected. Number of users: “_
& numberOfUniqueUsers& “. |sessions_total=”& intSessions& “; sessions_active=”_
& intActive& “; sessions_disconnected=”& intDisconnected& “; users=”& numberOfUniqueUsers