Oracle health check tablespace utilization output
Posted: Fri Jul 27, 2018 7:31 am
Hello Nagios Crew,
I am trying to get a more readable output on the oracle:_health check.
When I run the command:
[[email protected] ~]$ /usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/12.2/client64/lib ORACLE_HOME=/usr/lib/oracle/12.2/client64 /usr/local/nagios/libexec/check_oracle_health --connect '
SID' --username 'xxxxuser' --password 'xxxxpass' --mode tablespace-usage --warning 90 --critical 98
the output will give the state of all tablespaces, which I can live with although not very tidy. But when I get an allarm I would like to just see the name of the tablespace impacted and not the rest of the information. Is there any option to do this?
Thanks
Sandro
I am trying to get a more readable output on the oracle:_health check.
When I run the command:
[[email protected] ~]$ /usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/12.2/client64/lib ORACLE_HOME=/usr/lib/oracle/12.2/client64 /usr/local/nagios/libexec/check_oracle_health --connect '
SID' --username 'xxxxuser' --password 'xxxxpass' --mode tablespace-usage --warning 90 --critical 98
the output will give the state of all tablespaces, which I can live with although not very tidy. But when I get an allarm I would like to just see the name of the tablespace impacted and not the rest of the information. Is there any option to do this?
Thanks
Sandro