FSMonitor
The FSMonitor class manages filesystem watches and is used to receive events. Call the adddirwatch method to add a directory watch to the monitor: m = FSMonitor watch = m.adddirwatch ('/dir/to/watch') Once a watch has been added, you can call readevents to read a list of filesystem events. A cross-platform Keepass Secret Management vault extension. See the README.MD in the module for more details. In this article. The following table lists the filter altitude allocations for each of the following load order groups. NOTE: this page is updated 1-2 times per year. FSMonitor and the scalable monitor, and demonstrate its capabilities by using it to drive a research automation system. Our experiments show that FSMonitor scales well on a 897 TB Lustre store, where it is able to process and report 37948 events per second, while providing a standard event representation on various storage systems.
Overview | Package | Class | Use | Tree | Deprecated | Index | Help |
com.virtualco.services.monitor.filesystem
Class FileSystemMonitor
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- UnixFSMonitor, Win32FSMonitor
- public abstract class FileSystemMonitor
- extends AppMonitor
An abstrtact class that clients use to check the file system FULL flag. Implementation for different operating systems is deferred to sub classes
Field Summary | |
static boolean | FULL A public static flag that all clients can check |
Constructor Summary |
FileSystemMonitor() |
Method Summary | |
int | getPercentCapacity() Retrieve the usage percentage of the file system. |
void | loadConfiguration(java.util.Properties prop) The method will look for and load the following properties: fsmonitor.activate - The setting that determines if the monitor program runs 1=activate 0=do not activate fsmonitor.initial_delay - The initial delay (in millisecs) before which the scheduled task begins fsmonitor.interval - The periodic interval (in millisecs) after which the scheduled task executes after the initial delay fsmonitor.filesystem - The file system to monitor fsmonitor.error_threshold - The file system percent capacity at which to flag an error condition fsmonitor.daemon - The flag to run the monitor process as a daemon |
void | loadPropertyFile(java.lang.String propertyFile) Load the configuration from the property file. |
Methods inherited from class com.virtualco.services.monitor.AppMonitor |
monitor, run, task |
Methods inherited from class java.util.TimerTask |
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
FULL
- A public static flag that all clients can check
Fsmonitor Watchman
Constructor Detail |
FileSystemMonitor
Method Detail |
loadPropertyFile
- Load the configuration from the property file.
- Parameters:
propertyFile
- Property file name- Throws:
AppMonitorException
loadConfiguration
The method will look for and load the following properties:- fsmonitor.activate - The setting that determines if the monitor program runs 1=activate 0=do not activate
- fsmonitor.initial_delay - The initial delay (in millisecs) before which the scheduled task begins
- fsmonitor.interval - The periodic interval (in millisecs) after which the scheduled task executes after the initial delay
- fsmonitor.filesystem - The file system to monitor
- fsmonitor.error_threshold - The file system percent capacity at which to flag an error condition
- fsmonitor.daemon - The flag to run the monitor process as a daemon
- Parameters:
prop
-- Throws:
AppMonitorException
getPercentCapacity
- Retrieve the usage percentage of the file system.
- Returns:
- the pecentage used
Overview | Package | Class | Use | Tree | Deprecated | Index | Help |
What tool do you use when you try to snoop it and find which find are being modified? Do you use Jamf Composer? fs_usage? FSEventer?
Well FSMonitor might be your new best buddy. It was soft launched earlier this year. I just cannot believed I missed it. Thank you, Armin Briegel, for telling me!
Well the website is complete enough that I don't need to add anything apart from some good use cases (Tweet/Comment if you have other ones!):
Fse Monitoring
- Find which plist gets modified from a particular setting
- Find what files get moved/installed/removed when doing something such as installing Chrome
- See if a process is doing stuff behind your back
Fsmonitor
Just a word of caution: Packaging is hard, try not to if you can. Sometimes, pushing the original package with a Configuration Profile might suffice. Also, events might get dropped if there's too many. That's by design from the Apple API.