mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Option -r for ping.php. community-10946 (#11161)
This commit is contained in:
parent
fe9deb9b9c
commit
ecd57ff34f
9
ping.php
9
ping.php
@ -6,13 +6,14 @@ use App\Jobs\PingCheck;
|
||||
$init_modules = ['alerts', 'laravel', 'nodb'];
|
||||
require __DIR__ . '/includes/init.php';
|
||||
|
||||
$options = getopt('hdvg:');
|
||||
$options = getopt('hdvrg:');
|
||||
|
||||
if (isset($options['h'])) {
|
||||
echo <<<'END'
|
||||
ping.php: Usage ping.php [-d] [-v] [-g group(s)]
|
||||
ping.php: Usage ping.php [-d] [-v] [-r] [-g group(s)]
|
||||
-d enable debug output
|
||||
-v enable verbose debug output
|
||||
-r do not create or update RRDs
|
||||
-g only ping devices for this poller group, may be comma separated list
|
||||
|
||||
END;
|
||||
@ -26,6 +27,10 @@ if (isset($options['v'])) {
|
||||
$vdebug = true;
|
||||
}
|
||||
|
||||
if (isset($options['r'])) {
|
||||
Config::set('norrd', true);
|
||||
}
|
||||
|
||||
if (isset($options['g'])) {
|
||||
$groups = explode(',', $options['g']);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user