Hi!
I'm trying to configure my FreeBSD so that it notifies me when an interface goes down.
I've written this script in /etc/devd/interface.conf
Would this work? And if yes, what sort of response can I expect to see from FreeBSD when the interface goes down?
Thanks!
I'm trying to configure my FreeBSD so that it notifies me when an interface goes down.
I've written this script in /etc/devd/interface.conf
Code:
notify 0 {
match "system" "IFNET";
match "subsystem" "(em0|em1)";
match "type" "LINK_DOWN";
action "/usr/local/sbin/notifier.sh $subsystem"
}
Would this work? And if yes, what sort of response can I expect to see from FreeBSD when the interface goes down?
Thanks!