Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

damned

Reviews(17)
bydamned, December 24, 2023
Hi, here's my version that works on my config, i changed some deprecated commands:

#!/bin/bash
#
# Created by Sebastian Grewe, Jammicron Technology
#

# Get count of raid arrays
RAID_DEVICES=$(grep ^md -c /proc/mdstat)

# Get count of degraded arrays
#RAID_STATUS=`grep "\[.*_.*\]" /proc/mdstat -c`
RAID_STATUS=$(grep -E "\[.*(=|>|\.).*\]" /proc/mdstat -c)

# Is an array currently recovering, get percentage of recovery
RAID_RECOVER=$(grep recovery /proc/mdstat | awk '{print $4}')
RAID_RESYNC=$(grep resync /proc/mdstat | awk '{print $4}')
RAID_CHECK=$(grep check /proc/mdstat | awk '{print $4}')

# Check raid status
# RAID recovers --> Warning
if [ -n "${RAID_RECOVER}" ]; then
#if [[ $RAID_RECOVER ]]; then
STATUS="WARNING - Checked $RAID_DEVICES arrays, recovering : $RAID_RECOVER"
EXIT=1
elif [ -n "${RAID_RESYNC}" ]; then
STATUS="WARNING - Checked $RAID_DEVICES arrays, resync : $RAID_RESYNC"
EXIT=1
elif [ -n "${RAID_CHECK}" ]; then
STATUS="OK - Checked $RAID_DEVICES arrays, check : $RAID_CHECK"
EXIT=0
# RAID ok
elif [ -n "${RAID_STATUS}" = "0" ]; then
STATUS="OK - Checked $RAID_DEVICES arrays."
EXIT=0
# All else critical, better save than sorry
else
EXTEND_RAID_STATUS=$(grep -E "\[.*(=|>|\.|_).*\]" /proc/mdstat | awk '{print $2}' | uniq -c | xargs echo)
STATUS="WARNING- Checked $RAID_DEVICES arrays, $RAID_STATUS have failed check: $EXTEND_RAID_STATUS "
EXIT=1
fi

# Status and quit
echo "$STATUS"
exit $EXIT
bydamned, September 27, 2021
please use this fork, very cool!

https://github.com/BaldMansMojo/check_vmware_esx/
bydamned, July 15, 2021
check_libraesva
nice plugin, the only problem is the lack of graphs.
also have this warning:
WARNING: yacc table file version is out of date
bydamned, December 19, 2019
Great, it works very well and documentation is very complete!
bydamned, August 1, 2018
1 of 1 people found this review helpful
Great plugin!
I use to discover 6008 errors on windows machine..the infamous Blue Screen
bydamned, September 13, 2017
Check Cisco FRU Fan
Download link doesn't work!!
bydamned, May 25, 2017
check_cisco_wlc - Cisco WLC Checks
works fine with Cisco 2504 too
bydamned, May 17, 2017
and that's good, but there's a typo, change:
if($excludeVM -ne ""
to
if($excludeVM -ne "")
bydamned, January 26, 2017
Great, simple and very usefull.
Works also if ilo ethernet cable is disconnected.
bydamned, January 26, 2017
hard without any sort of documentation.
doesn't seem to work with a IBM 2005-16B
bydamned, November 27, 2016
1 of 1 people found this review helpful
A very complete plugin but with some problems with big disks..

Volume #1: CRITICAL: Unknown, Total Size (bytes): 3.5, Free: 732.6 (20931%)|FreeSize_Volume-1=20931%;1;2;0;100

CRITICAL: Total:3TB - Used:2TB - Free:0GB = 79%|Used=2857.36;35;71;0;3590.00
Owner's reply

Thanks for your feedback I check this part of code it's a possible bug.

bydamned, September 29, 2016
0 of 1 people found this review helpful
Check Cisco WLC 5500 Series
Download don't working...
Owner's reply

it should works now

bydamned, February 12, 2016
Very useful: Well Done!!
bydamned, February 2, 2015
It does its job very well but is very slow..i had to increase all the services timeout in
/usr/local/nagios/etc/nagios.cfg
to get it working in nagiosxi
bydamned, November 6, 2014
Great plugin, but there's an error..on the variable definition there are 'pw' and'pc' instead of 'tw' and 'tc' for the temperature variable.
bydamned, September 23, 2014
hi, i've got this error:
Failed test query: in Zapi::invoke, cannot connect to socket
what is belong to?
i copied the lib from the 5.1 sdk to /usr/lib/perl