mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
This reverts commit e5dad7a64e
.
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
* @copyright (C) 2006 - 2012 Adam Armstrong
|
||||
*/
|
||||
|
||||
use LibreNMS\Data\Store\Datastore;
|
||||
|
||||
$init_modules = array();
|
||||
require __DIR__ . '/includes/init.php';
|
||||
|
||||
@@ -24,7 +22,6 @@ if (isset($argv[1]) && is_numeric($argv[1])) {
|
||||
}
|
||||
|
||||
set_debug(isset($options['d']));
|
||||
Datastore::init();
|
||||
|
||||
// Wait for schema update, as running during update can break update
|
||||
if (get_db_schema() < 107) {
|
||||
@@ -32,6 +29,8 @@ if (get_db_schema() < 107) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
rrdtool_initialize();
|
||||
|
||||
$poller_start = microtime(true);
|
||||
echo "Starting Polling Session ... \n\n";
|
||||
|
||||
@@ -165,4 +164,4 @@ if ($poller_time > 300) {
|
||||
}
|
||||
echo "\nCompleted in $poller_time sec\n";
|
||||
|
||||
Datastore::terminate();
|
||||
rrdtool_close();
|
||||
|
Reference in New Issue
Block a user