cmd_test Class Reference

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.

Detailed Description

Execute a given command with asmonitor, and return the result.


Field Documentation

cmd_test::$host_status [static]
Initial value:
 array(
                0 => 'OK',
                1 => 'DOWN',
                2 => 'UNREACHABLE'
        )

Host status names.

cmd_test::$status [static]
Initial value:
 array(
                0 => 'OK',
                1 => 'WARNING',
                2 => 'CRITICAL',
                3 => 'UNKNOWN'
        )

Service status names.


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

Generated on 22 Nov 2012 for nacoma by  doxygen 1.6.1