mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Tune port update (#5795)
* updates to rrdtune docs and script * added all support
This commit is contained in:
committed by
Tony Murray
parent
6380176fe7
commit
5aef36abd6
@@ -12,9 +12,17 @@ $hosts = str_replace('*', '%', mres($options['h']));
|
||||
$ports = str_replace('*', '%', mres($options['p']));
|
||||
|
||||
if (empty($hosts) && empty($ports)) {
|
||||
echo "-h <device hostname wildcard> Device(s) to match\n";
|
||||
echo "-p <ifName widcard> Port(s) to match using ifName\n";
|
||||
echo "-h <device hostname wildcard> Device(s) to match (all is a valid arg)\n";
|
||||
echo "-p <ifName widcard> Port(s) to match using ifName (all is a valid arg)\n";
|
||||
echo "\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($hosts == 'all') {
|
||||
$hosts = '';
|
||||
}
|
||||
if ($ports == 'all') {
|
||||
$ports = '';
|
||||
}
|
||||
|
||||
foreach (dbFetchRows("SELECT `device_id`,`hostname` FROM `devices` WHERE `hostname` LIKE ?", array('%'.$hosts.'%')) as $device) {
|
||||
|
Reference in New Issue
Block a user