--
JD Durick, CCNA
KPMG LLP
2001 M. Street, NW
Washington, DC 20036
(202) 533-5534 (Office)
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGP 7.0
mQGiBDwGTogRBADuqT+VgZnOHlA1tg9WFEk570dOtfZBOSDyyiBii7IjBJPLOnY0
Id9hVVkPDr2m97NhwK9/rx3k2YrWBhECjd1Cl/vFSnNR/nd7IWtvCmv0nFr3Hfh6
0+Gn9g1QoXMqDBWzIRSKxT3TvN1o17KUR98LgWX2IIFGm3qYSpI7ZYe9+wCg/xV9
j50CVa0tmqNA0gy3tOF/DmMEAOGKtp7uHjCdEcU0JVyaHjRDpEC0glusQV5QnmHi
QW1c9NLijyKqaniJa2ntzl8jSzEHxUOce4h+O4AFeWUv9IjwAfXnH1d4IoH5DnPx
dNss5uBKFhufGyumx1/Sg54ZNls4Nu03P3yf5ru651BiHlOEBGLJZBr4Y0OWi22G
7Q+zBAC6krcKJ1/5F/Tdts/JTrXSPZl4aGKOhllo2dN9PEFj6VllOpjFHL3l5ApF
MMWLZzVCL+WxNBZp5gHhPHlOw8yFDnzj4ZnqDSA/E77lQOMO1QlkyNpij37qHBU0
QxPHafFJOBk1ur+MkSSfeIOYW2a32W0CNeMozDyueYMVNlINFrQcSkQgRHVyaWNr
IDxqZHVyaWNrQGtwbWcuY29tPohVBBARAgAVBQI8Bk6IBQsDAgEKAhkBBRsDAAAA
AAoJEJAWJWsmBbWfZdAAoI30ji/VGU74eClUJXEd56P1XOulAJ0bHiFlFr4K0Poh
0Ubrqlzbp3m1C7kCDQQ8Bk6JEAgA9kJXtwh/CBdyorrWqULzBej5UxE5T7bxbrlL
OCDaAadWoxTpj0BV89AHxstDqZSt90xkhkn4DIO9ZekX1KHTUPj1WV/cdlJPPT2N
286Z4VeSWc3
I believe "swatch" is what youre looking for.
-----.
--
Theres a hole in the world like a great black pit and
its filled with people who are filled with shit and the
vermin of the world inhabit it
> Does anyone know of any scripts that tests every few minutes whether or not
> one of your interfaces went down (Network Administration scripts)? Any help
> would be appreciated.....jdd
Note that I tested this for all of 30 seconds.
#!/bin/sh
# Interface checker by Nick Bachmann
if [ ! $1 ]
then
echo "Quick interface checker"
echo 'Nicholas Bachmann <nabac...@yahoo.com>'
echo
echo 'Usage: ./inckr <int1> <int2> <int3> etc.'
echo
exit 1
fi
while true
do
for int in $@
do
/sbin/ifconfig $int &>/dev/null || echo "$int is down `date`" |mail root
done
sleep 3m
done
--
Regards,
N
+-----------------------------------------------+
+ Nicholas Bachmann <nabac...@yahoo.com> +
+ "Finally, no security considerations are made +
+ with respect to the fact that over the course +
+ of infinite time, monkeys may evolve" +
+ -RFC 2795 +
+-----------------------------------------------+
> hHG wrote:
>
>> Does anyone know of any scripts that tests every few minutes whether
>> or not
>> one of your interfaces went down (Network Administration scripts)?
>> Any help
>> would be appreciated.....jdd
>
>
>
> Note that I tested this for all of 30 seconds.
Which doesn't help. I made a small update to fix a big bug.
>
> #!/bin/sh
> # Interface checker by Nick Bachmann
> if [ ! $1 ]
> then
> echo "Quick interface checker"
> echo 'Nicholas Bachmann <nabac...@yahoo.com>'
> echo
> echo 'Usage: ./inckr <int1> <int2> <int3> etc.'
> echo
> exit 1
> fi
> while true
> do
> for int in $@
> do
> /sbin/ifconfig $int &>/dev/null || echo "$int is down `date`" |mail root
*should* be
/sbin/ifconfig | grep "$int" >/dev/null || echo "$int down `date`" |
mail root -s "Interface Down"
(all on one line)