op5sysinfo Class Reference

Sysinfo class. More...

Public Member Functions

 __construct ()
 Load all usage flags, since we for sure will use them sometime.
 get_usage (array $request=null)
 Get a list of all metrics in the system.
 get_monitor_usage ()
 Get number of hosts used by Monitor.
 get_monitor_service_usage ()
 Get number of services used by Monitor.
 get_logserver_usage ()
 Get number of hosts used by LogServer.
 get_pollers_usage ()
 Get number of pollers configured in the system.
 get_peers_usage ()
 Get number of peers configured in the system.
 get_aps_usage ()
 Fetch if system is an APS.
 get_trapper_usage ()
 Fetch if trapper is installed.
 get_merlininfo ()
 Fetch information from "merlin node info".

Static Public Member Functions

static instance ()
 Return sysinfo instance.

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:
op5sysinfo_Exception 
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:
op5LivestatusException 
Returns:
int
op5sysinfo::get_monitor_usage (  ) 

Get number of hosts used by Monitor.

Exceptions:
op5LivestatusException 
Returns:
int
op5sysinfo::get_peers_usage (  ) 

Get number of peers configured in the system.

Exceptions:
op5queryhandler_Exception 
Returns:
int
op5sysinfo::get_pollers_usage (  ) 

Get number of pollers configured in the system.

Exceptions:
op5queryhandler_Exception 
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]

Return sysinfo instance.

Returns:
op5sysinfo

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1