[ixpmanager] Implementing backend
Ivan Popovski
ip at sipware.org
Mon May 4 18:13:28 IST 2020
Hi,
I have request to fix periods when creating league table because mrtg backend uses wrong periods.
Talking about grapher:upload-stats-to-db command which inserts stats into traffic_daily.
So, created new backend based on mrtg, fixed periods and used upload-stats-to-db with new --backend.
The problem is that this new backend works only when it is first in GRAPHER_BACKENDS list (v4.9).
This is weird, because UploadStatsToDb.php has
Grapher::backend( $this->option( 'backend' ) );
$this->setGrapher( Grapher::getFacadeRoot() );
but afterwards customer resolves backend as usual - first from list.
Anyway, is there a way to somehow force specific backend at least for console command,
because web app should continue to use mrtg backend?
Thank you
More information about the ixpmanager
mailing list