As the web continues to grow in both content and the number of connected devices, peer-to-peer computing is becoming increasingly prevalent. By using peer to peer, applications could provide access to a variety of resources with high availability at a lower cost. We use peer to peer technology to deploy mobile agent community. Their objective is to gather data about local state of machine and to build more abstract observation of the whole network. The peer to peer configuration is defined by the use of JXTA framework and the mobile agent can travel from one machine to another by the use of XML serialization. Because this kind of serialization allows keeping state of agent, data collecting is realized with a community of mobile agents, each of them are responsible of a type of data.