Bug 37672 - check_linux_raid removed - use check_raid
check_linux_raid removed - use check_raid
Status: CLOSED DUPLICATE of bug 35265
Product: UCS
Classification: Unclassified
Component: Monitoring (Prometheus or Nagios)
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-3-errata
Assigned To: Daniel Tröder
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-02 15:08 CET by Tim Petersen
Modified: 2022-06-27 17:48 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Petersen univentionstaff 2015-02-02 15:08:12 CET
Reported via 2015013121000177:

check_linux_raid was removed in nagios-plugins. As UNIVENTION_RAID still uses it, we should adjust the service - perhaps to check_raid from nagios-plugins-contrib.
Comment 1 Tim Petersen univentionstaff 2015-08-05 11:25:16 CEST
Requested again 2015080521000329
Comment 2 Daniel Tröder univentionstaff 2015-09-15 10:26:50 CEST
This was already implemented in package univention-nagios-raid on 02 Sep 2014 in version 4.0.0-2 as part of Bug #35265 "Migrate nagios services to UCS 4".

I just tried it by
* creating a RAID1
* installing univention-nagios-raid
* adding UNIVENTION_RAID to the list of tests
* scheduling an immediate test (runs /usr/lib/nagios/plugins/check_raid)
* when green
  → setting one drive as faulty (mdadm /dev/md0 --fail /dev/vdb1)
* scheduling an immediate test
  → red (critical)

If you wish to check it out without the hassle of a raid installation, use VM "dtroeder_18-ucs4" with snapshot "+stuff +RAID1 with 2 disks" (please inform me, if VM is running ;)

*** This bug has been marked as a duplicate of bug 35265 ***
Comment 3 Felix Botner univentionstaff 2015-09-16 13:19:10 CEST
OK, works for me too
UCS 4.0-3 with univention-nagios-raid

-> more /etc/nagios-plugins/config/univention-raid.cfg 
# Warning: This file is auto-generated and might be overwritten by
#          univention-config-registry.
#          Please edit the following file(s) instead:
# Warnung: Diese Datei wurde automatisch generiert und kann durch
#          univention-config-registry überschrieben werden.
#          Bitte bearbeiten Sie an Stelle dessen die folgende(n) Datei(en):
# 
#       /etc/univention/templates/files/etc/nagios-plugins/config/univention-raid.cfg
# 
define command {
        command_name check_raid
        command_line /usr/lib/nagios/plugins/check_raid
}

-> file /usr/lib/nagios/plugins/check_raid
/usr/lib/nagios/plugins/check_raid: Perl script, UTF-8 Unicode text executable