|
|
|
@ -58,6 +58,7 @@ class GenerateMuninCommand extends Command |
|
|
|
|
'cat <<\'EOM\'' |
|
|
|
|
]); |
|
|
|
|
foreach ($modules as $module) { |
|
|
|
|
$output->writeln('multigraph authserver_' . $module, OutputInterface::OUTPUT_RAW); |
|
|
|
|
$muninConfig = $event->getMuninConfig($module); |
|
|
|
|
foreach ($muninConfig as $key => $value) { |
|
|
|
|
$output->writeln($key . ' ' . $value, OutputInterface::OUTPUT_RAW); |
|
|
|
@ -76,6 +77,6 @@ class GenerateMuninCommand extends Command |
|
|
|
|
$phpFinder = new PhpExecutableFinder(); |
|
|
|
|
$kernel = $this->getApplication()->getKernel(); |
|
|
|
|
/* @var $kernel \AppKernel */ |
|
|
|
|
$output->writeln(sprintf('%s %s -e %s stats:munin "$1" %s', $phpFinder->find(), $kernel->getRootDir() . '/console', $kernel->getEnvironment(), implode(' ', $modulesParameters))); |
|
|
|
|
$output->writeln(sprintf('%s %s stats:munin "$1" -e %s %s', $phpFinder->find(), $kernel->getRootDir() . '/console', $kernel->getEnvironment(), implode(' ', $modulesParameters))); |
|
|
|
|
} |
|
|
|
|
} |