function nagios_check_themes in Nagios Monitoring 6
Same name and namespace in other branches
- 8 nagios.module \nagios_check_themes()
- 5 nagios.module \nagios_check_themes()
- 7 nagios.module \nagios_check_themes()
Report the number of enabled themes.
Return value
Array
File
- ./
nagios.module, line 821
Code
function nagios_check_themes() {
$count = (int) db_result(db_query("SELECT COUNT(*) FROM {system} WHERE status = 1 AND type = 'theme'"));
$data = array(
'status' => NAGIOS_STATUS_OK,
'type' => 'perf',
'text' => $count,
);
return array(
'key' => 'THM',
'data' => $data,
);
}