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:
parent
9b83fe82f8
commit
d5a5a717f6
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue