[Nagiosplug-devel] [nagios-plugins] check_oracle: --db +ASM bad string matching (#1207)
jrohlicek
notifications at github.com
Mon Oct 21 17:33:46 CEST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20131021/a82f6804/attachment.html>
More information about the Devel
mailing list