From 78e130ea8d399eda7dfac74e4141aa6f2d13132f Mon Sep 17 00:00:00 2001 From: Mickael Marchand Date: Sun, 27 Mar 2016 18:22:25 +0200 Subject: [PATCH] fix dbm sensor for ios-xr --- includes/discovery/sensors/cisco-entity-sensor.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/discovery/sensors/cisco-entity-sensor.inc.php b/includes/discovery/sensors/cisco-entity-sensor.inc.php index 79f9632d9e..138cb5db3a 100644 --- a/includes/discovery/sensors/cisco-entity-sensor.inc.php +++ b/includes/discovery/sensors/cisco-entity-sensor.inc.php @@ -162,7 +162,7 @@ if ($device['os_group'] == 'cisco') { if ($ok) { discover_sensor($valid['sensor'], $type, $device, $oid, $index, 'cisco-entity-sensor', $descr, $divisor, $multiplier, $limit_low, $warn_limit_low, $warn_limit, $limit, $current, 'snmp', $entPhysicalIndex, $entry['entSensorMeasuredEntity']); #Cisco IOS-XR : add a fake sensor to graph as dbm - if ($type == "power" and $device['os'] == "iosxr" and preg_match ("/Transceiver (R|T)x/i", $descr) ) { + if ($type == "power" and $device['os'] == "iosxr" and preg_match ("/power (R|T)x/i", $descr) ) { // convert Watts to dbm $type = "dbm"; $limit_low = 10 * log10($limit_low*1000);