Re: [Nagios-users] How to monitor windows software raid (solution)

2008-06-24 Thread Rene Fertig
Anthony Montibello wrote:

 With that said, I recommend NC_Net (not only because I wrote it but also
 since it provides mechanism for retrieval using several of the methods
 hinted to in this thread.

 1) using Windows Event log, there are several plugins that allow for
 checking windows event log (including NC_NEt)

I've done this.

I'm using Logparser 2.2 
(http://www.microsoft.com/downloads/details.aspx?FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07displaylang=en)
 
which parses the eventlog for some IDs, e.g.:

logparser SELECT * FROM System where EventID IN(500;501;503;509;510) -i:EVT 
-o:csv  c:\Programme\Log Parser 2.2\output.csv

One can use FIND to look if one of the IDs was found. I do this with the 
following batch/cmd file which is called itself by NRPE_NT (see 
Nagios-Exchange):

@ECHO OFF
C:\Programme\Log Parser 2.2\logparser SELECT * FROM System where EventID 
IN(500;501;503;509;510) -i:EVT -o:csv  d:\Logparser\output.csv
FIND Elements output:    0 C:\Programme\Log Parser 2.2\output.csv  NUL
IF %ERRORLEVEL% GTR 0 (
  REM FIND System, C:\Programme\Log Parser 2.2\output.csv
  echo Fehlermeldung im System-Eventlog gefunden
  exit 1
)
echo OK
exit 0

Probably using NC_Net is much smarter but I did it this way, since we already 
use NRPE_NT on this server.

Greetings, Rene

 
--
Tipps  Tricks für Linux, MySQL  Webdesign
  - http://home.telebel.de/~referti/blog/

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] How to monitor windows software raid

2008-06-18 Thread Jay R. Ashworth
On Tue, Jun 17, 2008 at 10:18:52AM +0100, Hari Sekhon wrote:
 On the other hand, perhaps you can just consider this a legacy problem, 
 after all Windows 2000 Server should be retired or at least on it's way 
 out by now...

Wouldn't it be pretty to think so.

I'll be inquiring about how to instrument an NT4 SP6 PDC for Nagios
next week... :-)

Cheers,
-- jra
-- 
Jay R. Ashworth   Baylink  [EMAIL PROTECTED]
Designer The Things I Think   RFC 2100
Ashworth  Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727 647 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Joseph Stalin)

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] How to monitor windows software raid

2008-06-18 Thread Kevin Madsen
NSClient++ will work fine on NT4SP6.

Kevin

On Wed, Jun 18, 2008 at 11:54 AM, Jay R. Ashworth [EMAIL PROTECTED] wrote:

 On Tue, Jun 17, 2008 at 10:18:52AM +0100, Hari Sekhon wrote:
  On the other hand, perhaps you can just consider this a legacy problem,
  after all Windows 2000 Server should be retired or at least on it's way
  out by now...

 Wouldn't it be pretty to think so.

 I'll be inquiring about how to instrument an NT4 SP6 PDC for Nagios
 next week... :-)

 Cheers,
 -- jra
 --
 Jay R. Ashworth   Baylink
 [EMAIL PROTECTED]
 Designer The Things I Think   RFC
 2100
 Ashworth  Associates http://baylink.pitas.com '87
 e24
 St Petersburg FL USA  http://photo.imageinc.us +1 727 647
 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Joseph Stalin)

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 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




-- 
Kevin Madsen
[EMAIL PROTECTED]
-
Life's Rule #1: Once you pull the pin, Mr. Grenade is no longer your friend
-
There is only one basic human right,
The right to do as you damn well please
And with it comes the only basic human duty,
the duty to take the consequences
-P.J. O'Rourke

http://www.lpgeorgia.com
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] How to monitor windows software raid

2008-06-18 Thread Michael Medin

Jay R. Ashworth wrote:

On Tue, Jun 17, 2008 at 10:18:52AM +0100, Hari Sekhon wrote:
  
On the other hand, perhaps you can just consider this a legacy problem, 
after all Windows 2000 Server should be retired or at least on it's way 
out by now...



Wouldn't it be pretty to think so.

I'll be inquiring about how to instrument an NT4 SP6 PDC for Nagios
next week... :-)
  


