diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-04-27 13:46:18 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-04-27 13:46:18 +0000 |
commit | 197f1a047712d303efa5adbe77bc71b75d4bb992 (patch) | |
tree | 3f756a119296e8fdeae7232667b17f01727067fe /frontends/php/discoveryconf.php | |
parent | 40925dcf142fcd6b8aa3f56c7c17d2b493dc3095 (diff) | |
download | zabbix-197f1a047712d303efa5adbe77bc71b75d4bb992.tar.gz zabbix-197f1a047712d303efa5adbe77bc71b75d4bb992.tar.xz zabbix-197f1a047712d303efa5adbe77bc71b75d4bb992.zip |
- added new drchecks (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@4071 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/discoveryconf.php')
-rw-r--r-- | frontends/php/discoveryconf.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/frontends/php/discoveryconf.php b/frontends/php/discoveryconf.php index 62fe233e..6c16f422 100644 --- a/frontends/php/discoveryconf.php +++ b/frontends/php/discoveryconf.php @@ -48,6 +48,8 @@ include_once "include/page_header.php"; 'isset({add_check})'), "new_check_ports"=> array(T_ZBX_PORTS, O_OPT, null, NOT_EMPTY, 'isset({add_check})'), + "new_check_key"=> array(T_ZBX_STR, O_OPT, null, NOT_EMPTY, 'isset({add_check})'), + "new_check_snmp_community"=> array(T_ZBX_STR, O_OPT, null, NOT_EMPTY, 'isset({add_check})'), "type_changed"=> array(T_ZBX_INT, O_OPT, null, IN(1), null), @@ -71,11 +73,13 @@ include_once "include/page_header.php"; ?> <?php - if(inarr_isset(array('add_check', 'new_check_type', 'new_check_ports'))) + if(inarr_isset(array('add_check', 'new_check_type', 'new_check_ports', 'new_check_key', 'new_check_snmp_community'))) { $new_dcheck = array( 'type' => $_REQUEST['new_check_type'], 'ports'=> $_REQUEST['new_check_ports'] + 'key'=> $_REQUEST['new_check_key'] + 'snmp_community'=> $_REQUEST['new_check_snmp_community'] ); if( !in_array($new_dcheck, $_REQUEST['dchecks'])) $_REQUEST['dchecks'][] = $new_dcheck; |