function nagios_status in Nagios Monitoring 8
Same name and namespace in other branches
- 5 nagios.module \nagios_status()
- 6 nagios.module \nagios_status()
- 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 - Implements hook_nagios_settings().
- StatuspageController::getStringFromNagiosData in src/
Controller/ StatuspageController.php
File
- ./
nagios.module, line 26 - Main file for Nagios service monitoring.
Code
function nagios_status() {
return [
NAGIOS_STATUS_OK => 'OK',
NAGIOS_STATUS_WARNING => 'WARNING',
NAGIOS_STATUS_CRITICAL => 'CRITICAL',
NAGIOS_STATUS_UNKNOWN => 'UNKNOWN',
];
}