Re: Send alert while using storage devices.
Although I'm not familiar with it, the USB devices (specifically disks/memory sticks) have rules (/etc/udev/rules.d) that define what is to be done. Among the actions for the rules is "RUN", which is to run a program/script when that device is detected.
What the parameters are that can be sent should be determinable from other rules - such as being plugged in, removed...
Check the manpage on "udevadm".