Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

install fswatch for freenas

Status
Not open for further replies.

jianmoto

Member
Joined
Jan 25, 2015
Messages
28
I want to install a file monitoring tool named fswatch for freenas so that I can monitoring some dir of freenas.But I don't know how to add the package into freenas. Is there any solution?
thanks
 

jianmoto

Member
Joined
Jan 25, 2015
Messages
28
What I want to monitor is not datasets, in an other word,I want to monitor /mnt (all data of freenas).
 

jianmoto

Member
Joined
Jan 25, 2015
Messages
28
I want to look at the source code and then add the package into the codes.And rebuild the freenas.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
6,965
I want to look at the source code and then add the package into the codes.And rebuild the freenas.
And then? What is the goal (other than I want to run software X on FreeNAS)? There might be a better way to accomplish it other than jacking around with the FreeNAS source.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,279
Modifying the freenas system isn't the way things work. When using software on freenas you install it in a jail and mount your pool in that jail.
 

jianmoto

Member
Joined
Jan 25, 2015
Messages
28
Modifying the freenas system isn't the way things work. When using software on freenas you install it in a jail and mount your pool in that jail.
OK, I'll have a try.I think it is very hard to change the source codes,too.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,279

jianmoto

Member
Joined
Jan 25, 2015
Messages
28
http://www.freshports.org/security/fswatchfswatch

This is the port you can install and I have to ask can zfs snapshots solve your problem? Or are you looking for an audit solution?
I want to look for an audit solution,and change the mode of file when the file change.
This is the fswatch.
http://pkg.freebsd.org/freebsd:9:x86:64/latest/All/fswatch-0.02.b5.txz
But it is the old version of fswatch,sometimes doesn't work.I want to install the latest version of fswatch
http://emcrisostomo.github.io/fswatch/
 
Last edited:

jianmoto

Member
Joined
Jan 25, 2015
Messages
28
It cann't install in the jail,because jails only can mount the dataset so that I cann't monitor all data of freenas.And I can change the mode of file in the jails.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,279
Mount all your data in the jail then.
 

jianmoto

Member
Joined
Jan 25, 2015
Messages
28
The reason to install fswatch is to change the mode of files(when they change the file name or the files are new.).And it should be compulsory to monitor the data(not configure by any user).By the way audit.The secure audit mechanism should be compulsory,too.
 
Status
Not open for further replies.
Top