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
Don't miss your chance to attend the 2014 Nagios World conference!

Don't miss your chance to attend the 2014 Nagios World Conference, Oct 13-16th. Informative Sessions, Networking, Food and Cocktails! Visit go.nagios.com/conference/ for more information or to register.


check-multipath.pl

Bookmark and Share

Current Version
0.2.1
Last Release Date
2014-03-31
E-mail
License
GPL
Hits
72486
Files:
FileDescription
check-multipath.plcheck-multipath.pl vs 0.2.1
TEST_check-multipath.plCheck output against expected results vs. 0.2.1
Monitor number of available connection paths per LUN and failed paths for multipath devices on Linux.
Options:
-m, --min-paths Low mark, less paths per LUN are CRITICAL [2]
-o, --ok-paths High mark, less paths per LUN raise WARNING [4]
-n, --no-multipath Exitcode for no LUNs or no multipath driver [warning]

-r, --reload force devmap reload if status is WARNING or CRITICAL
(multipath -r)
Can help to pick up LUNs coming back to life.

-e, --extraconfig Specify different low/high thresholds for LUNs:
"[LUN],[LOW],[HIGH]:" for each LUN with deviant thresholds
e.g. "iscsi_lun,2,2:dummyLun,0,1:paranoid_lun,8,16:"
"oddLun,3,5:"
Use option -v to see LUN names used by this plugin.
The state WARNING is raised if there was no data found for LUN/s in --extraconfig.

-l, --linebreak define end-of-line string:
REG regular UNIX-Newline
HTML br-Tag (HTML-Linebreak)
-other- use specified string as linebreak symbol, e.g. ', ' (all in one line, comma seperated)

-s, --state Prefix alerts with alert state
-S, --short-state Prefix alerts with alert state abbreviated
-h, --help Display this help text
-V, --version Display version info
-v, --verbose

-d, --di Run testcase instead of real check [0]
-t, --test Do not display testcase input, just result


System configuration for 'sudo' must allow the Nagios user to call the command 'multipath -l' (and also 'multipath -r' if you intend to use the --reload option) without password.

Several testcases to are included in the script. They can be called by using the parameter --di with numerical values other than zero.
The additional Script 'TEST_check-multipath.pl' can be used for regression tests if you feel like editing the plugin.


This plugin was written by Hinnerk Rümenapf and is based on work by:
- Trond H. Amundsen [t.h.amundsen@usit.uio.no]
- Gunther Schlegel [schlegel@riege.com]
- Matija Nalis [mnalis+debian@carnet.hr]

Thanks to Bernd Zeimetz, Sven Anders, Kai Groshert, Ernest Beinrohr, Sébastien Maury, Benjamin von Mossner, Michal Svamberg and Ben Evans for testing and contributions and to Matthew Castanien and Ricardo Guijt for their comments.

SOFTWARE IS PROVIDED AS-IS, WITHOUT ANY WARRANTY