You are here

function hook_nagios_settings in Nagios Monitoring 8

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

Form API elements to be included on the /admin/config/system/nagios page.

1 function implements hook_nagios_settings()

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

nagios_nagios_settings in ./nagios.module
Implements hook_nagios_settings().

File

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

Code

function hook_nagios_settings() {
  $form = [];
  $form['size_of_file'] = [
    '#type' => 'textfield',
    '#title' => 'Max file size',
    '#desciption' => 'If file is over this size, tell nagios it is an error',
  ];
  return $form;
}