Yup, you'd need something like 7*6*5*4*3*2 ... Maybe not too sensible
for more than 4 devices or so :(

I don't like to give up on this sort of challenge so how about something
like....

Ping each machine.
If is doesn't respond increment something, maybe a counter in a file or
environment variable by 1 each time.
Check the contents of that file / env variable, and alarm if higher than
4.

... Much wailing and gnashing of teeth later ...
Here's a perl script that will produce a single file (count.txt) with
one number in it.
This is the number of devices that failed to resond to a ping or didn't
resolve from hostname.
(There is a print statement halfway down for seeing debugging output,
comment it out with a # if you go live so it doesn't try to write
anything to the screen)

#!/bin/perl

use Net::Ping;

# Change the machines listed here to suit your setup. If the names
cannot be
# resolved then it will count as a failed ping.

@machines = (s1,s2,s3,s4,k10);
$downcount = 0;
$count_file = "count.txt";

open(DOWNCOUNT, "> $count_file") || die "Can't create $count_file:$!\n";

$p = Net::Ping->new("icmp");
    foreach $host (@machines)
    {
        $downcount = $downcount + 1 unless $p->ping($host, 2);
        # Note line below is for checking on screen, comment out in
production script.
        print "$downcount\n";
    }
$p->close();

print DOWNCOUNT "$downcount\n";
close(DOWNCOUNT);

exit;

-----Original Message-----
From: Jeff Cook [mailto:[EMAIL PROTECTED] 
Sent: 18 March 2003 22:58
To: '[EMAIL PROTECTED]'
Subject: RE: [WhatsUp Forum] Alert From Multiple Down Devices.


I originally thought of this myself.  However it would mean the correct
set of devices must be down.  It would work well if I wanted an alert if
all the PCs go down, (and this may be what I'll end up doing).  I was
hoping to be able to get an alert if ANY 4 out of the 7 PCs are down.
If I use dependencies then I would have to make a map with ever possible
combo of 4 out of 7 PCs going down.  

Thank You

Jeff Cook
Network Administrator
Whatcom Educational Credit Union


-----Original Message-----
From: Andy Young [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 10:34 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [WhatsUp Forum] Alert From Multiple Down Devices.


I haven't actually tried this, but can't see why it shouldn't work....

Set up "down" dependencies, so device #2 is only polled when device #1
is down etc.

Then make a number of devices dependant on others, in a separate map so
your current alerts are not messed up.

That way you should be able to get alerts from device #3 (for example)
only if #1 & #2 are already down as well.

There is no way I know of actually grouping devices to only alarm if a
given number are down. I asked a similar question about getting an alert
only when a threshold of machines are below a certain SNMP threshold,
but had no luck. (This was around WUG 5 time, so things may have
changed).

Regards,

Andy Young
Design Systems Administrator
BBC Post Production

*       Room 3501, Stage 5, Television Centre, Wood Lane, London, W12
7RJ
*       mailto:[EMAIL PROTECTED]
*       http://www.bbcresources.com/postproduction


-----Original Message-----
From: Jeff Cook [mailto:[EMAIL PROTECTED] 
Sent: 18 March 2003 17:08
To: '[EMAIL PROTECTED]'
Subject: [WhatsUp Forum] Alert From Multiple Down Devices.


Sorry about the last post.

I maps of my branches.  These maps include all of the PCs.  I have
alerts setup for all of the network gear.  What I'm looking for is a way
to alert if three or more of the PCs are down.  I don't want an alert
for each PC. Staff reboot computers and other things happen.  

Does anyone have an idea how to do this?  Thank you for any help.

Jeff Cook
Network Administrator
Whatcom Educational Credit Union

Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/


BBCi at http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain 
personal views which are not the views of the BBC unless specifically 
stated.
If you have received it in error, please delete it from your system, do 
not use, copy or disclose the information in any way nor act in 
reliance on it and notify the sender immediately. Please note that the 
BBC monitors e-mails sent or received. Further communication will 
signify your consent to this.


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/


BBCi at http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain 
personal views which are not the views of the BBC unless specifically 
stated.
If you have received it in error, please delete it from your system, do 
not use, copy or disclose the information in any way nor act in 
reliance on it and notify the sender immediately. Please note that the 
BBC monitors e-mails sent or received. Further communication will 
signify your consent to this.


Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Reply via email to