2011-06-13 Sancho Lerena <slerena@artica.es>

* NetworkServer.pm: Avoid warning messages on pandora_server.error




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4433 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2011-06-13 12:05:55 +00:00
parent 51f145c203
commit 0ef05dff62
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-06-13 Sancho Lerena <slerena@artica.es>
* NetworkServer.pm: Avoid warning messages on pandora_server.error
2011-06-10 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Added a function to get the group of an agent.

View File

@ -419,7 +419,7 @@ sub exec_network_module ($$$$) {
if ($id_tipo_modulo == 18){ #snmp_data_proc
# RFC1213-MIB where it says that: SYNTAX INTEGER { up(1), down(2), testing(3),
# unknown(4), dormant(5), notPresent(6), lowerLayerDown(7) }
if ($module_data != 1){ # up state is 1, down state in SNMP is 2 ....
if ($module_data ne '1'){ # up state is 1, down state in SNMP is 2 ....
$module_data = 0;
}
}