Wont be that hard actually.
If you use for instance NSClient++ or the original client (p)NSclient 
(and I am guessing the OpMonAgent as well) which all run on NT4 and 
beyond but when on windows there are not so many pre-made recipes so one 
tends to have to manufacture the wheel over and over :)
But the short answer will be much the same whatever you want to monitor 
(on windows):
Check: the built in (to the agent) cpu/mem/* and in addition you 
probably want to check Eventlog, PDH counters (and WMI for w2k and 
beyond) and such to monitor your specific items.


// Michael Medin


Cheers,
-- jra
  


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] How to monitor windows software raid

2008-06-18 Thread Anthony Montibello
All the standard Windows Plugins should work, well on NT4;
since it is SP6.
if it has the dot net framework it can use NC_Net (version dependent on
Framework version)
you can use NRPE, NSClient, NSClient++, OPMon, SNMP.  or any other scripting
language with  Win_NSCA


Tony (Author of NC_Net)

On Wed, Jun 18, 2008 at 11:54 AM, Jay R. Ashworth [EMAIL PROTECTED] wrote:

 On Tue, Jun 17, 2008 at 10:18:52AM +0100, Hari Sekhon wrote:
  On the other hand, perhaps you can just consider this a legacy problem,
  after all Windows 2000 Server should be retired or at least on it's way
  out by now...

 Wouldn't it be pretty to think so.

 I'll be inquiring about how to instrument an NT4 SP6 PDC for Nagios
 next week... :-)

 Cheers,
 -- jra
 --
 Jay R. Ashworth   Baylink
 [EMAIL PROTECTED]
 Designer The Things I Think   RFC
 2100
 Ashworth  Associates http://baylink.pitas.com '87
 e24
 St Petersburg FL USA  http://photo.imageinc.us +1 727 647
 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Joseph Stalin)

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 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

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] How to monitor windows software raid

2008-06-17 Thread Rene Fertig
Hello Hari.

 Have you checked NagiosExchange.org? I didn't see anything but then I
 didn't look too closely. Otherwise you could just write one. VBS is an
 easy language and universal enough for this. I'd write this in fact, if
 I had any servers poor enough to have windows software raid...

Of cause I've checked NagiosExchange, but there are only plugins for hardware 
raids.

I've found a VB script which uses DISKPART 
(http://www.anchor.com.au/hosting/dedicated/monitoring_windows_software_raid). 
Unfortunately DISKPART didn't work on Windows 2000 (only Win 2000 Pro, Win 
2000 server, Win 2003 ...)

But I've got a list of event IDs so I can monitor the event log and do passive 
checks - more than nothing...

Greetings,

Rene

-- 
--
Tipps  Tricks für Linux, MySQL  Webdesign
  - http://home.telebel.de/~referti/blog/

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] How to monitor windows software raid

2008-06-17 Thread Hari Sekhon
Rene Fertig wrote:
 Hello Hari.

   
 Have you checked NagiosExchange.org? I didn't see anything but then I
 didn't look too closely. Otherwise you could just write one. VBS is an
 easy language and universal enough for this. I'd write this in fact, if
 I had any servers poor enough to have windows software raid...
 

 Of cause I've checked NagiosExchange, but there are only plugins for hardware 
 raids.

 I've found a VB script which uses DISKPART 
 (http://www.anchor.com.au/hosting/dedicated/monitoring_windows_software_raid).
  
 Unfortunately DISKPART didn't work on Windows 2000 (only Win 2000 Pro, Win 
 2000 server, Win 2003 ...)

 But I've got a list of event IDs so I can monitor the event log and do 
 passive 
 checks - more than nothing...

 Greetings,

   Rene

   
If you can do vbs, it should be possible to do this without diskpart by 
using wmi classes.

On the other hand, perhaps you can just consider this a legacy problem, 
after all Windows 2000 Server should be retired or at least on it's way 
out by now...

-h

-- 
Hari Sekhon


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] How to monitor windows software raid

2008-06-17 Thread Marcos Marinho




Try this : It is a python script

#!/usr/bin/python

# check_swraid - plugin for nagios to check the status of linux swraid
devices
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
#
# Copyright 2004 Duke University
# Written by Sean Dilda [EMAIL PROTECTED]

# Version: 0.3
# patched with the rouilj's patch (03.02.2006) by Virer (28.07.2006)

import os
import sys
import string

mdstat = '/proc/mdstat'

mdFile = open(mdstat).readlines()

# two cases: two starting lines or just one starting line.
# Remove the first and lasts lines as we don't need them
mdFile = mdFile[1:-1]
if (len(mdFile) % 3) != 0:
 mdFile = mdFile[1:]


if (len(mdFile) % 3) != 0:
 # must have two starting lines
 print 'Error with mdstat file'
 sys.exit(3)

if len(mdFile) == 0:
 print 'Error no md devices configured'
 sys.exit(3)

mdData = []
while len(mdFile)  0:
 mdData.append((mdFile[0],mdFile[1]))
 mdFile = mdFile[3:]

overallStatus = 0
errorMsg = ''
devices = ''
for tup in mdData:
 device, colon, status, type, drives = string.split(tup[0], None, 4)
 drives = string.split(drives)
 values = string.split(tup[1])[-2]
 values = values[1:-1]
 normal, current = string.split(values, '/')
 normal = int(normal)
 current = int(current)

 devices = devices + " " + device

 # Status of 0 == Ok, 1 == Warning, 2 == Critical
 status = 0
 failed = 0
 degraded = 0
 msg = ''

 failed = []
 for drive in drives:
 if drive[-3:] == '(F)':
 failed.append(drive[:string.index(drive, '[')])
 status = 1
 failed = ' (' + string.join(failed, ', ') + ').'


 if status == 'inactive':
 status = 2
 msg = device + ' is inactive.'
 if type == 'raid5':
 if current  (normal -1):
 msg = device + ' failed' + failed
 status = 2
 elif current  normal:
 msg = device + ' degraded' + failed
 status = 1
 else:
 if current  normal:
 msg = device + ' failed' + failed
 status = 2

 if len(msg)  0:
 if len(errorMsg)  0:
 errorMsg = errorMsg + '; '
 errorMsg = errorMsg + msg
 overallStatus = max(overallStatus, status)

if overallStatus == 0:
 print 'All md devices (' + devices + ' ) Ok.'
 sys.exit(0)
else:
 print errorMsg
 sys.exit(overallStatus)
#EOF












Rene Fertig escreveu:

  Hello Hari.

  
  
Have you checked NagiosExchange.org? I didn't see anything but then I
didn't look too closely. Otherwise you could just write one. VBS is an
easy language and universal enough for this. I'd write this in fact, if
I had any servers poor enough to have windows software raid...

  
  
Of cause I've checked NagiosExchange, but there are only plugins for hardware 
raids.

I've found a _vbscript_ which uses DISKPART 
(http://www.anchor.com.au/hosting/dedicated/monitoring_windows_software_raid). 
Unfortunately DISKPART didn't work on Windows 2000 (only Win 2000 Pro, Win 
2000 server, Win 2003 ...)

But I've got a list of event IDs so I can monitor the event log and do passive 
checks - more than nothing...

Greetings,

	Rene

  




-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] How to monitor windows software raid

2008-06-17 Thread Hari Sekhon
No, don't try that. Python is a great language, I code in it myself, but...

1. It is not portable across windows systems without installing add-ons
2. It checks *LINUX* software raid, not windows software raid.

-h


Marcos Marinho wrote:
 Try this : It is a python script
 
 #!/usr/bin/python

 # check_swraid - plugin for nagios to check the status of linux swraid 
 devices
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU Library General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
 02111-1307, USA.
 #
 # Copyright 2004 Duke University
 # Written by Sean Dilda [EMAIL PROTECTED]

 # Version: 0.3
 # patched with the rouilj's patch (03.02.2006) by Virer (28.07.2006)

 import os
 import sys
 import string

 mdstat = '/proc/mdstat'

 mdFile = open(mdstat).readlines()

 # two cases: two starting lines or just one starting line.
 # Remove the first and lasts lines as we don't need them
 mdFile = mdFile[1:-1]
 if (len(mdFile) % 3) != 0:
 mdFile = mdFile[1:]


 if (len(mdFile) % 3) != 0:
 # must have two starting lines
 print 'Error with mdstat file'
 sys.exit(3)

 if len(mdFile) == 0:
 print 'Error no md devices configured'
 sys.exit(3)

 mdData = []
 while len(mdFile)  0:
 mdData.append((mdFile[0],mdFile[1]))
 mdFile = mdFile[3:]

 overallStatus = 0
 errorMsg = ''
 devices = ''
 for tup in mdData:
 device, colon, status, type, drives = string.split(tup[0], None, 4)
 drives = string.split(drives)
 values = string.split(tup[1])[-2]
 values = values[1:-1]
 normal, current = string.split(values, '/')
 normal = int(normal)
 current = int(current)

 devices = devices +   + device

 # Status of 0 == Ok, 1 == Warning, 2 == Critical
 status = 0
 failed = 0
 degraded = 0
 msg = ''

 failed = []
 for drive in drives:
 if drive[-3:] == '(F)':
 failed.append(drive[:string.index(drive, '[')])
 status = 1
 failed = ' (' + string.join(failed, ', ') + ').'


 if status == 'inactive':
 status = 2
 msg = device + ' is inactive.'
 if type == 'raid5':
 if current  (normal -1):
 msg = device + ' failed' + failed
 status = 2
 elif current  normal:
 msg = device + ' degraded' + failed
 status = 1
 else:
 if current  normal:
 msg = device + ' failed' + failed
 status = 2

 if len(msg)  0:
 if len(errorMsg)  0:
 errorMsg = errorMsg + '; '
 errorMsg = errorMsg + msg
 overallStatus = max(overallStatus, status)

 if overallStatus == 0:
 print 'All md devices (' + devices + ' ) Ok.'
 sys.exit(0)
 else:
 print errorMsg
 sys.exit(overallStatus)
 #EOF
 




 Rene Fertig escreveu:
 Hello Hari.

   
 Have you checked NagiosExchange.org? I didn't see anything but then I
 didn't look too closely. Otherwise you could just write one. VBS is an
 easy language and universal enough for this. I'd write this in fact, if
 I had any servers poor enough to have windows software raid...
 

 Of cause I've checked NagiosExchange, but there are only plugins for 
 hardware 
 raids.

 I've found a VB script which uses DISKPART 
 (http://www.anchor.com.au/hosting/dedicated/monitoring_windows_software_raid).
  
 Unfortunately DISKPART didn't work on Windows 2000 (only Win 2000 Pro, Win 
 2000 server, Win 2003 ...)

 But I've got a list of event IDs so I can monitor the event log and do 
 passive 
 checks - more than nothing...

 Greetings,

  Rene

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] How to monitor windows software raid

2008-06-17 Thread Marcos Marinho
Ops  sorry ,

I lost the windows part , my mistake. I will be looking for some 
alternative ; again sorry for this.

As alternative, there is a place called windows script center and I 
think that there would be an script in order to check sofwate raid on 
windows, or some example in order to get this information, I would 
advise to look in that repository.

Again my apologies

Hari Sekhon escreveu:
 No, don't try that. Python is a great language, I code in it myself, 
 but...

 1. It is not portable across windows systems without installing add-ons
 2. It checks *LINUX* software raid, not windows software raid.

 -h


 Marcos Marinho wrote:
 Try this : It is a python script
 
 #!/usr/bin/python

 # check_swraid - plugin for nagios to check the status of linux 
 swraid devices
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU Library General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
 02111-1307, USA.
 #
 # Copyright 2004 Duke University
 # Written by Sean Dilda [EMAIL PROTECTED]

 # Version: 0.3
 # patched with the rouilj's patch (03.02.2006) by Virer (28.07.2006)

 import os
 import sys
 import string

 mdstat = '/proc/mdstat'

 mdFile = open(mdstat).readlines()

 # two cases: two starting lines or just one starting line.
 # Remove the first and lasts lines as we don't need them
 mdFile = mdFile[1:-1]
 if (len(mdFile) % 3) != 0:
 mdFile = mdFile[1:]


 if (len(mdFile) % 3) != 0:
 # must have two starting lines
 print 'Error with mdstat file'
 sys.exit(3)

 if len(mdFile) == 0:
 print 'Error no md devices configured'
 sys.exit(3)

 mdData = []
 while len(mdFile)  0:
 mdData.append((mdFile[0],mdFile[1]))
 mdFile = mdFile[3:]

 overallStatus = 0
 errorMsg = ''
 devices = ''
 for tup in mdData:
 device, colon, status, type, drives = string.split(tup[0], None, 4)
 drives = string.split(drives)
 values = string.split(tup[1])[-2]
 values = values[1:-1]
 normal, current = string.split(values, '/')
 normal = int(normal)
 current = int(current)

 devices = devices +   + device

 # Status of 0 == Ok, 1 == Warning, 2 == Critical
 status = 0
 failed = 0
 degraded = 0
 msg = ''

 failed = []
 for drive in drives:
 if drive[-3:] == '(F)':
 failed.append(drive[:string.index(drive, '[')])
 status = 1
 failed = ' (' + string.join(failed, ', ') + ').'


 if status == 'inactive':
 status = 2
 msg = device + ' is inactive.'
 if type == 'raid5':
 if current  (normal -1):
 msg = device + ' failed' + failed
 status = 2
 elif current  normal:
 msg = device + ' degraded' + failed
 status = 1
 else:
 if current  normal:
 msg = device + ' failed' + failed
 status = 2

 if len(msg)  0:
 if len(errorMsg)  0:
 errorMsg = errorMsg + '; '
 errorMsg = errorMsg + msg
 overallStatus = max(overallStatus, status)

 if overallStatus == 0:
 print 'All md devices (' + devices + ' ) Ok.'
 sys.exit(0)
 else:
 print errorMsg
 sys.exit(overallStatus)
 #EOF
 




 Rene Fertig escreveu:
 Hello Hari.

  
 Have you checked NagiosExchange.org? I didn't see anything but then I
 didn't look too closely. Otherwise you could just write one. VBS is an
 easy language and universal enough for this. I'd write this in 
 fact, if
 I had any servers poor enough to have windows software raid...
 

 Of cause I've checked NagiosExchange, but there are only plugins for 
 hardware raids.

 I've found a VB script which uses DISKPART 
 (http://www.anchor.com.au/hosting/dedicated/monitoring_windows_software_raid).
  
 Unfortunately DISKPART didn't work on Windows 2000 (only Win 2000 
 Pro, Win 2000 server, Win 2003 ...)

 But I've got a list of event IDs so I can monitor the event log and 
 do passive checks - more than nothing...

 Greetings,

 Rene


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

Re: [Nagios-users] How to monitor windows software raid

2008-06-17 Thread Anthony Montibello
Hi Rene,

Sorry for joining this response late,

For checking Software RAID on Windows the best way is to use a Windows Plug
in that gives connectivity to a standard widows location of the data you
need.

With that said, I recommend NC_Net (not only because I wrote it but also
since it provides mechanism for retrieval using several of the methods
hinted to in this thread.

1) using Windows Event log, there are several plugins that allow for
checking windows event log (including NC_NEt)
2) Writing a script or executable, There are several plugins that allow this
as well (including NC_NEt and NRPE)
3) Writing a WMI query , ( NC_net has this as well but there are also some
scripts under NRPE that can do this)
4) you may be able to configure Notification on degraded RAID to submit via
NSCA, and then again on recovery
5) you may be able to configure a Submit by email on Degraded/Recover RAID
(I have not tried this)
6) you may be able to configure SNMP on the software RAID (I have not tried
this) then check by SNMP

For options 4,5,6 you may want to look into viotile service checks (see
Nagios Manual)
Good Luck,

Tony (Author of NC_Net)
On Tue, Jun 17, 2008 at 3:32 AM, Rene Fertig [EMAIL PROTECTED] wrote:

 Hello Hari.

  Have you checked NagiosExchange.org? I didn't see anything but then I
  didn't look too closely. Otherwise you could just write one. VBS is an
  easy language and universal enough for this. I'd write this in fact, if
  I had any servers poor enough to have windows software raid...

 Of cause I've checked NagiosExchange, but there are only plugins for
 hardware
 raids.

 I've found a VB script which uses DISKPART
 (
 http://www.anchor.com.au/hosting/dedicated/monitoring_windows_software_raid
 ).
 Unfortunately DISKPART didn't work on Windows 2000 (only Win 2000 Pro, Win
 2000 server, Win 2003 ...)

 But I've got a list of event IDs so I can monitor the event log and do
 passive
 checks - more than nothing...

 Greetings,

Rene

 --
 --
 Tipps  Tricks für Linux, MySQL  Webdesign
  - http://home.telebel.de/~referti/blog/

 -
  Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 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

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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

[Nagios-users] How to monitor windows software raid

2008-06-16 Thread Rene Fertig
Hello.

Can someone tell me how to check a software raid on a windows server? I can't 
find anything - am I blind?

Greetings,

  Rene

-- 
--
Tipps  Tricks für Linux, MySQL  Webdesign
  - http://home.telebel.de/~referti/blog/

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] How to monitor windows software raid

2008-06-16 Thread Hari Sekhon
Rene Fertig wrote:
 Hello.

 Can someone tell me how to check a software raid on a windows server? I can't 
 find anything - am I blind?

 Greetings,

   Rene

   
Have you checked NagiosExchange.org? I didn't see anything but then I 
didn't look too closely. Otherwise you could just write one. VBS is an 
easy language and universal enough for this. I'd write this in fact, if 
I had any servers poor enough to have windows software raid...

-h

-- 
Hari Sekhon


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] How to monitor windows software raid

2008-06-16 Thread trevor obba
What hardware vendor is your window server? If it is a Dell server
you can use dell openmanage from www.dell.com configure openmanage to 
communicate to nagios via snmp with check dell openmanage
from http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1437.html;d=1 

- Original Message 
From: Rene Fertig [EMAIL PROTECTED]
To: nagios-users@lists.sourceforge.net
Sent: Monday, 16 June, 2008 1:41:03 PM
Subject: [Nagios-users] How to monitor windows software raid

Hello.

Can someone tell me how to check a software raid on a windows server? I can't 
find anything - am I blind?

Greetings,

  Rene

-- 
--
Tipps  Tricks für Linux, MySQL  Webdesign
  - http://home.telebel.de/~referti/blog/

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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



  __
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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