You are here

function nagios_status in Nagios Monitoring 6

Same name and namespace in other branches
  1. 8 nagios.module \nagios_status()
  2. 5 nagios.module \nagios_status()
  3. 7 nagios.module \nagios_status()

Mapping of defines to text strings that Nagios understands

3 calls to nagios_status()
nagios_check in ./nagios.drush.inc
Helper function for drush_nagios_check().
nagios_nagios_settings in ./nagios.module
Implementation of hook_nagios_settings()
nagios_status_page in ./nagios.module
Callback for the nagios status page

File

./nagios.module, line 14

Code

function nagios_status() {
  return array(
    NAGIOS_STATUS_OK => 'OK',
    NAGIOS_STATUS_WARNING => 'WARNING',
    NAGIOS_STATUS_CRITICAL => 'CRITICAL',
    NAGIOS_STATUS_UNKNOWN => 'UNKNOWN',
  );
}