function nagios_check_themes in Nagios Monitoring 8
Same name and namespace in other branches
- 5 nagios.module \nagios_check_themes()
- 6 nagios.module \nagios_check_themes()
- 7 nagios.module \nagios_check_themes()
Report the number of enabled modules.
Return value
array with performance information
File
- ./
nagios.module, line 829 - Main file for Nagios service monitoring.
Code
function nagios_check_themes() {
$config = Drupal::config('core.extension');
$themes = $config
->get('theme');
$count = count($themes);
$data = [
'status' => NAGIOS_STATUS_OK,
'type' => 'perf',
'text' => $count,
];
return [
'key' => 'THM',
'data' => $data,
];
}