From 051a18434b68422a74ef85efbf696c9547c61425 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Tue, 12 May 2009 10:10:37 +0000 Subject: [PATCH] add new files git-svn-id: http://www.observium.org/svn/observer/trunk@434 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/cisco-entity-sensors.inc.php | 52 +++++++++++++++++++ includes/polling/cisco-mempool.inc.php | 4 +- 2 files changed, 54 insertions(+), 2 deletions(-) create mode 100755 includes/polling/cisco-entity-sensors.inc.php diff --git a/includes/polling/cisco-entity-sensors.inc.php b/includes/polling/cisco-entity-sensors.inc.php new file mode 100755 index 0000000000..526379215a --- /dev/null +++ b/includes/polling/cisco-entity-sensors.inc.php @@ -0,0 +1,52 @@ + diff --git a/includes/polling/cisco-mempool.inc.php b/includes/polling/cisco-mempool.inc.php index abe73bc106..e179543631 100755 --- a/includes/polling/cisco-mempool.inc.php +++ b/includes/polling/cisco-mempool.inc.php @@ -4,8 +4,8 @@ $query = "SELECT * FROM cempMemPool WHERE device_id = '" . $device['device_id'] $pool_data = mysql_query($query); while($mempool = mysql_fetch_array($pool_data)) { - $entPhysicalName = mysql_result(mysql_query("SELECT entPhysicalName from entPhysical WHERE device_id = '".$device['device_id']."' - AND entPhysicalIndex = '".$mempool['entPhysicalIndex']."'"),0); + $entPhysicalName = @mysql_result(mysql_query("SELECT `entPhysicalName` from entPhysical WHERE device_id = '".$device['device_id']."' + AND `entPhysicalIndex` = '".$mempool['entPhysicalIndex']."'"),0); echo("Checking Mempool " . $entPhysicalName . " - " . $mempool['cempMemPoolName']);