This pack contains actions for commonly used Linux commands and tools.
file_watch_sensor.file_paths
- A list of paths to the files to monitor. Note: Those need to be full paths to the files (e.g./var/log/auth.log
) and not directories (files don't need to exist yet when the sensor is ran though).
Example:
---
file_watch_sensor:
file_paths:
- /opt/data/absolute_path_to_file.log
This sensor monitors specified files for new new lines. Once a new line is detected, a trigger is emitted.
Example trigger payload:
{
"file_path": "/var/log/auth.log",
"file_name": "auth.log",
"line": "Jan 18 13:38:15 vagrant-ubuntu-trusty-64 sudo: vagrant : TTY=pts/3 ; PWD=/data/stanley ; USER=root ; COMMAND=/bin/ls"
}
vmstat
- Wrapper around thevmstat
command.rsync
- Wrapper around thersync
command.netstat
- Wrapper around thenetstat
command.lsof
- Wrapper around thelsof
command.service
- Action which allows you to perform an action (start, stop, restart, etc.) on a system service. Currently it supports the following distributions: Ubuntu / Debian (upstart, sys init), RedHat / Fedora (systemd).touch
- Action which touches a file.check_loadavg
- Action which retrieves load average from a remote host.check_processes
- Action which retrieves useful information about matching process on a remote host.