We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e50829b commit 62a6c24Copy full SHA for 62a6c24
1 file changed
api/v1/cem.php
@@ -205,6 +205,14 @@ public function post() {
205
$node->setCurrentJob($currentJob);
206
}
207
208
+ if (!empty($healthStatus) && empty($node->getHealthStatus())) {
209
+ // Health status changed
210
+ $event = new Event(0, "Bad health status", date('Y-m-d H:i:s'),
211
+ "The node with the id " . $node->getId() . " reported a bad health status. The status reported by the node is: " . $healthStatus,
212
+ Define::EVENT_NODE, $currentJob, null, $node->getId());
213
+ Factory::getEventFactory()->save($event);
214
+ }
215
+
216
// Update information in DB
217
$node->setCpu($cpu);
218
$node->setMemoryUsed($memoryUsed);
0 commit comments