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:
parent
d2feb4bfbe
commit
852dcbe190
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue