2012-06-21 Sancho Lerena <slerena@artica.es>

* lib/PandoraFMS/NetworkServer.pm: SNMP values starting with quotes
        are now stripped of starting/ending double quotes. This will help to
        get numeric (float data) as strings.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6646 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2012-06-21 10:06:19 +00:00
parent 9b83fe82f8
commit d5a5a717f6
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2012-06-21 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/NetworkServer.pm: SNMP values starting with quotes
are now stripped of starting/ending double quotes. This will help to
get numeric (float data) as strings.
2012-06-12 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/Core.pm: Fixed an error with group_statistics agent

View File

@ -290,7 +290,13 @@ sub pandora_snmp_get_command ($$$$$$$$$) {
}
}
return $output;
# Remove starting & ending double quotes, to easily parse numeric data on String types
if ($output =~ /^\"(.*)\"$/){
return $1;
}
else {
return $output;
}
}