* * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ use \LibreNMS\Config; $pagetitle[] = 'Poller Groups'; require_once 'includes/html/modal/poller_groups.inc.php'; ?>


0, 'group_name' => 'General', 'descr' => '']; $group_list = dbFetchRows('SELECT * FROM `poller_groups`'); $default_poller = Config::get('distributed_poller_group'); array_unshift($group_list, $default_group); foreach ($group_list as $group) { $group_device_count = dbFetchCell('SELECT COUNT(*) FROM devices WHERE `poller_group`=?', $group['id']); $group_name = $group['group_name']; if ($group['id'] == $default_poller) { $group_name .= ' (default Poller)'; } echo ' '; echo ' '; } ?>
ID Group Name Devices Description Action
'.$group['id'].' '.$group_name.' '.$group_device_count.' '.$group['descr'].''; if ($group['id']) { echo ' '; } echo '