[nagios-plugins] check_oracle: --db +ASM bad string matching (#1207)
jrohlicek <notifications-9UaJU3cA/F/[email protected]> Mon, 21 Oct 2013 08:33:46 -0700
| Newsgroups | gmane.network.nagios.plugins.devel |
|---|---|
| Message-ID | <nagios-plugins/nagios-plugins/issues/[email protected]> |
--===============5276082361328374779==
Content-Type: multipart/alternative;
boundary="--==_mimepart_5265495a753f2_132d57c9d4014928";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_5265495a753f2_132d57c9d4014928
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
check_oracle in the 1.4.15 release 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_.*.
Small change in the code is needed
....old
--db)
pmonchk=`ps -ef | grep -v grep | grep -c "ora_pmon_${2}$"`
if [ ${pmonchk} -ge 1 ] ; then
.... repaired
--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
---
Reply to this email directly or view it on GitHub:
https://github.com/nagios-plugins/nagios-plugins/issues/1207
----==_mimepart_5265495a753f2_132d57c9d4014928
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
<p>check_oracle in the 1.4.15 release 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_.*.<br>
Small change in the code is needed<br>
....old<br>
--db)<br>
pmonchk=<code>ps -ef | grep -v grep | grep -c "ora_pmon_${2}$"</code><br>
if [ ${pmonchk} -ge 1 ] ; then<br>
.... repaired<br>
--db)<br>
pmonchk=<code>ps -ef | grep -v grep | grep -c "ora_pmon_${2}$"</code><br>
pmonchk=$(($pmonchk+<code>ps -ef | grep -v grep | grep -c "asm_pmon_${2}$"</code>))<br>
if [ ${pmonchk} -ge 1 ] ; then</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/nagios-plugins/nagios-plugins/issues/1207'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/_EHT0K2RMtzboqJPrl-P-M5xUbFkXaxIlZG8cCNAzanADZRMjJa2auev9gn3542Z.gif' height='1' width='1'></p>
----==_mimepart_5265495a753f2_132d57c9d4014928--
--===============5276082361328374779==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
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=60135031&iu=/4140/ostg.clktrk
--===============5276082361328374779==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
--===============5276082361328374779==--