You are here

function nagios_check_themes in Nagios Monitoring 5

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

File

./nagios.module, line 431

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,
  );
}