Solution for Resource Sharing in Manufacturing Grid -- Using Agents to Detect