2008-10-10 Sancho Lerena <slerena@artica.es>

* bin/pandora_snmpconsole: Trap SNMP forward not will included in 
	this version, moved to 2.1 roadmap.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1138 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2008-10-09 18:21:24 +00:00
parent ede7475ef6
commit c8eb211e98
2 changed files with 4 additions and 13 deletions

View File

@ -1,5 +1,8 @@
2008-10-10 Sancho Lerena <slerena@artica.es> 2008-10-10 Sancho Lerena <slerena@artica.es>
* bin/pandora_snmpconsole: Trap SNMP forward not will included in
this version, moved to 2.1 roadmap.
* bin/pandora_snmpconsole: Added support to get custom value, * bin/pandora_snmpconsole: Added support to get custom value,
custom type and custom OID. Code for trap2agent forward feature custom type and custom OID. Code for trap2agent forward feature
not fully implemented, don't work yet, need finish. not fully implemented, don't work yet, need finish.

View File

@ -167,19 +167,7 @@ sub pandora_snmptrapd {
if ($@) { if ($@) {
logger ($pa_config, "[ERROR] Cannot access to database while updating SNMP Trap data",0); logger ($pa_config, "[ERROR] Cannot access to database while updating SNMP Trap data",0);
logger ($pa_config, "[ERROR] SQL Errorcode: $@", 2); logger ($pa_config, "[ERROR] SQL Errorcode: $@", 2);
} }
if ( $trap2agent eq "1"){
# Forward trap to agent into module "SNMPTrap";
# Exist an agent with this IP ?
if (pandora_check_ip ($pa_config, $dbh, $source) == 1){
# TODO: Falta la ultima parte (coger el nombre del agente e insertar el dato, comprobar que el codigo que hay aqui funciona OK).
my $agent_name = ''; #DAME NOMBRE DEL AGENTE A PARTIR DE LA IP;
my $mydata = "$oid $value $custom_oid $custom_value";
# Insert string data
module_generic_data_string ($pa_config, $mydata, $timestamp, $agent_name, 'SNMPTrap', $dbh);
}
}
} }
} }
sleep ($pa_config{'server_threshold'}); sleep ($pa_config{'server_threshold'});