prototype of a script to collect monitoring infromation from localhost