mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
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>
|
2009-02-11 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* lib/PandoraFMS/DB.pm: Combined alerts are working again.
|
* lib/PandoraFMS/DB.pm: Combined alerts are working again.
|
||||||
|
@ -301,7 +301,7 @@ sub pandora_ping_icmp {
|
|||||||
my $p;
|
my $p;
|
||||||
# Some hosts don't accept ICMP with too small payload. Use 16 Bytes min
|
# 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);
|
$p = Net::Ping->new("icmp", $l_timeout, 32);
|
||||||
$result = $p->ping($dest);
|
$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 $query_sql = "SELECT * FROM tagente_modulo WHERE id_agente_modulo = $id_am";
|
||||||
my $exec_sql = $dbh->prepare($query_sql);
|
my $exec_sql = $dbh->prepare($query_sql);
|
||||||
$exec_sql ->execute;
|
$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;
|
$agent_module = $exec_sql->fetchrow_hashref;
|
||||||
|
|
||||||
# Get a full hash for plugin record reference ($plugin)
|
# Get a full hash for plugin record reference ($plugin)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user