[Nagios-users] Unmanaged switch

2008-10-20 Thread Mike
Folks,

What is the best way to include an unmanaged (read: IPless) switch in
Nagios?  Obviously I can't monitor it directly, but I'd like Nagios to
be aware of it in the network heirachy so that it is aware that it is a
possible poit of failure.  Can I just define it as a host with no IP
address and make it a parent/client of the devices that attach to it or
is there a better way to approach this?

Mike.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Unmanaged switch

2008-10-20 Thread Assaf Flatto
you'll need an ip to define it, since nagios require an address if you define 
it as host .
but you van give it a fictitious ip and assign the Check_dummy to it so it will 
have a service 
assigned to it.

then you can put it in the hierarchy .

Unfortunately , this will not give a good indication to the topology if it 
indeed fails since there 
will be no true indication if it is up or down.

 


On Monday 20 October 2008 09:48:29 Mike wrote:
 Folks,

 What is the best way to include an unmanaged (read: IPless) switch in
 Nagios?  Obviously I can't monitor it directly, but I'd like Nagios to
 be aware of it in the network heirachy so that it is aware that it is a
 possible poit of failure.  Can I just define it as a host with no IP
 address and make it a parent/client of the devices that attach to it or
 is there a better way to approach this?

 Mike.

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge Build the coolest Linux based applications with Moblin SDK  win
 great prizes Grand prize is a trip for two to an Open Source event anywhere
 in the world http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users

 ::: Please include Nagios version, plugin version (-v) and OS when
 ::: reporting any issue. Messages without supporting info will risk being
 ::: sent to /dev/null



-- 

Assaf Flatto
SSP Ops Team
Linux System Administrator





IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Unmanaged switch

2008-10-20 Thread Christian Schneemann
On Monday October 20 2008 11:38:04 am Paul Weaver wrote:
 How about a new command called fakecheck, and apply to a dumbswitch
 host with a 127.0.0.1 address. It would take a list of machines, and
 check them all. If any of them are up, then the fakecheck would return
 OK, otherwise it would return an error state.
Just for understanding, you would check if the hosts which are connected to 
this dumbswitch are up?

But they are tested anyhow..


