Provides access to Host and HostStatus information stored in the Foundation Database.
Provides access to Host and HostStatus information stored in the Foundation Database. Host data is returned in the following format:
Array ( [Count] => 2 [Hosts] => Array ( [172.28.111.17] => Array ( [HostID] => 2 [Name] => 172.28.111.17 [ApplicationTypeID] => 100 [LastCheckTime] => 04-18-2007 14:54:17PM [Device] => stdClass Object ( [DeviceID] => 3 [Name] => 172.28.111.17 [Identification] => 172.28.111.17 ) [MonitorStatus] => stdClass Object ( [MonitorStatusID] => 7 [Name] => UP [Description] => Status UP ) [LastPluginOutput] => OK - 172.28.111.17: rta 73.889ms, lost 0% [CurrentNotificationNumber] => 0 [ScheduledDowntimeDepth] => 0 [TimeDown] => 1176762847 [TimeUnreachable] => 0 [TimeUp] => 1176933257 [ExecutionTime] => 0 [Latency] => 0 [PercentStateChange] => 0 [isAcknowledged] => [isChecksEnabled] => 1 [isEventHandlersEnabled] => 1 [isFailurePredictionEnabled] => 1 [isFlapDetectionEnabled] => 1 [isHostFlapping] => [isNotificationsEnabled] => 1 [isPassiveChecksEnabled] => 1 [isProcessPerformanceData] => 1 [LastStateChange] => 04-16-2007 15:34:16PM ) [172.28.111.18] => Array ( [HostID] => 3 [Name] => 172.28.111.18 [ApplicationTypeID] => 100 [LastCheckTime] => 04-18-2007 14:56:25PM [Device] => stdClass Object ( [DeviceID] => 4 [Name] => 172.28.111.18 [Identification] => 172.28.111.18 ) [MonitorStatus] => stdClass Object ( [MonitorStatusID] => 7 [Name] => UP [Description] => Status UP ) [LastPluginOutput] => OK - 172.28.111.18: rta 62.015ms, lost 0% [CurrentNotificationNumber] => 0 [ScheduledDowntimeDepth] => 0 [TimeDown] => 1176846162 [TimeUnreachable] => 0 [TimeUp] => 1176933385 [ExecutionTime] => 0 [Latency] => 0 [PercentStateChange] => 0 [isAcknowledged] => [isChecksEnabled] => 1 [isEventHandlersEnabled] => 1 [isFailurePredictionEnabled] => 1 [isFlapDetectionEnabled] => 1 [isHostFlapping] => [isNotificationsEnabled] => 1 [isPassiveChecksEnabled] => 1 [isProcessPerformanceData] => 1 [LastStateChange] => 04-17-2007 14:42:42PM ) ) )
Located in /HostDAL.inc.php (line 108)
Create a HostDAL instance
Create a HostDAL instance
Get a host by host id
Get a host by host id
get a host by hostname
get a host by hostname
Get all the hosts - no filters or restrictions
Get all the hosts - no filters or restrictions
Retrieve hosts by defining a filter, sort and pagination parameters.
Retrieve hosts by defining a filter, sort and pagination parameters.
get all the hosts for a hostgroup specified by hostgroupId
get all the hosts for a hostgroup specified by hostgroupId
get all the hosts for the hostgroup specified by hostGroupName
get all the hosts for the hostgroup specified by hostGroupName
Retrieves all hosts specified in host name array. no exception is thrown.
Retrieves all hosts specified in host name array. If a host is not found then it is just not returned and no exception is thrown. Use $firstResult and $maxResults to constrain the number of hosts that are returned at one time.
Get the hosts for the monitor server specified
Get the hosts for the monitor server specified
Get hosts associated with the service with the description provided
Get hosts associated with the service with the description provided
Get all troubled hosts - Hosts with a monitor status which is not UP.
Get all troubled hosts - Hosts with a monitor status which is not UP. Use $firstResult and $maxResults to constrain the number of hosts that are returned at one time.
Documentation generated on Fri, 04 May 2007 16:49:44 -0700 by phpDocumentor 1.3.0RC3