|
Checks a service and returns its status. This is the heart of the library and the whole reason we're around. Some of the parameters given to this function may or may not be used by the service check, it all depends on the type of service being checked.
- Parameters:
-
addr | Address of the machine hosting the service. |
port | Port that the service is running on. This may only be useful for some services, HTTP for example. For others, the port is meaningless, like NIS or NFS. |
type | Type of service, used to lookup the proper service check function. |
use_ssl | Flag indicating if we should use SSL to do the check, this is only appropriate for some services, for others it's quite meaningless (NIS for example) |
pool | Pool for dynamic memory and resource allocation. |
- Returns:
- Status of the service, also indicates if an error occured and contains details of any problems that occured and any information useful in diagnosing the situation. In the case of success, other useful statistics are given, such as how long the service took to respond.
|