From ed41fa9c886b05da731b4f27fd8f9be958929fa3 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Sat, 13 Jun 2015 22:51:26 +1000 Subject: [PATCH] A couple of minor notes for later --- includes/polling/functions.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/polling/functions.inc.php b/includes/polling/functions.inc.php index 006dbaf7f8..d71b391750 100644 --- a/includes/polling/functions.inc.php +++ b/includes/polling/functions.inc.php @@ -183,6 +183,7 @@ function poll_device($device, $options) { if ($attribs['poll_'.$module] || ( $module_status && !isset($attribs['poll_'.$module]))) { + // TODO per-module polling stats include('includes/polling/'.$module.'.inc.php'); } elseif (isset($attribs['poll_'.$module]) && $attribs['poll_'.$module] == "0") { echo("Module [ $module ] disabled on host.\n"); @@ -222,6 +223,7 @@ function poll_device($device, $options) $device_end = utime(); $device_run = $device_end - $device_start; $device_time = substr($device_run, 0, 5); + // TODO: These should be easy converts to rrd_create_update() // Poller performance rrd $poller_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/poller-perf.rrd"; if (!is_file($poller_rrd))