diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-12-01 20:09:59 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-12-01 20:09:59 (GMT) |
commit | 61cbd1252c997c1cb180a91642b6174408e267e3 (patch) | |
tree | 87bce40c15f882918a69429e28641635476b340b /plugins-scripts | |
parent | 54c21eba62b55503dbe6fda607ccbef4a27a1f14 (diff) | |
download | monitoring-plugins-61cbd1252c997c1cb180a91642b6174408e267e3.tar.gz |
Fixed pmon process checking from a change I made earlier
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@963 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-x | plugins-scripts/check_oracle.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh index 1a23eb9..9956491 100755 --- a/plugins-scripts/check_oracle.sh +++ b/plugins-scripts/check_oracle.sh | |||
@@ -158,7 +158,7 @@ case "$cmd" in | |||
158 | }' | 158 | }' |
159 | ;; | 159 | ;; |
160 | --db) | 160 | --db) |
161 | pmonchk=`ps -ef | grep -v grep | grep ${2} | grep -c pmon` | 161 | pmonchk=`ps -ef | grep -v grep | grep -c "ora_pmon_${2}$"` |
162 | if [ ${pmonchk} -ge 1 ] ; then | 162 | if [ ${pmonchk} -ge 1 ] ; then |
163 | echo "${2} OK - ${pmonchk} PMON process(es) running" | 163 | echo "${2} OK - ${pmonchk} PMON process(es) running" |
164 | exit $STATE_OK | 164 | exit $STATE_OK |