it would be however much more pleasant to have some variables exposed to the scripts, like
- host
- since (this time the timestamp of the last change, not the one that has fired the script)
- routing-mark (which then implies the usage of in-vrf monitoring)
- comment (to be able to add some unique identifier as well)
and ability to specify the source-interface/source-ip-address.
and maybe to add some grace cycles, like x consecutive misses fire the down event, instead of a single one.