I am looking for a way to easily define one-time notifications of some events that take place on a Linux box. Events might include things like:
file /tmp/my.lock is unlinked or
process 666 finished or, maybe, something more complicated, like
process 'backup.sh' closed file 'backup.tgz' AND process 'backup.sh' exited with return code 0.
Notifications should be also flexible. Like,
notify 192.168.0.100 via org.freedesktop.Notifications.Notify or
notify email@example.com via email.
Actually, it's something like Nagios, but designed for non-repeating events, with minimal, almost zero cost of task creation. Am I a dreamer? Should I write it myself? Or should I simply use shell scripting?