Execute_Command_Model Class Reference

Sends external commands to Nagios command FIFO. More...

Public Member Functions

 get_comment_ids ($command_name= 'DEL_HOST_COMMENT')
 Get ids of current comments.
 get_command_info ($cmd, $defaults=false, $dryrun=false)
 Obtain command information Complete with information and data needed to request input regarding a particular command.

Static Public Member Functions

static get_setting ($setting)
 Get the users/systems configured value for this option.

Protected Member Functions

 get_object_list ($param_name)
 Get all objects for this "param name" (which is almost object type, but not quite).
 get_downtime_ids ($command_name, $defaults=false)
 Get all downtime IDs.

Static Protected Member Functions

static get_downtime_data ($filter=false)
 Returns all downtime data.

Protected Attributes

 $dryrun = false
 Set to true to make it not actually do anything.

Detailed Description

Sends external commands to Nagios command FIFO.


Member Function Documentation

Execute_Command_Model::get_command_info ( cmd,
defaults = false,
dryrun = false 
)

Obtain command information Complete with information and data needed to request input regarding a particular command.

Parameters:
$cmd string The name (or 'id') of the command
$defaults array = false Default values for command parameters
$dryrun boolean = false Testing variable. Ignore.
Returns:
false|indexed array
Execute_Command_Model::get_comment_ids ( command_name = 'DEL_HOST_COMMENT'  ) 

Get ids of current comments.

Parameters:
$command_name Name of the command (determines which id's to get)
Returns:
array(id => object_name);
static Execute_Command_Model::get_downtime_data ( filter = false  )  [static, protected]

Returns all downtime data.

If filter is set, it can restrict the query to only hosts or only services.

static Execute_Command_Model::get_setting ( setting  )  [static]

Get the users/systems configured value for this option.

Parameters:
$setting Option name

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

Generated on 4 Apr 2014 for ninja by  doxygen 1.6.1