diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-08-18 19:46:18 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-08-18 19:46:18 +0000 |
commit | 92abc218b0626314774aa791d388a45746eb386a (patch) | |
tree | 27c6c888ea7688818a7420e197601cb43d1a3fab /plugins-scripts | |
parent | c74475a487c462bc03c8341cff9c374832b8bddf (diff) | |
download | monitoring-plugins-92abc218b0626314774aa791d388a45746eb386a.tar.gz |
Fix for similar dataabase sids (Carole Verdon)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@883 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 41e9dcef..6351f8f6 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 ${2}$ | grep -c pmon` |
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 |