[nagios-plugins] check_oracle: --db +ASM bad string matching
Git Repository <[email protected]> Tue, 22 Oct 2013 13:50:06 +0200 (CEST)
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module: nagios-plugins Branch: maint Commit: facb416ef8645858ae2b521f3c4051aea223360d Author: Jan Wagner <[email protected]> Date: Tue Oct 22 08:23:38 2013 +0200 URL: https://www.nagios-plugins.org/repositories/nagios-plugins/commit/?id=facb416 check_oracle: --db +ASM bad string matching check_oracle doesn't correctly check for pmon +ASM instance from at least Oracle 11 as the pmon proces was renamed from ora_pmon_.* to asm_pmon_.*. -- Just turning attached patch of github issue #1207 into a push request. (Closes #1207) --- plugins-scripts/check_oracle.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh index 2a8ab21..b86ce1d 100755 --- a/plugins-scripts/check_oracle.sh +++ b/plugins-scripts/check_oracle.sh @@ -164,6 +164,7 @@ case "$cmd" in ;; --db) pmonchk=`ps -ef | grep -v grep | grep -c "ora_pmon_${2}$"` + pmonchk=$(($pmonchk+`ps -ef | grep -v grep | grep -c "asm_pmon_${2}$"`)) if [ ${pmonchk} -ge 1 ] ; then echo "${2} OK - ${pmonchk} PMON process(es) running" exit $STATE_OK ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk