| 1 | ICMPMONITOR.C |
| 2 | |
| 3 | Using the InterNet Control Message Protocol (ICMP) "ECHO" facility, |
| 4 | monitor several hosts, and notify admin if some of them are down. |
| 5 | |
| 6 | Author - |
| 7 | Vadim Zaliva <lord@crocodile.org> |
| 8 | |
| 9 | Status - |
| 10 | Public Domain. Distribution Unlimited. |
| 11 | |
| 12 | ================================================================================ |
| 13 | |
| 14 | Copyright (c) 1989 The Regents of the University of California. |
| 15 | All rights reserved. |
| 16 | |
| 17 | This code is derived from software contributed to Berkeley by |
| 18 | Mike Muuss. |
| 19 | |
| 20 | Redistribution and use in source and binary forms, with or without |
| 21 | modification, are permitted provided that the following conditions |
| 22 | are met: |
| 23 | |
| 24 | 1. Redistributions of source code must retain the above copyright |
| 25 | notice, this list of conditions and the following disclaimer. |
| 26 | 2. Redistributions in binary form must reproduce the above copyright |
| 27 | notice, this list of conditions and the following disclaimer in the |
| 28 | documentation and/or other materials provided with the distribution. |
| 29 | 3. All advertising materials mentioning features or use of this software |
| 30 | must display the following acknowledgement: |
| 31 | |
| 32 | This product includes software developed by the University of |
| 33 | California, Berkeley and its contributors. |
| 34 | |
| 35 | 4. Neither the name of the University nor the names of its contributors |
| 36 | may be used to endorse or promote products derived from this software |
| 37 | without specific prior written permission. |
| 38 | |
| 39 | THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
| 40 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 41 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 42 | ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
| 43 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 44 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 45 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 46 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 47 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 48 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 49 | SUCH DAMAGE. |