You are here

function hook_nagios_info in Nagios Monitoring 8

Same name and namespace in other branches
  1. 7 nagios.api.php \hook_nagios_info()

Implementing this hook generates a checkbox in the Nagios settings page.

Provide a way to enabled/disable a certain module from being included in Nagios reports and alerts.

2 functions implement hook_nagios_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

nagios_hook_test_module_nagios_info in tests/modules/nagios_hook_test_module/nagios_hook_test_module.module
Implements hook_nagios_info().
nagios_nagios_info in ./nagios.module
Implements hook_nagios_info()
1 invocation of hook_nagios_info()
NagiosCommands::nagios_list in src/Commands/NagiosCommands.php
Prints valid checks for `drush nagios`.

File

./nagios.api.php, line 14
Document hooks provided by the Nagios Monitoring module.

Code

function hook_nagios_info() {
  return [
    'name' => 'Your module name',
    'id' => 'IDENTIFIER',
  ];
}