op5sysinfo Class Reference
Sysinfo class.
More...
Detailed Description
Sysinfo class.
Constructor & Destructor Documentation
op5sysinfo::__construct |
( |
|
) |
|
Load all usage flags, since we for sure will use them sometime.
op5sysinfo is a singleton, and thus it's better to load information once. That's easiest to do in the constructor.
Member Function Documentation
op5sysinfo::get_aps_usage |
( |
|
) |
|
Fetch if system is an APS.
- Returns:
- int, 1 for aps, 0 if not
op5sysinfo::get_logserver_usage |
( |
|
) |
|
Get number of hosts used by LogServer.
- Exceptions:
-
- Returns:
- int
op5sysinfo::get_merlininfo |
( |
|
) |
|
Fetch information from "merlin node info".
Used by get_pollers and get_peers
- Returns:
- array
op5sysinfo::get_monitor_service_usage |
( |
|
) |
|
Get number of services used by Monitor.
- Exceptions:
-
- Returns:
- int
op5sysinfo::get_monitor_usage |
( |
|
) |
|
Get number of hosts used by Monitor.
- Exceptions:
-
- Returns:
- int
op5sysinfo::get_peers_usage |
( |
|
) |
|
Get number of peers configured in the system.
- Exceptions:
-
- Returns:
- int
op5sysinfo::get_pollers_usage |
( |
|
) |
|
Get number of pollers configured in the system.
- Exceptions:
-
- Returns:
- int
op5sysinfo::get_trapper_usage |
( |
|
) |
|
Fetch if trapper is installed.
- Returns:
- int, 1 for installed, 0 if not
op5sysinfo::get_usage |
( |
array $ |
request = null |
) |
|
Get a list of all metrics in the system.
- Returns:
- array
static op5sysinfo::instance |
( |
|
) |
[static] |
The documentation for this class was generated from the following file: