fix mac accounting

git-svn-id: http://www.observium.org/svn/observer/trunk@3249 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-05-29 11:25:25 +00:00
parent aa13bd5bf8
commit 1de9e32d90
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ if (empty($os))
if (strstr($sysDescr, "Cisco Internetwork Operating System Software")) { $os = "ios"; }
else if (strstr($sysDescr, "IOS (tm)")) { $os = "ios"; }
else if (strstr($sysDescr, "Cisco IOS Software")) { $os = "ios"; }
else if (strstr($sysDescr, "Global Site Selector")) { $os = "ios"; }
if (strstr($sysDescr, "IOS-XE")) { $os = "iosxe"; }
if (strstr($sysDescr, "IOS XR")) { $os = "iosxr"; }

View File

@@ -77,7 +77,7 @@ if ($device['os_group'] == "cisco")
// FIXME - use memcached to make sure these values don't go backwards?
$rrdupdate = array($b_in, $b_out, $p_in, $p_out);
$ret = rrdtool_update("$rrdfile", $rrdupdate);
rrdtool_update($rrdfile, $rrdupdate);
if ($acc['update'])
{ // Do Updates