Lasa is a simple script for monitoring bits and pieces of your Linux system. It pales in comparison to real monitoring software like Nagios and Zabbix, but its aim is to be useful for non-root users who want to stay well-informed about the systems they work with.
Nothing to it, just put lasa in your path and it's ready to go.
You probably want to make a ~/.lasa.d directory where you can store your typical checks. Otherwise, you can pass them in on standard input or specify some other configuration directory with -c.
$ lasa
Running with no arguments will run the configured checks and print out anything that fails. Use -v for output of what passed and failed, or -d for debug output on top of that.
$ lasa -m [email protected]
Normally lasa writes a report to standard output. You can have it mailed out instead with -m. This only sends a report if there is a failure somewhere.
Lasa uses a dumb DSL to specify checks. Run lasa with -S to see the syntax. Some examples:
fs exists /data01
dir exists /var/spool/foo
daemon httpd
file exists /etc/something.conf
Put one check per line in each file in your configuration directory. Lines starting with #, empty lines, and blank lines are skipped. Naming a file with the suffix ".off" will turn it off, i.e., get it skipped.