Monitor number of connected users (Citrix, RDP etc)

Hello,

I have build a function so I can see how many users are connected to a specified port. For Citrix I use this:

Function name: No_of_CTXsessions

if(array_size(oid_column("1.3.6.1.2.1.6.13.1.2.192.168.1.100.1494"))>0,array_size(oid_column("1.3.6.1.2.1.6.13.1.2.192.168.1.100.1494")), "0")

The part 192.168.1.100 is the op address of the device that I am probing. This works as it should. The problem is, that I want to convert this to a universal function, and not hardcode the IP addres. I have tried this:

if(array_size(oid_column("1.3.6.1.2.1.6.13.1.2.[Device.FirstAddress].1494"))>0,array_size(oid_column("1.3.6.1.2.1.6.13.1.2.[Device.FirstAddress].1494")), "0")

This is not working. Anyone got an idea how to get this to work?

Thanks!

If you are putting the probe on the device running RDP the IP field is optional… OID uses the device.firstaddress automatically. Although I think I saw someone use it the way you are describing I will have to look around or test to figure out the correct syntax, you probably don’t need and maybe need Device.FirstAddress(). Look through gsandul’s posts in the meantime. I’ll be on later or tomorrow.