Provides access to HostGroups stored in the Foundation Database. shallow and deep retrieval are provided.
Provides access to HostGroups stored in the Foundation Database. Both shallow and deep retrieval are provided. Shallow retrieval returns data in the following format:
Array ( [Count] => 4 [HostGroups] => Array ( [0] => Array ( [HostGroupID] => 21 [Name] => Engineering [Description] => [ApplicationTypeID] => 100 [ApplicationName] => NAGIOS ) [1] => Array ( [HostGroupID] => 28 [Name] => google [Description] => [ApplicationTypeID] => 100 [ApplicationName] => NAGIOS ) [2] => Array ( [HostGroupID] => 29 [Name] => infrastructure [Description] => [ApplicationTypeID] => 100 [ApplicationName] => NAGIOS ) [3] => Array ( [HostGroupID] => 22 [Name] => Linux Servers [Description] => [ApplicationTypeID] => 100 [ApplicationName] => NAGIOS ) ) )Deep retrieval returns data in the following format:
Array ( [Count] => 10 <=== this is the TOTAL count of hostgroups in foundation, not how many are being retrieved. [HostGroups] => Array ( [0] => Array ( [HostGroupID] => 22 [Name] => Linux Servers [Description] => [ApplicationTypeID] => 100 [ApplicationName] => NAGIOS [Hosts] => Array ( [0] => Array ( [HostID] => 1 [Name] => localhost [ApplicationTypeID] => 100 [Device] => Array ( [DeviceID] => 1 [Name] => 127.0.0.1 [Identification] => 127.0.0.1 ) [MonitorStatus] => stdClass Object ( [MonitorStatusID] => 7 [Name] => UP [Description] => Status UP ) ) ) ) [1] => Array ( [HostGroupID] => 23 [Name] => Marketing [Description] => [ApplicationTypeID] => 100 [ApplicationName] => NAGIOS [Hosts] => Array ( [0] => Array ( [HostID] => 228 [ApplicationTypeID] => 100 [Device] => Array ( [DeviceID] => 229 [Name] => sales-linux-fs02 [Identification] => 172.28.114.200 ) [Name] => sales-linux-fs02 [MonitorStatus] => stdClass Object ( [MonitorStatusID] => 7 [Name] => UP [Description] => Status UP ) ) [1] => Array ( [HostID] => 232 [ApplicationTypeID] => 100 [Device] => Array ( [DeviceID] => 233 [Name] => 172.28.113.147 [Identification] => 172.28.113.147 ) [Name] => 172.28.113.147 [MonitorStatus] => stdClass Object ( [MonitorStatusID] => 8 [Name] => PENDING [Description] => Status PENDING ) ) ) ) ) )
Located in /HostGroupDAL.inc.php (line 164)
create an instance of the HostGroupDAL
create an instance of the HostGroupDAL
gets the hostgroup corresponding to $hostGroupId. hostgroups that will include detailed host information in the response.
gets the hostgroup corresponding to $hostGroupId. Set $deep to true to do a deep retrieval of hostgroups that will include detailed host information in the response.
gets the hostgroup corresponding to $hostGroupName. hostgroups that will include detailed host information in the response.
gets the hostgroup corresponding to $hostGroupName. Set $deep to true to do a deep retrieval of hostgroups that will include detailed host information in the response.
Gets all the HostGroups. detailed host information in the response.
Gets all the HostGroups. Set $deep to true to do a deep retrieval of hostgroups that will include detailed host information in the response.
gets the hostgroups according the the filter passed in, sorted according to the fields in $sort.
gets the hostgroups according the the filter passed in, sorted according to the fields in $sort. Set $deep to true to do a deep retrieval of hostgroups that will include detailed host information in the response. Use $firstResult and $maxResults to constrain the number of hostgroups returned.
Documentation generated on Fri, 04 May 2007 16:49:44 -0700 by phpDocumentor 1.3.0RC3