Building a custom agent on UNIX
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.
The FileOnOff online entry point creates the file if it does not already exist.
The FileOnOff offline entry point deletes the file.
The FileOnOff monitor entry point returns online and confidence level 100 if the file exists; otherwise, it returns offline.