I want to send an email when the tape drive is empty and when the tape drive is filled. I use RHEL 5.
I don't want to check using a script every X seconds to test if the tape status is changed. There probably is another way, a trigger or something? A reoccuring check (CRON) will not alert if I change tape tape within the duration that the script is not executed.
In an HP server with HP agents installed in it, I get this sort of email alerts (directly after putting in and getting out tape). The server I am working on is a VM using a tape drive.
How can I do this?
Update: *The tape drive: HP StorageWorks Ultrium 960 SCSI External Tape Drive (Q1539B)