Is it possible to use SNMP to detect and report events for an sd-card? Trapping based on available space is straightforward but I don't see a way to notify when a card is tampered with.
1 Answer
Ok, this is naturally dependent on the OS, (I've assumed Linux so far but it was never stated). Linux has the udev system which generates events if devices are connected or disconnected.
blkid
andfdisk
and grep out what I need but these have to be run to work.blkid
and then run this script in regular intervals via cron. If the script runs and detects a change, it will fire an SNMP trap.