greetings,
Christian


 Something like
  #!/usr/bin/perl
  my $up = 0;
  my @hosts = qw/10.1.2.3 10.1.2.4 10.1.2.5 10.1.2.6/;
  foreach $addr (@hosts) {
   if (pingCheck($addr)) { $up++; }
  }
  if ($up  0) {
   print OK: Switch must be up\n;
   exit 0;
  } else {
   print CRITICAL: Switch may be down\n;
   exit 2;
  }

 (If you're good at programming you could probably get a list of children
 out of the config -- complex configs take a long time to read in using
 perl though)

 Another way of monitoring would be to have it powered off an SNMP
 enabled MDU which can tell the current being drawn. You could then
 measure that.

 --
 Paul Weaver
 Systems Development Engineer
 News Production Facilities, BBC News
 Work: 020 822 58109
 Room 1244  Television Centre,
 Wood Lane, London, W12 7RJ

  -Original Message-
  From: Mike [mailto:[EMAIL PROTECTED]
  Sent: 20 October 2008 09:48
  To: nagios-users@lists.sourceforge.net
  Subject: [Nagios-users] Unmanaged switch
 
 
  Folks,
 
  What is the best way to include an unmanaged (read: IPless)
  switch in Nagios?  Obviously I can't monitor it directly, but
  I'd like Nagios to be aware of it in the network heirachy so
  that it is aware that it is a possible poit of failure.  Can
  I just define it as a host with no IP address and make it a
  parent/client of the devices that attach to it or is there a
  better way to approach this?
 
  Mike.
 
  --
  ---
  This SF.Net email is sponsored by the Moblin Your Move
  Developer's challenge Build the coolest Linux based
  applications with Moblin SDK  win great prizes Grand prize
  is a trip for two to an Open Source event anywhere in the
  world http://moblin-contest.org/redirect.php?banner_id=100url=/
  ___
  Nagios-users mailing list
  Nagios-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nagios-users
 
  ::: Please include Nagios version, plugin version (-v) and OS
 
  when reporting any issue.
 
  ::: Messages without supporting info will risk being sent to /dev/null

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge Build the coolest Linux based applications with Moblin SDK  win
 great prizes Grand prize is a trip for two to an Open Source event anywhere
 in the world http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users

 ::: Please include Nagios version, plugin version (-v) and OS when
 ::: reporting any issue. Messages without supporting info will risk being
 ::: sent to /dev/null



-- 
Christian Schneemann

-
SUSE LINUX Products GmbH,
Maxfeldstr. 5, D - 90409 Nürnberg

Phone:  +49 (0)911 - 740 53 0
e-mail:[EMAIL PROTECTED]
-
SUSE LINUX Products GmbH, GF: Markus Rex
HRB 16746 (AG Nürnberg)

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Unmanaged switch

2008-10-20 Thread Paul Weaver
 On Monday October 20 2008 11:38:04 am Paul Weaver wrote:
  How about a new command called fakecheck, and apply to a 
  dumbswitch host with a 127.0.0.1 address. It would take a list of 
  machines, and check them all. If any of them are up, then the 
  fakecheck would return OK, otherwise it would return an error state.
 Just for understanding, you would check if the hosts which 
 are connected to 
 this dumbswitch are up?
 
 But they are tested anyhow..

If you have 10 devices on the unmanaged switch, and all 10 are off, it's
likely the switch is broken -- so set the switch to off, and the devices
to unreachable

If 9 are off, and one is on, the switch *can't* be broken

You could check the current state of each device (check_cluster), but
1) All devices go off, check_cluster goes bad
2) All devices then go unreachable
3) Check_cluster stays bad for ever (won't go good until a device goes
good, which won't happen if they are unreachable and aren't checked), or
it goes unreachable (inheriting the state of the devices), or goes good
(if it treats unreachable as OK). 

None of those is the correct action.

Pings are cheap. 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Unmanaged switch

2008-10-20 Thread Paul Weaver
How about a new command called fakecheck, and apply to a dumbswitch
host with a 127.0.0.1 address. It would take a list of machines, and
check them all. If any of them are up, then the fakecheck would return
OK, otherwise it would return an error state. 

Something like
 #!/usr/bin/perl
 my $up = 0;
 my @hosts = qw/10.1.2.3 10.1.2.4 10.1.2.5 10.1.2.6/;
 foreach $addr (@hosts) {
if (pingCheck($addr)) { $up++; }
 }
 if ($up  0) {
print OK: Switch must be up\n;
exit 0;
 } else {
print CRITICAL: Switch may be down\n;
exit 2;
 }

(If you're good at programming you could probably get a list of children
out of the config -- complex configs take a long time to read in using
perl though)

Another way of monitoring would be to have it powered off an SNMP
enabled MDU which can tell the current being drawn. You could then
measure that.

--
Paul Weaver 
Systems Development Engineer
News Production Facilities, BBC News
Work:   020 822 58109
Room 1244  Television Centre,
Wood Lane, London, W12 7RJ



 -Original Message-
 From: Mike [mailto:[EMAIL PROTECTED] 
 Sent: 20 October 2008 09:48
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Unmanaged switch
 
 
 Folks,
 
 What is the best way to include an unmanaged (read: IPless) 
 switch in Nagios?  Obviously I can't monitor it directly, but 
 I'd like Nagios to be aware of it in the network heirachy so 
 that it is aware that it is a possible poit of failure.  Can 
 I just define it as a host with no IP address and make it a 
 parent/client of the devices that attach to it or is there a 
 better way to approach this?
 
 Mike.
 
 --
 ---
 This SF.Net email is sponsored by the Moblin Your Move 
 Developer's challenge Build the coolest Linux based 
 applications with Moblin SDK  win great prizes Grand prize 
 is a trip for two to an Open Source event anywhere in the 
 world http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS 
 when reporting any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null