Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -0,0 +1,35 @@
<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage poller
* @copyright (C) Adam Armstrong
*
*/
// Correct output of the agent script should look like this:
//<<<exim-mailqueue>>>
//frozen:173
//bounces:1052
//total:2496
//active:2323
if (!empty($agent_data['app']['exim_mailqueue'])) {
$app_id = discover_app($device, 'exim_mailqueue');
foreach (explode("\n", $agent_data['app']['exim_mailqueue']) as $line) {
[$item, $value] = explode(":", $line, 2);
$exim_data[trim($item)] = trim($value);
}
update_application($app_id, $exim_data);
rrdtool_update_ng($device, 'exim-mailqueue', $exim_data, $app_id);
unset($line, $item, $value, $exim_data, $app_id);
}
// EOF