From 6310d0e28f771544f0fe29caaeaa3a1a36d42e9c Mon Sep 17 00:00:00 2001
From: Alexis Bitaillou <alexis.bitaillou@inria.fr>
Date: Wed, 26 Mar 2025 14:20:47 +0100
Subject: [PATCH] [Nantes] add temp sensor from pdus

---
 .../grid5000/sites/nantes/pdus/pdu-Z1.11.json |  9 +++++++
 .../grid5000/sites/nantes/pdus/pdu-Z1.21.json |  9 +++++++
 .../grid5000/sites/nantes/pdus/pdu-Z1.41.json |  9 +++++++
 .../grid5000/sites/nantes/pdus/pdu-Z1.51.json |  9 +++++++
 input/grid5000/sites/nantes/pdus.yaml         | 24 +++++++++++++++++++
 5 files changed, 60 insertions(+)

diff --git a/data/grid5000/sites/nantes/pdus/pdu-Z1.11.json b/data/grid5000/sites/nantes/pdus/pdu-Z1.11.json
index 3ea6c8db15e..8fb267ac089 100644
--- a/data/grid5000/sites/nantes/pdus/pdu-Z1.11.json
+++ b/data/grid5000/sites/nantes/pdus/pdu-Z1.11.json
@@ -10,6 +10,15 @@
         "id": "1.3.6.1.4.1.318.1.1.26.9.4.3.1.7.%PORT%",
         "protocol": "snmp"
       }
+    },
+    {
+      "description": "Sensor temperature reading in tenths of degrees Celsius",
+      "name": "pdu_temperature_tenth_celsius",
+      "period": 5000,
+      "source": {
+        "id": "1.3.6.1.4.1.318.1.1.26.10.2.2.1.8.1",
+        "protocol": "snmp"
+      }
     }
   ],
   "model": "AP7940",
diff --git a/data/grid5000/sites/nantes/pdus/pdu-Z1.21.json b/data/grid5000/sites/nantes/pdus/pdu-Z1.21.json
index 65392693001..db8d89410e0 100644
--- a/data/grid5000/sites/nantes/pdus/pdu-Z1.21.json
+++ b/data/grid5000/sites/nantes/pdus/pdu-Z1.21.json
@@ -10,6 +10,15 @@
         "id": "1.3.6.1.4.1.318.1.1.26.9.4.3.1.7.%PORT%",
         "protocol": "snmp"
       }
+    },
+    {
+      "description": "Sensor temperature reading in tenths of degrees Celsius",
+      "name": "pdu_temperature_tenth_celsius",
+      "period": 5000,
+      "source": {
+        "id": "1.3.6.1.4.1.318.1.1.26.10.2.2.1.8.1",
+        "protocol": "snmp"
+      }
     }
   ],
   "model": "AP7940",
diff --git a/data/grid5000/sites/nantes/pdus/pdu-Z1.41.json b/data/grid5000/sites/nantes/pdus/pdu-Z1.41.json
index 7535cdd8b4a..790b361efbd 100644
--- a/data/grid5000/sites/nantes/pdus/pdu-Z1.41.json
+++ b/data/grid5000/sites/nantes/pdus/pdu-Z1.41.json
@@ -10,6 +10,15 @@
         "id": "1.3.6.1.4.1.318.1.1.26.9.4.3.1.7.%PORT%",
         "protocol": "snmp"
       }
+    },
+    {
+      "description": "Sensor temperature reading in tenths of degrees Celsius",
+      "name": "pdu_temperature_tenth_celsius",
+      "period": 5000,
+      "source": {
+        "id": "1.3.6.1.4.1.318.1.1.26.10.2.2.1.8.1",
+        "protocol": "snmp"
+      }
     }
   ],
   "model": "AP7940",
diff --git a/data/grid5000/sites/nantes/pdus/pdu-Z1.51.json b/data/grid5000/sites/nantes/pdus/pdu-Z1.51.json
index 1c941f33f56..ed3c16c2cc2 100644
--- a/data/grid5000/sites/nantes/pdus/pdu-Z1.51.json
+++ b/data/grid5000/sites/nantes/pdus/pdu-Z1.51.json
@@ -10,6 +10,15 @@
         "id": "1.3.6.1.4.1.318.1.1.26.9.4.3.1.7.%PORT%",
         "protocol": "snmp"
       }
+    },
+    {
+      "description": "Sensor temperature reading in tenths of degrees Celsius",
+      "name": "pdu_temperature_tenth_celsius",
+      "period": 5000,
+      "source": {
+        "id": "1.3.6.1.4.1.318.1.1.26.10.2.2.1.8.1",
+        "protocol": "snmp"
+      }
     }
   ],
   "model": "AP7940",
diff --git a/input/grid5000/sites/nantes/pdus.yaml b/input/grid5000/sites/nantes/pdus.yaml
index 9e59cb6d399..bced731b582 100644
--- a/input/grid5000/sites/nantes/pdus.yaml
+++ b/input/grid5000/sites/nantes/pdus.yaml
@@ -36,6 +36,12 @@ pdus:
         source:
           protocol: snmp
           id: 1.3.6.1.4.1.318.1.1.26.9.4.3.1.7.%PORT%
+      - name: pdu_temperature_tenth_celsius
+        description: Sensor temperature reading in tenths of degrees Celsius
+        period: 5000
+        source:
+          protocol: snmp
+          id: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.8.1
     ip: 192.168.1.14
     mac: 00:c0:b7:fb:aa:a1
     ports:
@@ -89,6 +95,12 @@ pdus:
         source:
           protocol: snmp
           id: 1.3.6.1.4.1.318.1.1.26.9.4.3.1.7.%PORT%
+      - name: pdu_temperature_tenth_celsius
+        description: Sensor temperature reading in tenths of degrees Celsius
+        period: 5000
+        source:
+          protocol: snmp
+          id: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.8.1
     ip: 192.168.1.16
     mac: 00:c0:b7:fb:aa:5b
     ports:
@@ -142,6 +154,12 @@ pdus:
         source:
           protocol: snmp
           id: 1.3.6.1.4.1.318.1.1.26.9.4.3.1.7.%PORT%
+      - name: pdu_temperature_tenth_celsius
+        description: Sensor temperature reading in tenths of degrees Celsius
+        period: 5000
+        source:
+          protocol: snmp
+          id: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.8.1
     ip: 192.168.1.10
     mac: 00:c0:b7:fb:aa:8b
     ports:
@@ -194,6 +212,12 @@ pdus:
         source:
           protocol: snmp
           id: 1.3.6.1.4.1.318.1.1.26.9.4.3.1.7.%PORT%
+      - name: pdu_temperature_tenth_celsius
+        description: Sensor temperature reading in tenths of degrees Celsius
+        period: 5000
+        source:
+          protocol: snmp
+          id: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.8.1
     ip: 192.168.1.12
     mac: 00:c0:b7:fb:aa:97
     ports:
-- 
GitLab