diff options
author | Jan Wagner <waja@cyconet.org> | 2013-10-22 08:42:22 (GMT) |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2013-10-22 08:42:22 (GMT) |
commit | 3e2d2fcf1f9f53b62f3c08ddfcc0bc78ef1537f6 (patch) | |
tree | d6d761b53d2d29657da8eda59e8196a1d6ab2e6b /plugins-scripts | |
parent | facb416ef8645858ae2b521f3c4051aea223360d (diff) | |
download | monitoring-plugins-3e2d2fcf1f9f53b62f3c08ddfcc0bc78ef1537f6.tar.gz |
Just using the posix conform extended regular expression greprefs/pull/1211/head
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-x | plugins-scripts/check_oracle.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh index b86ce1d..77eba2e 100755 --- a/plugins-scripts/check_oracle.sh +++ b/plugins-scripts/check_oracle.sh | |||
@@ -163,8 +163,7 @@ case "$cmd" in | |||
163 | }' | 163 | }' |
164 | ;; | 164 | ;; |
165 | --db) | 165 | --db) |
166 | pmonchk=`ps -ef | grep -v grep | grep -c "ora_pmon_${2}$"` | 166 | pmonchk=`ps -ef | grep -v grep | grep -E -c "(asm|ora)_pmon_${2}$"` |
167 | pmonchk=$(($pmonchk+`ps -ef | grep -v grep | grep -c "asm_pmon_${2}$"`)) | ||
168 | if [ ${pmonchk} -ge 1 ] ; then | 167 | if [ ${pmonchk} -ge 1 ] ; then |
169 | echo "${2} OK - ${pmonchk} PMON process(es) running" | 168 | echo "${2} OK - ${pmonchk} PMON process(es) running" |
170 | exit $STATE_OK | 169 | exit $STATE_OK |