mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
change from unsalted md5 to salted md5 passwords, migrating passwords as authentication succeeds
git-svn-id: http://www.observium.org/svn/observer/trunk@1936 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -124,7 +124,8 @@ $mem_rrd_create = " --step 300 \
|
||||
RRA:MAX:0.5:288:800";
|
||||
|
||||
$snmpdata = snmp_get_multi($device, "memTotalSwap.0 memAvailSwap.0 memTotalReal.0 memAvailReal.0 memTotalFree.0 memShared.0 memBuffer.0 memCached.0", "-OQUs", "UCD-SNMP-MIB");
|
||||
if (is_array($snmpdata[0])) {
|
||||
if (is_array($snmpdata[0]))
|
||||
{
|
||||
list($memTotalSwap, $memAvailSwap, $memTotalReal, $memAvailReal, $memTotalFree, $memShared, $memBuffer, $memCached) = $snmpdata[0];
|
||||
foreach (array_keys($snmpdata[0]) as $key) { $$key = $snmpdata[0][$key]; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user