Handle different command line syntax for zmcontrol.pl
This commit is contained in:
parent
b354641df3
commit
3e55795cad
|
@ -379,6 +379,8 @@ class MonitorsController extends AppController {
|
|||
$args = '';
|
||||
if ( $daemon == 'zmc' and $monitor['Type'] == 'Local' ) {
|
||||
$args = '-d ' . $monitor['Device'];
|
||||
} else if ( $daemon == 'zmcontrol.pl' ) {
|
||||
$args = '--id '.$id;
|
||||
} else {
|
||||
$args = '-m ' . $id;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue