@metrics(['Environment | Temperature'], volatile=False, access='S')
def get_temperature(self, metrics):
    for metric in metrics:
        if (not metric.labels):
            continue
        port = metric.labels[0].rsplit('::', 1)[(- 1)]
        if ('temp' in port):
            value = self.snmp.get(f'1.3.6.1.4.1.41752.5.15.1.{metric.ifindex}.0')
            if (value is None):
                continue
            if is_float(value):
                self.set_metric(id=('Environment | Temperature', metric.labels), labels=[f'noc::module::{port}', f'noc::sensor::{port}'], value=value, multi=True)
@metrics(['Environment | Temperature'], volatile=False, access='S')
def get_temperature(self, metrics):
    for metric in metrics:
        if (not metric.labels):
            continue
        port = metric.labels[0].rsplit('::', 1)[(- 1)]
        if ('temp' in port):
            value = self.snmp.get(f'1.3.6.1.4.1.41752.5.15.1.{metric.ifindex}.0')
            if (value is None):
                continue
            if is_float(value):
                self.set_metric(id=('Environment | Temperature', metric.labels), labels=[f'noc::module::{port}', f'noc::sensor::{port}'], value=value, multi=True)