Sehr geehrte Kunden der dng IT,
 
bis zum 17.09.2007 (einschlielich) bin ich nicht erreichbar. In dringenden 
Fllen wenden
Sie sich bitte direkt  an unser Bro unter 0700 - 36 448 000 oder schreiben Sie 
an [EMAIL PROTECTED] .
 
Ihre Nachricht wurde nicht weitergeleitet und wird erst nach dem 17.09.2007 
bearbeitet.
 
Mit freundlichen Gren
Thomas Neumann
dng IT

Telefon: 0700 - 36 448 000
Telefax: 0700 - 36 448 111
eMail: [EMAIL PROTECTED]

Sehr geehrte Kunden der dng IT,
 
bis zum 17.09.2007 (einschlielich) bin ich nicht erreichbar. In dringenden 
Fllen wenden
Sie sich bitte direkt  an unser Bro unter 0700 - 36 448 000 oder schreiben Sie 
an [EMAIL PROTECTED] .
 
Ihre Nachricht wurde nicht weitergeleitet und wird erst nach dem 17.09.2007 
bearbeitet.
 
Mit freundlichen Gren
Thomas Neumann
dng IT

Telefon: 0700 - 36 448 000
Telefax: 0700 - 36 448 111
eMail: [EMAIL PROTECTED]

Sehr geehrte Kunden der dng IT,
 
bis zum 17.09.2007 (einschlielich) bin ich nicht erreichbar. In dringenden 
Fllen wenden
Sie sich bitte direkt  an unser Bro unter 0700 - 36 448 000 oder schreiben Sie 
an [EMAIL PROTECTED] .
 
Ihre Nachricht wurde nicht weitergeleitet und wird erst nach dem 17.09.2007 
bearbeitet.
 
Mit freundlichen Gren
Thomas Neumann
dng IT

Telefon: 0700 - 36 448 000
Telefax: 0700 - 36 448 111
eMail: [EMAIL PROTECTED]

Sehr geehrte Kunden der dng IT,
 
bis zum 17.09.2007 (einschlielich) bin ich nicht erreichbar. In dringenden 
Fllen wenden
Sie sich bitte direkt  an unser Bro unter 0700 - 36 448 000 oder schreiben Sie 
an [EMAIL PROTECTED] .
 
Ihre Nachricht wurde nicht weitergeleitet und wird erst nach dem 17.09.2007 
bearbeitet.
 
Mit freundlichen Gren
Thomas Neumann
dng IT

Telefon: 0700 - 36 448 000
Telefax: 0700 - 36 448 111
eMail: [EMAIL PROTECTED]
Also for monitoring another thought would be to use Nagios to monitor
it for you.  Looks like someone has already created a plugin for mdadm
which manages the software raid in Endian.  You can goto
<http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1%5Bp_view%5D=880&tx_netnagext_pi1%5Bpage%5D=70%3A10>

Here is what the plugin looks like:
____________________________________________________________________
#!/usr/bin/env python
#
#   Copyright Hari Sekhon 2007
#
#   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 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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
#


""" This plugin for Nagios uses the standard mdadm program to get the status
 of all the linux md arrays on the local machine using the mdadm utility"""

__version__ = 0.5

import os
import sys
from optparse import OptionParser

# Standard Nagios return codes
OK       = 0
WARNING  = 1
CRITICAL = 2
UNKNOWN  = 3

srcdir = os.path.dirname(sys.argv[0])
bin    = "/sbin/mdadm"

if os.geteuid() != 0:
    print "UNKNOWN: you must be root to run this plugin"
    sys.exit(UNKNOWN)

if not os.path.exists(bin):
    print "UNKNOWN: %s cannot be found" % bin
    sys.exit(UNKNOWN)

if not os.access(bin, os.X_OK):
    print "UNKNOWN: mdadm utility is not executable"
    sys.exit(UNKNOWN)


def find_arrays(verbosity):
    """finds all MD arrays on local machine using mdadm and returns a list of
    them, or exits UNKNOWN if no MD arrays are found"""

    if verbosity >= 3:
        print "finding all MD arrays via mdadm --detail --scan"
    devices_output = os.popen("%s --detail --scan" % bin).readlines()
    raid_devices   = []
    for line in devices_output:
        if "ARRAY" in line:
            raid_device = line.split()[1]
            if verbosity >= 2:
                print "found array %s" % raid_device
            raid_devices.append(raid_device)

    if len(raid_devices) == 0:
        print "UNKNOWN: no MD raid devices found on this machine"
        sys.exit(UNKNOWN)
    else:
        raid_devices.sort()
        return raid_devices


