← Back to team overview

mosquitto-users team mailing list archive

Re: How to monitor Client ID in broker

 

Hi Andy,

Andy is right, there's no way to do this in mosquitto specifically. If
you really need to do this, you can recreate it using client
behaviour: http://mqtt.org/wiki/doku.php/presence

Cheers,

Roger


On Wed, Oct 10, 2012 at 12:34 PM, andypiperuk@xxxxxxxxx
<andypiperuk@xxxxxxxxx> wrote:
> Hi Andy
>
> Curious why you would specifically need to do this?
>
> The idea of a publish-and-subscribe system is that publishers and
> subscribers/consumers are not aware of one another.
>
> I don't think there's a way to monitor specific client IDs with mosquitto
> but I guess you could scrape the broker log to find out which clients are
> connecting.
>
> Andy
>
> On Wed, Oct 10, 2012 at 9:37 AM, andy zhang <andyzhang.h@xxxxxxxxx> wrote:
>>
>> Hi all,
>>
>> Is there anyone know how to monitor client connected with broker?
>> If subscribe to $SYS/broker/clients/#, I can get the number of connected
>> clients, but I don't know how to get more details information, such as
>> client ID...
>>
>> Regards,
>> Andy
>>
>> --
>> Mailing list: https://launchpad.net/~mosquitto-users
>> Post to     : mosquitto-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~mosquitto-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>
>
> --
> Andy Piper | Farnborough, Hampshire (UK)
> blog: http://andypiper.co.uk   |   skype: andypiperuk
> twitter: @andypiper  |  images: http://www.flickr.com/photos/andypiper
>
> --
> Mailing list: https://launchpad.net/~mosquitto-users
> Post to     : mosquitto-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~mosquitto-users
> More help   : https://help.launchpad.net/ListHelp
>


Follow ups

References