2011-09-23 Sancho Lerena <slerena@artica.es>

* lib/PandoraFMS/Config.pm: Updated version.

        * lib/PandoraFMS/NetworkServer.pm: Fixed problem with SNMP v2 
        due incorrect call to snmpget.

	* pandora_server/DEBIAN/make_deb_package.sh: Version update.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4991 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2011-09-23 11:21:45 +00:00
parent 3f20e95ee8
commit 0183597b29
4 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2011-09-23 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Config.pm: Updated version.
* lib/PandoraFMS/NetworkServer.pm: Fixed problem with SNMP v2
due incorrect call to snmpget.
2011-09-23 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/NmapParser.pm: Added an error handler to avoid

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
pandora_version="4.0RC1"
pandora_version="4.0"
package_cpan=0
package_pandora=1

View File

@ -42,7 +42,7 @@ our @EXPORT = qw(
# version: Defines actual version of Pandora Server for this module only
my $pandora_version = "4.0";
my $pandora_build = "110908";
my $pandora_build = "110923";
our $VERSION = $pandora_version." ".$pandora_build;
# Setup hash

View File

@ -265,6 +265,12 @@ sub pandora_snmp_get_command ($$$$$$$$$) {
# See codes on http://perldoc.perl.org/perlport.html#PLATFORMS
my $OSNAME = $^O;
# This fixes problem in linux snmpget, because v2 must be submitted like 2c
if ($snmp_version eq "2"){
$snmp_version = "2c";
}
# On windows, we need the snmpget command from net-snmp, already present on win agent
# the call is the same than in linux
if (($OSNAME eq "MSWin32") || ($OSNAME eq "MSWin32-x64") || ($OSNAME eq "cygwin")){