Giter Club home page Giter Club logo

check_equallogic's Introduction

check_equallogic's People

Contributors

dh0mp5eur avatar napsty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

check_equallogic's Issues

Show a pretty error message when specified volume does not exist

Between 846 & 847 :

if [ -z "${volarray}" ]
    then
    echo "UNKNOWN - This volume (${volume}) does not exist."; exit 3
fi

should be better, to avoid this kind of cryptic error message :

awk: line 1: syntax error at or near end of line
/usr/lib/nagios/plugins/check_snmp_dell_equallogic.sh: line 848: / 1024: syntax error: operand expected (error token is "/ 1024")
UNKNOWN: should never reach this part```

Add b2bFailure check type

Reported by Marcin (SiB) Przysowa:

Please add a information from eqlmember.mib :

eqlMemberHealthWarningConditions OBJECT-TYPE SYNTAX BITS {
b2bFailure (10), -- board to board communication between the active and secondary CMs has failed.. Call support?
} MAX-ACCESS read-only
STATUS current
DESCRIPTION "This field defines possible warning health conditions and which ones are present."
::= { eqlMemberHealthEntry 2}

Why?
In short. EQL do two big Failtures and I must stop production with x vmachines :(.
You remember the Rx/Tx Errors at Ethernet interfaces? The same RxTxErrors on Stack Backplane of controllers has name "Back2Back" on EqlTeam before Dell buy EQL. To this times this B2B=Rx/TxErrors between controllers aren't published on SAN HQ, SNMP, Syslog :(. The only what we can find is this B2BFailure Flag with 0 and 1 state :(.

I write before about Back2Back means Rx/TxError for stack of two controllers. I know that OID must be read, change into bit[10] and proper display.

In one Nagios script of other check I grab some code about dec2ba (to bibary bit-array) function.
I am not programmer but script person. If you can add this feature, it will be perfect.

Warning/Critical Level of Used Space

Hallo, I use your script to monitor some DELL/EQL
My newest Device is a: PS4210 model: "70-0485"./ Running Firmware: V7.1.5.

One of my Thin-Prov-Volumes was stopped today because of "Low Space", but all of the counters, monitored by your script, where OK.

By my opinion, the issue lies in the calculation of used (Member) space.
If you have (large) Thin-Provisioned-Volumes they allocate space without any DATA written to them.
Reserved Space is always 10% (or more, it depends on your choice). It is allocated, but was not shown in "in use space" by Volume.

So the used space of a volume should always calculated so:
VolSpace="Volume reserve" + preallocated "Free" Space

But I think it is much better to monitor:
"Free Space" or, even better, the ""Free Space" +"Total Reclaimable Space" and set a trigger on this indicator.

Because that are the real Show-Stoppers.
:-)

chia

Difference between "IN-USE" and "Volume reserve"
image

Counter: free (real free Space in Pool)
Counter: Total Reclaimable Space = Waste bin size aka reclaimable
image

check_equallogic: line 153: syntax error near unexpected token <'

Hi, i have a error Message by test the script on a check_mk with the prod-User:

check_equallogic: line 153: syntax error near unexpected token <' check_equallogic: line 153: done < <(echo "${membernames[*]}" | sed "s/.1.3.6/\n.1.3.6/g" | sed "1d")'

System is a centos 6.5.

Thanks a lot

Add a connectivity check

When the plugin cannot make an SNMP connection to Equallogic, this should give a warning (snmp connection not established, timeout, or sth like this).

In the current situation some checks might return an UNKNOWN status, others appear OK without any values.

Missing newline character

Reported by Marcin (SiB) Przysowa:

*) MemberUsage not do \n

# bash check_equallogic.sh -H a.b.c.d -C public -t memberusage
OK: Pool 1 Total 18629GB, Used 15464GB (83%)|'space used'=16604851077120, 'total space'=20002803548160[root@nagios plugins]#

*) PoolUsage not do \n and ends with "//" ??

OK: Pool "default" Size 18629GB, Total In Use 15465GB (83%) = (Used 15464GB + Delegated 0GB + Replication 1GB), Free 3163GB // [root@nagios plugins]#

Check volume name %age error

hi!

snmp connection works perfectly, thanks.

But i have an issue with line 850

See below my test, no %age (first issue) and test is OK (second issue)

./check_equallogic.sh -C public -H x.x.x.x -t vol -v test-bdd1-bdd-oracle

expr: syntax error
OK - Volumetest-bdd1-bdd-oracle used 90GB of 105GB (%)|'volavail'=112742891520, 'volused'=97108623360

when i suppress [${i}], it works fine but i don't know should it do.

850 : volpercentage=$(expr ${volusedspace[${i}]} * 100 / ${volavailspace[${i}]})
850 : volpercentage=$(expr ${volusedspace} * 100 / ${volavailspace})

./check_equallogic.sh -C public -H x.x.x.x -t vol -v test-bdd1-bdd-oracle

OK - Volume test-bdd1-bdd-oracle used 90GB of 105GB (86%)|'volavail'=112742891520, 'volused'=97108623360

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.