2009-02-11 Sancho Lerena <slerena@artica.es>

* bin/pandora_network: Restored lock for icmp / ping calls.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1447 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2009-02-12 09:50:49 +00:00
parent d2feb4bfbe
commit 852dcbe190
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-02-11 Sancho Lerena <slerena@artica.es>
* bin/pandora_network: Restored lock for icmp / ping calls.
2009-02-11 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Combined alerts are working again.

View File

@ -301,7 +301,7 @@ sub pandora_ping_icmp {
my $p;
# Some hosts don't accept ICMP with too small payload. Use 16 Bytes min
{
#lock $icmp_lock;
lock $icmp_lock;
$p = Net::Ping->new("icmp", $l_timeout, 32);
$result = $p->ping($dest);
}

View File

@ -301,6 +301,9 @@ sub exec_plugin_module {
my $query_sql = "SELECT * FROM tagente_modulo WHERE id_agente_modulo = $id_am";
my $exec_sql = $dbh->prepare($query_sql);
$exec_sql ->execute;
# TODO: Do a check for void result ! (Gives a DBD::mysql::st execute failed: MySQL server has gone away at /usr/local/bin/pandora_plugin line 304)
$agent_module = $exec_sql->fetchrow_hashref;
# Get a full hash for plugin record reference ($plugin)