The following sections describe different ways to build an agent, using the "FileOnOff" resource as an example. For test purposes, instructions for installing the agent on a single system are also provided.
Note the following about the FileOnOff agent entry points. A FileOnOff resource represents a regular file.
online
entry point creates the file if it does not already exist.
offline
entry point deletes the file.
monitor
entry point returns online and confidence level 100 if the file exists; otherwise, it returns offline.