def test_raid(verbosity):
    """checks all MD arrays on local machine, returns status code"""

    raid_devices = find_arrays(verbosity)

    status = OK
    for array in raid_devices:
        if verbosity >= 2:
            print 'Now testing raid device "%s"' % array

        detailed_output = os.popen("%s --detail %s" % (bin, array) ).readlines()

        if verbosity >= 3:
            for line in detailed_output:
                print line,

        state = "unknown"
        for line in detailed_output:
            if "State :" in line:
                state = line.split(":")[-1][1:-1]
        if state != "clean" and state != "active":
            raidlevel = detailed_output[3].split()[-1]
            shortname = array.split("/")[-1].upper()
            if state == "dirty":
            # This happens when the array is under heavy usage but it's \
            # normal and the array recovers within seconds
                continue
            elif "recovering" in state:
                extra_info = None
                for line in detailed_output:
                    if "Rebuild Status" in line:
                        extra_info = line
                if extra_info:
                    print 'RAID WARNING: Array %s is in state' % shortname,
                    print '"%s" (%s) - %s' % (state, raidlevel, extra_info)
                else:
                    print 'RAID WARNING: Array %s is in state' % shortname,
                    print '"%s" (%s)' % (state, raidlevel)
                if status == OK:
                    status = WARNING
            elif state == "unknown":
                print "UNKNOWN: state of raid array %s is unknown" % shortname
                status = UNKNOWN
            else:
                print 'RAID CRITICAL: Array %s is in state "%s" (%s)' \
                                            % (shortname, state, raidlevel)
                status = CRITICAL

    return status


def main():
    """parses args and calls func to test MD arrays"""

    parser = OptionParser()

    parser.add_option(  "-v",
                        "--verbose",
                        action="count",
                        dest="verbosity",
                        help="Verbose mode. Good for testing plugin. By default\
 only one result line is printed as per Nagios standards")

    parser.add_option(  "-V",
                        "--version",
                        action="store_true",
                        dest="version",
                        help="Print version number and exit")

    (options, args) = parser.parse_args()

    if args:
        parser.print_help()
        sys.exit(UNKNOWN)

    verbosity = options.verbosity
    version   = options.version

    if version:
        print __version__
        sys.exit(OK)

    result = test_raid(verbosity)

    if result == OK:
        print "RAID OK: All arrays OK"

    sys.exit(result)

if __name__ == "__main__":
    main()
____________________________________________________________________

**note I have not tested this yet, but plan to over the weekend**

Best regards,

Will

On 9/3/07, boergnet <[EMAIL PROTECTED]> wrote:
>
> Thanks for the info.
> I already filed a BUG Report.
> Did anyone try the hotfix from h h-2 ???
> http://www.nabble.com/Raid-tf4371923.html
>
> A.B.
>
>
> B Timotheus wrote:
> >
> > Sorry for the delay, I have been persuing other issues and just got Efw
> > online this morning.
> >
> > I get the same effect.
> >
> >>>> [EMAIL PROTECTED] 24.08.2007 16:55 >>>
> >
> > One question:
> > Can you take a look at the System Graphs and there at the Disk access per
> > Day.
> > My graph is completely empty since I am using EFW2.1.2 with Raid1
> > configuration.
> > Instead of the numbers under the graph, I get the word "nan"
> > Just wondering if you experience the same issue.
> >
> > Thanks,
> > A. B.
> >
> >
> > B Timotheus wrote:
> >>
> >> I am testing EWF and very pleased for the present.
> >>
> >> I was particularly happy with the ease of setting up raid1 on my box.
> >> Testing this I downed the machine and disconnected the power from one of
> >> the drives. It booted without any problems, but I cannot see that it is
> >> telling me that it has lost a HDD.
> >>
> >> Can anybody say if there is an alarm for this?
> >>
> >> Is there a simple way to recover from a HDD failure?
> >>
> >> Thanks,
> >> B. Timotheus
> >>
> >> -------------------------------------------------------------------------
> >> This SF.net email is sponsored by: Splunk Inc.
> >> Still grepping through log files to find problems?  Stop.
> >> Now Search log events and configuration files using AJAX and a browser.
> >> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> >> _______________________________________________
> >> Efw-user mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/efw-user
> >>
> >>
> >
> > --
> > View this message in context:
> > http://www.nabble.com/Raid-tf4317421.html#a12313947
> > Sent from the efw-user mailing list archive at Nabble.com.
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > _______________________________________________
> > Efw-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/efw-user
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > _______________________________________________
> > Efw-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/efw-user
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Raid-tf4317421.html#a12463357
> Sent from the efw-user mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Efw-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/efw-user
>


--

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Efw-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/efw-user
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Efw-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/efw-user

Reply via email to