Command_Model Class Reference

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

Public Member Functions

 get_setting ($setting)
 Get the users/systems configured value for this option.
 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.

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.

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

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
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);
Command_Model::get_setting ( setting  ) 

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 18 Feb 2013 for ninja by  doxygen 1.6.1