I am currently doing the end of cycle project and decided to mount a Nagios to monitor an Oracle server. The monitoring of the resources of the machine has been correct, but when it comes to monitoring Oracle services I have some problems.
I am using the command check_oracle
to monitor it, I have only managed to see if the instance is up, but when checking the status of the tablespaces
I get the following error:
The command I'm executing is this:
[root@localhost plugins]# ./check_oracle --tablespace asir nagios/nagios USERS 95 90
And the output of it is:
./check_oracle: línea 260: [: : se esperaba una expresión entera
./check_oracle: línea 287: [: : se esperaba una expresión entera
./check_oracle: línea 291: [: : se esperaba una expresión entera
./check_oracle: línea 295: [: : se esperaba una expresión entera
asir : 95 OK - % used [ / MB available ]|95=%;;90;0;100
As additional information:
My ORACLE_SID
is ASIR
.
The user is nagios
with the password Nagios
.
The tablespace
I want to use is USERS
.
As limits I used 90 for warning
and 95 for critical
.