Tune port update (#5795)

* updates to rrdtune docs and script

* added all support
This commit is contained in:
Neil Lathwood
2017-02-07 00:49:16 +00:00
committed by Tony Murray
parent 6380176fe7
commit 5aef36abd6
3 changed files with 18 additions and 5 deletions

View File

@@ -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) {