From 8499cdb93c877247611ed86c9aa1cc8175ab66a3 Mon Sep 17 00:00:00 2001 From: slerena Date: Tue, 31 Oct 2006 12:26:12 +0000 Subject: [PATCH] 2006-10-30 Sancho Lerena * /bin/pandora_snmpconsole.pl: Now type description will be used if no user value is provided. More descriptive SNMP console without MIB translation (for 1.3 will be a basic MIB translation to descriptive OID). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@242 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/bin/pandora_snmpconsole.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/bin/pandora_snmpconsole.pl b/pandora_server/bin/pandora_snmpconsole.pl index dd93910453..2deacfa9cb 100755 --- a/pandora_server/bin/pandora_snmpconsole.pl +++ b/pandora_server/bin/pandora_snmpconsole.pl @@ -147,7 +147,7 @@ sub pandora_snmptrapd { } else { # not custom OID type, deleting old values in these vars $custom_oid=""; $custom_type=""; - $custom_value=""; + $custom_value="type_desc"; } $sql_insert = "insert into ttrap (timestamp, source, oid, type, value, oid_custom, value_custom, type_custom) values ('$timestamp', '$source', '$oid', $type, '$value', '$custom_oid', '$custom_value', '$custom_type')"; logger ($pa_config,"Received SNMP Trap from $source",2);