diff options
Diffstat (limited to 'plugins-scripts/check_oracle.sh')
-rwxr-xr-x | plugins-scripts/check_oracle.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh index 2a8ab21d..ceac95dc 100755 --- a/plugins-scripts/check_oracle.sh +++ b/plugins-scripts/check_oracle.sh | |||
@@ -3,12 +3,13 @@ | |||
3 | # latigid010@yahoo.com | 3 | # latigid010@yahoo.com |
4 | # 01/06/2000 | 4 | # 01/06/2000 |
5 | # | 5 | # |
6 | # This Nagios plugin was created to check Oracle status | 6 | # This Monitoring plugin was created to check Oracle status |
7 | # | 7 | # |
8 | 8 | ||
9 | PROGNAME=`basename $0` | 9 | PROGNAME=`basename $0` |
10 | PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'` | 10 | PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'` |
11 | REVISION="@NP_VERSION@" | 11 | REVISION="@NP_VERSION@" |
12 | PATH="@TRUSTED_PATH@" | ||
12 | 13 | ||
13 | . $PROGPATH/utils.sh | 14 | . $PROGPATH/utils.sh |
14 | 15 | ||
@@ -163,7 +164,7 @@ case "$cmd" in | |||
163 | }' | 164 | }' |
164 | ;; | 165 | ;; |
165 | --db) | 166 | --db) |
166 | pmonchk=`ps -ef | grep -v grep | grep -c "ora_pmon_${2}$"` | 167 | pmonchk=`ps -ef | grep -v grep | grep -E -c "(asm|ora)_pmon_${2}$"` |
167 | if [ ${pmonchk} -ge 1 ] ; then | 168 | if [ ${pmonchk} -ge 1 ] ; then |
168 | echo "${2} OK - ${pmonchk} PMON process(es) running" | 169 | echo "${2} OK - ${pmonchk} PMON process(es) running" |
169 | exit $STATE_OK | 170 | exit $STATE_OK |