I understand this as you have LEACH protocol coded in NS-2. Hence, your sensor network can be implemented, tracked and more on computing portion from the simulator (NS2) itself. By "implement", running a simulation scenario.
Hello, A complete implementation for simulation along with source code is available at http://tetcos.com/blog/2014/01/28/wsn-leach-protocol-user-contributed-code/
Leach support is already there is ns2. You need to write some TCL scripts to evaluate the performance of LEACH. For this you may have to go through the tutorial which is available with ns2 source. If you have done some modification to LEACH then you need to recompile ns2 before running the TCL scripts. You can also see the official website of the inventor of LEACH for more information and help.