12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- // $Id$
- /**
- * @file
- * Core Drupal instrumentation for Munin
- */
- /**
- * Implements hook_munin_api_info().
- *
- * @return
- * An array of Munin probes informations, index by probe name.
- */
- function munin_core_munin_api_info() {
- $ret = array(
- 'munin_core' => array(
- '#title' => t('Drupal core'),
- '#description' => t('Collect core information from a Drupal instance'),
- 'user_current' => array(
- '#title' => t('Currently logged-in users'),
- '#type' => MUNIN_API_GAUGE,
- ),
- 'user_count' => array(
- '#title' => t('Number of users'),
- '#type' => MUNIN_API_COUNTER,
- ),
- 'user_active_count' => array(
- '#title' => t('Number of active users'),
- '#type' => MUNIN_API_COUNTER,
- ),
- 'user_blocked_count' => array(
- '#title' => t('Number of blocked users'),
- '#type' => MUNIN_API_COUNTER,
- ),
- 'node_count' => array(
- '#title' => t('Number of nodes.'),
- '#type' => MUNIN_API_COUNTER,
- ),
- 'comment_count' => array(
- '#title' => t('Number of comments.'),
- '#type' => MUNIN_API_COUNTER,
- ),
- ),
- );
- return $ret;
- }
|