Skip to content

Commit 22b7f84

Browse files
author
A. Täffner
committed
first test for nagios view
1 parent ca7e961 commit 22b7f84

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

interface/web/admin/form/server_config.tform.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,34 @@
357357
'width' => '40',
358358
'maxlength' => '255'
359359
),
360+
'nagios_url' => array(
361+
'datatype' => 'VARCHAR',
362+
'formtype' => 'TEXT',
363+
'default' => '',
364+
'validators' => array ( 0 => array ( 'type' => 'REGEX',
365+
'regex' => '/^((?:http|https)(?::\\/{2}[\\w]+)(?:[\\/|\\.]?)(?:[^\\s"]*))$/',
366+
'errmsg'=> 'nagios_url_error_regex'),
367+
),
368+
'value' => '',
369+
'width' => '40',
370+
'maxlength' => '255'
371+
),
372+
'nagios_user' => array(
373+
'datatype' => 'VARCHAR',
374+
'formtype' => 'TEXT',
375+
'default' => '',
376+
'value' => '',
377+
'width' => '40',
378+
'maxlength' => '255'
379+
),
380+
'nagios_password' => array(
381+
'datatype' => 'VARCHAR',
382+
'formtype' => 'TEXT',
383+
'default' => '',
384+
'value' => '',
385+
'width' => '40',
386+
'maxlength' => '255'
387+
),
360388
'monitor_system_updates' => array(
361389
'datatype' => 'VARCHAR',
362390
'formtype' => 'CHECKBOX',

interface/web/admin/lib/lang/de_server_config.lng

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ $wb['munin_user_txt'] = 'Munin-Benutzer';
198198
$wb['munin_password_txt'] = 'Munin-Passwort';
199199
$wb['munin_url_error_regex'] = 'Ungültige Munin-URL';
200200
$wb['munin_url_note_txt'] = 'Platzhalter:';
201+
$wb['nagios_url_txt'] = 'Nagios/Check_MK-URL';
202+
$wb['nagios_user_txt'] = 'Nagios-Benutzer';
203+
$wb['nagios_password_txt'] = 'Nagios-Passwort';
204+
$wb['nagios_url_error_regex'] = 'Ungültige Nagios-URL';
205+
$wb['nagios_url_note_txt'] = 'Platzhalter:';
201206
$wb['backup_dir_is_mount_txt'] = 'Backupverzeichnis ist ein eigener Mount?';
202207
$wb['backup_dir_mount_cmd_txt'] = 'Mount-Befehl, falls Backupverzeichnis nicht gemountet';
203208
$wb['backup_delete_txt'] = 'Backups loeschen wenn eine Domain / Webseite geloescht wird';

0 commit comments

Comments
 (0)