From 0624b6c1d01f7c19a350cdba7c6ceb7c6fc2a684 Mon Sep 17 00:00:00 2001 From: laf Date: Wed, 24 Jun 2015 16:39:16 +0100 Subject: [PATCH] Temp fix to remove .index at the start of the poller run --- poller.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/poller.php b/poller.php index 6608b32547..5bb3fbee82 100755 --- a/poller.php +++ b/poller.php @@ -25,6 +25,11 @@ include("includes/alerts.inc.php"); $poller_start = utime(); echo($config['project_name_version']." Poller\n\n"); +if (is_file($config['mib_dir'].'/.index') === true) { + echo ".index exists, removing\n"; + unlink($config['mib_dir'].'/.index'); +} + $options = getopt("h:m:i:n:r::d::a::"); if ($options['h'] == "odd") { $options['n'] = "1"; $options['i'] = "2"; }