Cleaned source code.
This commit is contained in:
parent
ab46cde699
commit
c817d96937
|
@ -916,10 +916,10 @@ function api_get_module_properties_by_name($agent_name, $module_name, $other, $r
|
|||
function get_module_properties($id_module, $fields, $separator, $returnType, $returnReplace)
|
||||
{
|
||||
/** NOTE: if you want to add an output field, you have to add it to;
|
||||
1. $module_properties_master_fields (field name in order)
|
||||
2. Update field_column_mapping array (arraies are shared with get_tree_agents()).
|
||||
Each entry is (DB coloum name => query fragment)
|
||||
**/
|
||||
1. $module_properties_master_fields (field name in order)
|
||||
2. Update field_column_mapping array (arraies are shared with get_tree_agents()).
|
||||
Each entry is (DB coloum name => query fragment)
|
||||
**/
|
||||
|
||||
/* all of output field names */
|
||||
$module_properties_master_fields = array(
|
||||
|
|
|
@ -38,8 +38,10 @@ if (is_ajax()) {
|
|||
if ($action == "snmptree") {
|
||||
$starting_oid = (string) get_parameter ("starting_oid", '.');
|
||||
|
||||
$snmp_tree = snmp_browser_get_tree ($target_ip, $community, $starting_oid, $snmp_version,
|
||||
$snmp3_auth_user, $snmp3_security_level, $snmp3_auth_method, $snmp3_auth_pass, $snmp3_privacy_method, $snmp3_privacy_pass);
|
||||
$snmp_tree = snmp_browser_get_tree(
|
||||
$target_ip, $community, $starting_oid, $snmp_version,
|
||||
$snmp3_auth_user, $snmp3_security_level, $snmp3_auth_method,
|
||||
$snmp3_auth_pass, $snmp3_privacy_method, $snmp3_privacy_pass);
|
||||
if (! is_array ($snmp_tree)) {
|
||||
echo $snmp_tree;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue