>I think that there is a script in /etc/dhcpcd (or something like that)
>that is run by dhcpcd. I can't remember whether it is run when dhcpcd is
>started, or every time it gets a new address, though. It usually does
>stuff like set up default routes. You could insert stuff to do whatever
>you want, including send email. This is of course assuming that it runs
>every time dhcp gets a new address.
i don't know much about this script, but if it works, then it sounds
like what you want. it's the analog of what i use with ppp to do
the same sort of dirty work for me. (i use the ppp-up script to notify
a nameserver tha my address has changed.)
>If it doesn't, there are tools that do things whenever they see certain
>entries in your syslog. (Usually used for security monitoring, I think)
>DHCPcd always logs when it gets a new IP address (and even when it just
>renews the current lease). You could probably run such a tool to monitor
>syslog and send email when it sees a dhcpcd message that fits certain
>criteria. I've never used one of these tools, so I can't tell you how to
>use them or what exactly to use.
if you have to do this, i recommend swatch . it should be easy to set
up for exactly this...
i got my copy from
ftp://ftp.sunet.se/pub/security/tools/audit/swatch/swatch-2.2.tar.gz
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]