Execute a given command with asmonitor, and return the result. More...
Public Member Functions | |
crash ($msg) | |
Print error and die. | |
expandmacros ($cmd, $macros) | |
Expand macros in a way similar to how nagios would do it. | |
runcmd ($cmd, $macros=array(), $node=false) | |
Given a command, run it and return the output. | |
Static Public Attributes | |
static | $status |
Service status names. | |
static | $host_status |
Host status names. |
Execute a given command with asmonitor, and return the result.
cmd_test::$host_status [static] |
array( 0 => 'OK', 1 => 'DOWN', 2 => 'UNREACHABLE' )
Host status names.
cmd_test::$status [static] |
array( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' )
Service status names.