You are here

function nagios_init in Nagios Monitoring 6

Implementation of hook_init().

Based on Crell's CacheExclude project, suppresses caching of status page.

File

./nagios.module, line 28

Code

function nagios_init() {
  if (arg(0) == 'nagios' && !arg(1)) {

    // We are on the Nagios status page - do not cache.
    $GLOBALS['conf']['cache'] = FALSE;
  }
}