Integrating Diskover for disk-usage visualisation and indexed search

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
Hi,

I found this tool - Diskover

https://github.com/shirosaidev/diskover
https://github.com/shirosaidev/diskover-web

which uses ElasticSearch/Kibana to provide disk-usage visualisation, as well as fast indexed searching of files.

What would be a suitable way of integrated this into FreeNAS?

It seems like a pretty cool addition to FreeNAS.

The package runs on Linux (I can't find any mention of BSD support), and can index either local files, or files over NFS or CIFS.

Cheers,
Victor
 
D

dlavigne

Guest
You could try installing it into a VM.

You could also create a feature request at bugs.freenas.org asking that it be added to FreeNAS. If you do, post the issue number here.
 

dvc9

Explorer
Joined
May 2, 2012
Messages
72
Discover on FreeNAS or FreeBSD 11.2

This is a bash script for installing and running diskover and diskover-web
as a Jail on a FreeBSD or FreeNAS Jail. I will not go into detail about how to
create and maintain a Jail. So I expect that you have a FreeBSD 11.2-RELEASE Jail
running before trying this.

First off, we need bash as the script is for bash, and wget to download the script
*pkg install wget bash*

The script is currently at my web page, but I guess that can be moved.
*wget http://www.andreasmartinaanerud.com/filer/diskover-installation-FreeBSD.sh*

Then make the script runnable
*chmod +x diskover-installation-FreeBSD.sh*

and then its runtime.
*/usr/local/bin/bash diskover-installation-FreeBSD.sh*

When the script is done, then exit the Jail, and reboot it.

Now you have two options, one is to go directly into the jail console
and start issuing commands, or you can do as I have done.

This command Im running as a part of the FreeBSD Main server
startup sequence, it boots the Diskover Worker Bots.

*iocage exec Diskover bash /usr/local/diskover/diskover/diskover-bot-launcher.sh*

This command Im adding as a cron job, so I will weekly get a new scann of my server

*iocage exec Diskover python3 /usr/local/diskover/diskover/diskover.py -d /PATH/TO/STORAGE -i diskover-$TODAY -a -O*

If you have any comments on the script please pm me and ill fix stuff :)
 
Top