[Check_mk (english)] Monitoring free space in Oracle 11 Database

Hi,

I am trying to monitor free space in oracle 11 database tablespace. the oracle is running on a Red Hat Enterprise Linux Server release 5 .

to do so, I have installed the “check-mk-agent-1.4.0p7-1.noarch.rpm” on the oracle server and configured the relevant setting in mk_oracle.cfg after granting the check_mk user the relevant permissions on the Oracle level. also I have the /usr/lib/check_mk_agent/plugins/mk_oracle in place.

My problem is the the discovery of the host only returns high level of the specific oracle instance performance details, but does not provide any table space specific details.

what am I doing wrong.

p.s,

I am running

Check_MK 1.4.0p7

Thank you,
Gad

Hi,
Anyone here had success discovering oracle database instances table spaces?

Thank you,

Gad

···

On Thu, Jun 29, 2017 at 10:23 AM, Gad Shaked gad.shaked@gmail.com wrote:

Hi,

I am trying to monitor free space in oracle 11 database tablespace. the oracle is running on a Red Hat Enterprise Linux Server release 5 .

to do so, I have installed the “check-mk-agent-1.4.0p7-1.noarch.rpm” on the oracle server and configured the relevant setting in mk_oracle.cfg after granting the check_mk user the relevant permissions on the Oracle level. also I have the /usr/lib/check_mk_agent/plugins/mk_oracle in place.

My problem is the the discovery of the host only returns high level of the specific oracle instance performance details, but does not provide any table space specific details.

what am I doing wrong.

p.s,

I am running

Check_MK 1.4.0p7

Thank you,
Gad

Hi Cuong,
I did everything according to the guide you mentioned and also according to the guide one check_mk’s web site

discovering the host using WATO finds all kinds of parameters concerning the Oracle instance however none of them regarding the table spaces themselves.

any ideas?

thank you,

Gad

···

On Fri, Jun 30, 2017 at 5:55 PM, Cường Lê lecuongitlc@gmail.com wrote:

Hi Gad,

I did it on Oracle 10g in AIX 5.3 and Oracle 11g in Redhat 6. Which steps did you do? I think you’ve missing something.

This is a guide by me: ‎http://blog.vnsysadmin.com/2017/04/giai-phap-giam-sat-database-oracle-free.html

It’s Vietnamese language. Please use Google translate to English.

Hope this help you.

Rgds,

Cuong.

Sent from my BlackBerry 10 smartphone.

From: Gad Shaked

Sent: Friday, June 30, 2017 21:47

To: checkmk-en@lists.mathias-kettner.de

Subject: Re: [Check_mk (english)] Monitoring free space in Oracle 11 Database

Hi,
Anyone here had success discovering oracle database instances table spaces?

Thank you,

Gad

On Thu, Jun 29, 2017 at 10:23 AM, Gad Shaked gad.shaked@gmail.com wrote:

Hi,

I am trying to monitor free space in oracle 11 database tablespace. the oracle is running on a Red Hat Enterprise Linux Server release 5 .

to do so, I have installed the “check-mk-agent-1.4.0p7-1.noarch.rpm” on the oracle server and configured the relevant setting in mk_oracle.cfg after granting the check_mk user the relevant permissions on the Oracle level. also I have the /usr/lib/check_mk_agent/plugins/mk_oracle in place.

My problem is the the discovery of the host only returns high level of the specific oracle instance performance details, but does not provide any table space specific details.

what am I doing wrong.

p.s,

I am running

Check_MK 1.4.0p7

Thank you,
Gad

Hi Gad,

What version of Check_MK agent and server are you using?

Do you see a section 'oracle_tablespaces' in the agent output?

Regards,

Evy

···

On 30/06/17 17:18, Gad Shaked wrote:

Hi Cuong,
I did everything according to the guide you mentioned and also according
to the guide one check_mk's web site
<https://mathias-kettner.de/checkmk_oracle.html&gt;
discovering the host using WATO finds all kinds of parameters concerning
the Oracle instance however none of them regarding the table
spaces themselves.

any ideas?
thank you,
Gad

On Fri, Jun 30, 2017 at 5:55 PM, Cường Lê <lecuongitlc@gmail.com > <mailto:lecuongitlc@gmail.com>> wrote:

    Hi Gad,
    I did it on Oracle 10g in AIX 5.3 and Oracle 11g in Redhat 6. Which
    steps did you do? I think you've missing something.

    This is a guide by me:
    ‎http://blog.vnsysadmin.com/2017/04/giai-phap-giam-sat-database-oracle-free.html
    <http://blog.vnsysadmin.com/2017/04/giai-phap-giam-sat-database-oracle-free.html&gt;

    It's Vietnamese language. Please use Google translate to English.

    Hope this help you.

    Rgds,
    Cuong.

    Sent from my BlackBerry 10 smartphone.
    *From: *Gad Shaked
    *Sent: *Friday, June 30, 2017 21:47
    *To: *checkmk-en@lists.mathias-kettner.de
    <mailto:checkmk-en@lists.mathias-kettner.de>
    *Subject: *Re: [Check_mk (english)] Monitoring free space in Oracle
    11 Database

    Hi,
    Anyone here had success discovering oracle database instances table
    spaces?
    Thank you,
    Gad

    On Thu, Jun 29, 2017 at 10:23 AM, Gad Shaked <gad.shaked@gmail.com > <mailto:gad.shaked@gmail.com>> wrote:

        Hi,
        I am trying to monitor free space in oracle 11 database
        tablespace. the oracle is running on a Red Hat Enterprise Linux
        Server release 5 .

        to do so, I have installed the
        "check-mk-agent-1.4.0p7-1.noarch.rpm" on the oracle server and
        configured the relevant setting in mk_oracle.cfg after granting
        the check_mk user the relevant permissions on the Oracle level.
        also I have the /usr/lib/check_mk_agent/plugins/mk_oracle in place.

        My problem is the the discovery of the host only returns high
        level of the specific oracle instance performance details, but
        does not provide any table space specific details.

        what am I doing wrong.

        p.s,
        I am running
        Check_MK 1.4.0p7

        Thank you,
        Gad

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi Gad,

this sound like a known issue in Oracle…

There were some issues in the plugin in the past but the current problems are related to the data dictionary in Oracle.

Does the following SQL return a result in a very short time?

select * from dba_free_space;

If Oracle need >5 Seconds for this SQL then look at the recycle bin. There are a lot of issue with recycle bin and dba_free_space which are really known from 11.2 up to 12.1. I didn’t tested it on 12.2, bedause I disable the recycle bin in every database. Don’t forget to purge the objects - otherwise the SQL is still slow.

Finally don’t forget to gather dictionary statistics and the problem should be gone.

This has nothing to do with Check_MK. Every monitoring who tries to gather data from dba_free_space is hitting this issue.

Kind Regards

Thorsten Bruhns

···

2017-06-29 9:23 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi,

I am trying to monitor free space in oracle 11 database tablespace. the oracle is running on a Red Hat Enterprise Linux Server release 5 .

to do so, I have installed the “check-mk-agent-1.4.0p7-1.noarch.rpm” on the oracle server and configured the relevant setting in mk_oracle.cfg after granting the check_mk user the relevant permissions on the Oracle level. also I have the /usr/lib/check_mk_agent/plugins/mk_oracle in place.

My problem is the the discovery of the host only returns high level of the specific oracle instance performance details, but does not provide any table space specific details.

what am I doing wrong.

p.s,

I am running

Check_MK 1.4.0p7

Thank you,
Gad


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi
the query “select * from dba_free_space;” returns the result instantly.

Regards,

Gad

···

On Fri, Jun 30, 2017 at 10:43 PM, Thorsten Bruhns thorsten.bruhns@googlemail.com wrote:

Hi Gad,

this sound like a known issue in Oracle…

There were some issues in the plugin in the past but the current problems are related to the data dictionary in Oracle.

Does the following SQL return a result in a very short time?

select * from dba_free_space;

If Oracle need >5 Seconds for this SQL then look at the recycle bin. There are a lot of issue with recycle bin and dba_free_space which are really known from 11.2 up to 12.1. I didn’t tested it on 12.2, bedause I disable the recycle bin in every database. Don’t forget to purge the objects - otherwise the SQL is still slow.

Finally don’t forget to gather dictionary statistics and the problem should be gone.

This has nothing to do with Check_MK. Every monitoring who tries to gather data from dba_free_space is hitting this issue.

Kind Regards

Thorsten Bruhns

2017-06-29 9:23 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi,

I am trying to monitor free space in oracle 11 database tablespace. the oracle is running on a Red Hat Enterprise Linux Server release 5 .

to do so, I have installed the “check-mk-agent-1.4.0p7-1.noarch.rpm” on the oracle server and configured the relevant setting in mk_oracle.cfg after granting the check_mk user the relevant permissions on the Oracle level. also I have the /usr/lib/check_mk_agent/plugins/mk_oracle in place.

My problem is the the discovery of the host only returns high level of the specific oracle instance performance details, but does not provide any table space specific details.

what am I doing wrong.

p.s,

I am running

Check_MK 1.4.0p7

Thank you,
Gad


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi Evy,

  1. I am running 1.4.0p7 on my check_mk server.

  2. my agent version is also 1.4.0p7.

when running this command against the agent cmk -d oracleserveraddress

i do see the <<<oracle_tablespaces>>>, but is seems that it doesn’t return any values.

<<<oracle_tablespaces>>>

<<<oracle_rman>>>

<<<oracle_jobs>>>

<<<oracle_ts_quotas>>>

<<<oracle_resumable>>>

Thank you,

Gad

···

On Fri, Jun 30, 2017 at 8:52 PM, Evy Bongers lists+check-mk@evybongers.nl wrote:

Hi Gad,

What version of Check_MK agent and server are you using?

Do you see a section ‘oracle_tablespaces’ in the agent output?

Regards,

Evy

On 30/06/17 17:18, Gad Shaked wrote:

Hi Cuong,

I did everything according to the guide you mentioned and also according

to the guide one check_mk’s web site

<https://mathias-kettner.de/checkmk_oracle.html>

discovering the host using WATO finds all kinds of parameters concerning

the Oracle instance however none of them regarding the table

spaces themselves.

any ideas?

thank you,

Gad

On Fri, Jun 30, 2017 at 5:55 PM, Cường Lê <lecuongitlc@gmail.com

mailto:lecuongitlc@gmail.com> wrote:

Hi Gad,
I did it on Oracle 10g in AIX 5.3 and Oracle 11g in Redhat 6. Which
steps did you do? I think you've missing something.
This is a guide by me:
‎[http://blog.vnsysadmin.com/2017/04/giai-phap-giam-sat-database-oracle-free.html](http://blog.vnsysadmin.com/2017/04/giai-phap-giam-sat-database-oracle-free.html)
<[http://blog.vnsysadmin.com/2017/04/giai-phap-giam-sat-database-oracle-free.html](http://blog.vnsysadmin.com/2017/04/giai-phap-giam-sat-database-oracle-free.html)>
It's Vietnamese language. Please use Google translate to English.
Hope this help you.
Rgds,
Cuong.
Sent from my BlackBerry 10 smartphone.
*From: *Gad Shaked
*Sent: *Friday, June 30, 2017 21:47
*To: *checkmk-en@lists.mathias-kettner.de
<mailto:checkmk-en@lists.mathias-kettner.de>
*Subject: *Re: [Check_mk (english)] Monitoring free space in Oracle
11 Database
Hi,
Anyone here had success discovering oracle database instances table
spaces?
Thank you,
Gad
On Thu, Jun 29, 2017 at 10:23 AM, Gad Shaked <gad.shaked@gmail.com
<mailto:gad.shaked@gmail.com>> wrote:
    Hi,
    I am trying to monitor free space in oracle 11 database
    tablespace. the oracle is running on a Red Hat Enterprise Linux
    Server release 5 .
    to do so, I have installed the
    "check-mk-agent-1.4.0p7-1.noarch.rpm" on the oracle server and
    configured the relevant setting in mk_oracle.cfg after granting
    the check_mk user the relevant permissions on the Oracle level.
    also I have the /usr/lib/check_mk_agent/plugins/mk_oracle in place.
    My problem is the the discovery of the host only returns high
    level of the specific oracle instance performance details, but
    does not provide any table space specific details.
    what am I doing wrong.
    p.s,
    I am running
    Check_MK 1.4.0p7
    Thank you,
    Gad

checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi Gad,

are you sure that the tablespace section is the problem?

The RMAN and tablespace sections are executed in async mode.

Did you execute the test mode?

mk_oracle -t

What is the output?

Edit the mk_oracle.cfg
ASYNC_SECTIONS=“tablespaces”

Repeat the testmode and execute the plugin when async_sections only display the tablespace. You can add the other async_sections from the 1st test to find the section with the problem.

Kind Regards

Thorsten

···

2017-07-02 8:31 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi
the query “select * from dba_free_space;” returns the result instantly.

Regards,

Gad

On Fri, Jun 30, 2017 at 10:43 PM, Thorsten Bruhns thorsten.bruhns@googlemail.com wrote:

Hi Gad,

this sound like a known issue in Oracle…

There were some issues in the plugin in the past but the current problems are related to the data dictionary in Oracle.

Does the following SQL return a result in a very short time?

select * from dba_free_space;

If Oracle need >5 Seconds for this SQL then look at the recycle bin. There are a lot of issue with recycle bin and dba_free_space which are really known from 11.2 up to 12.1. I didn’t tested it on 12.2, bedause I disable the recycle bin in every database. Don’t forget to purge the objects - otherwise the SQL is still slow.

Finally don’t forget to gather dictionary statistics and the problem should be gone.

This has nothing to do with Check_MK. Every monitoring who tries to gather data from dba_free_space is hitting this issue.

Kind Regards

Thorsten Bruhns

2017-06-29 9:23 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi,

I am trying to monitor free space in oracle 11 database tablespace. the oracle is running on a Red Hat Enterprise Linux Server release 5 .

to do so, I have installed the “check-mk-agent-1.4.0p7-1.noarch.rpm” on the oracle server and configured the relevant setting in mk_oracle.cfg after granting the check_mk user the relevant permissions on the Oracle level. also I have the /usr/lib/check_mk_agent/plugins/mk_oracle in place.

My problem is the the discovery of the host only returns high level of the specific oracle instance performance details, but does not provide any table space specific details.

what am I doing wrong.

p.s,

I am running

Check_MK 1.4.0p7

Thank you,
Gad


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi,
the output ok mk_oracle -t is:

<<<oracle_instance>>>

<<<oracle_sessions>>>

<<<oracle_logswitches>>>

<<<oracle_undostat>>>

<<<oracle_recovery_area>>>

<<<oracle_processes>>>

<<<oracle_recovery_status>>>

<<<oracle_longactivesessions>>>

<<<oracle_dataguard_stats>>>

<<<oracle_performance>>>

<<<oracle_locks>>>

<<<oracle_tablespaces>>>

<<<oracle_instance>>>

<<<oracle_processes>>>

<<<oracle_asm_diskgroup>>>

ORA-99998 Couldn’t find /etc/check_mk/sqlnet.ora

···

On Sun, Jul 2, 2017 at 11:15 PM, Thorsten Bruhns thorsten.bruhns@googlemail.com wrote:

Hi Gad,

are you sure that the tablespace section is the problem?

The RMAN and tablespace sections are executed in async mode.

Did you execute the test mode?

mk_oracle -t

What is the output?

Edit the mk_oracle.cfg
ASYNC_SECTIONS=“tablespaces”

Repeat the testmode and execute the plugin when async_sections only display the tablespace. You can add the other async_sections from the 1st test to find the section with the problem.

Kind Regards

Thorsten

2017-07-02 8:31 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi
the query “select * from dba_free_space;” returns the result instantly.

Regards,

Gad

On Fri, Jun 30, 2017 at 10:43 PM, Thorsten Bruhns thorsten.bruhns@googlemail.com wrote:

Hi Gad,

this sound like a known issue in Oracle…

There were some issues in the plugin in the past but the current problems are related to the data dictionary in Oracle.

Does the following SQL return a result in a very short time?

select * from dba_free_space;

If Oracle need >5 Seconds for this SQL then look at the recycle bin. There are a lot of issue with recycle bin and dba_free_space which are really known from 11.2 up to 12.1. I didn’t tested it on 12.2, bedause I disable the recycle bin in every database. Don’t forget to purge the objects - otherwise the SQL is still slow.

Finally don’t forget to gather dictionary statistics and the problem should be gone.

This has nothing to do with Check_MK. Every monitoring who tries to gather data from dba_free_space is hitting this issue.

Kind Regards

Thorsten Bruhns

2017-06-29 9:23 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi,

I am trying to monitor free space in oracle 11 database tablespace. the oracle is running on a Red Hat Enterprise Linux Server release 5 .

to do so, I have installed the “check-mk-agent-1.4.0p7-1.noarch.rpm” on the oracle server and configured the relevant setting in mk_oracle.cfg after granting the check_mk user the relevant permissions on the Oracle level. also I have the /usr/lib/check_mk_agent/plugins/mk_oracle in place.

My problem is the the discovery of the host only returns high level of the specific oracle instance performance details, but does not provide any table space specific details.

what am I doing wrong.

p.s,

I am running

Check_MK 1.4.0p7

Thank you,
Gad


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

The “ORA-99998 Couldn’t find /etc/check_mk/sqlnet.ora” message is from these lines in mk_oracle:
TNS_ADMIN=${TNS_ADMIN:-$MK_CONFDIR}
test -f ${TNS_ADMIN}/sqlnet.ora || ( echo "ORA-99998 Couldn’t find "${TNS_ADMIN}/sqlnet.ora ; exit 1)

I saw no good reason for needing a sqlnet.ora file in $MK_CONFDIR so I just commented those two lines out.

I also changed the following in mk_oracle (v1.30):

  • SQL in “sql_sessions” to query count from v$session instead of v$resource_limit, as a non-current value was returned by v$resource_limit
    • SQL sub-query for “sql_jobs” to be an IN of dba_scheduler_job_run_details only
    • Alias of v$database in “sql_jobs” to be DB

-BK

This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Payfone, C2014

···

On Mon, Jul 3, 2017 at 6:03 AM, Gad Shaked gad.shaked@gmail.com wrote:

Hi,
the output ok mk_oracle -t is:

<<<oracle_instance>>>

<<<oracle_sessions>>>

<<<oracle_logswitches>>>

<<<oracle_undostat>>>

<<<oracle_recovery_area>>>

<<<oracle_processes>>>

<<<oracle_recovery_status>>>

<<<oracle_longactivesessions>>>

<<<oracle_dataguard_stats>>>

<<<oracle_performance>>>

<<<oracle_locks>>>

<<<oracle_tablespaces>>>

<<<oracle_instance>>>

<<<oracle_processes>>>

<<<oracle_asm_diskgroup>>>

ORA-99998 Couldn’t find /etc/check_mk/sqlnet.ora


Operating System: Linux

Logincheck to Instance: vandb11 Version: 11.2

ORA-99998 Couldn’t find /etc/check_mk/sqlnet.ora

Login ok User: SYS on oracle1.storenext.co.il Instance vandb11

SYNC_SECTIONS= instance sessions logswitches undostat recovery_area processes recovery_status longactivesessions dataguard_stats performance locks

ASYNC_SECTIONS= tablespaces

Thank you,

Gad


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

On Sun, Jul 2, 2017 at 11:15 PM, Thorsten Bruhns thorsten.bruhns@googlemail.com wrote:

Hi Gad,

are you sure that the tablespace section is the problem?

The RMAN and tablespace sections are executed in async mode.

Did you execute the test mode?

mk_oracle -t

What is the output?

Edit the mk_oracle.cfg
ASYNC_SECTIONS=“tablespaces”

Repeat the testmode and execute the plugin when async_sections only display the tablespace. You can add the other async_sections from the 1st test to find the section with the problem.

Kind Regards

Thorsten

2017-07-02 8:31 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi
the query “select * from dba_free_space;” returns the result instantly.

Regards,

Gad

On Fri, Jun 30, 2017 at 10:43 PM, Thorsten Bruhns thorsten.bruhns@googlemail.com wrote:

Hi Gad,

this sound like a known issue in Oracle…

There were some issues in the plugin in the past but the current problems are related to the data dictionary in Oracle.

Does the following SQL return a result in a very short time?

select * from dba_free_space;

If Oracle need >5 Seconds for this SQL then look at the recycle bin. There are a lot of issue with recycle bin and dba_free_space which are really known from 11.2 up to 12.1. I didn’t tested it on 12.2, bedause I disable the recycle bin in every database. Don’t forget to purge the objects - otherwise the SQL is still slow.

Finally don’t forget to gather dictionary statistics and the problem should be gone.

This has nothing to do with Check_MK. Every monitoring who tries to gather data from dba_free_space is hitting this issue.

Kind Regards

Thorsten Bruhns

2017-06-29 9:23 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi,

I am trying to monitor free space in oracle 11 database tablespace. the oracle is running on a Red Hat Enterprise Linux Server release 5 .

to do so, I have installed the “check-mk-agent-1.4.0p7-1.noarch.rpm” on the oracle server and configured the relevant setting in mk_oracle.cfg after granting the check_mk user the relevant permissions on the Oracle level. also I have the /usr/lib/check_mk_agent/plugins/mk_oracle in place.

My problem is the the discovery of the host only returns high level of the specific oracle instance performance details, but does not provide any table space specific details.

what am I doing wrong.

p.s,

I am running

Check_MK 1.4.0p7

Thank you,
Gad


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Brian Kelly | Senior Database Administrator | 720.272.7589 | www.payfone.com

Hi Brian,
I commented out the lines you mentioned :

TNS_ADMIN=${TNS_ADMIN:-$MK_CONFDIR}
test -f ${TNS_ADMIN}/sqlnet.ora || ( echo "ORA-99998 Couldn’t find "${TNS_ADMIN}/sqlnet.ora ; exit 1)

and now I dont get the missing sqlnet.ora file.

it seems that running mk_oracle without the -t flag does output the tablespaces.

however, the discovery against the oracle server (from WATO) does not return any tablespace details.

Thanks,

Gad

···

On Mon, Jul 3, 2017 at 8:43 PM, Brian Kelly bkelly@payfone.com wrote:

The “ORA-99998 Couldn’t find /etc/check_mk/sqlnet.ora” message is from these lines in mk_oracle:
TNS_ADMIN=${TNS_ADMIN:-$MK_CONFDIR}
test -f ${TNS_ADMIN}/sqlnet.ora || ( echo "ORA-99998 Couldn’t find "${TNS_ADMIN}/sqlnet.ora ; exit 1)

I saw no good reason for needing a sqlnet.ora file in $MK_CONFDIR so I just commented those two lines out.

I also changed the following in mk_oracle (v1.30):

  • SQL in “sql_sessions” to query count from v$session instead of v$resource_limit, as a non-current value was returned by v$resource_limit
    • SQL sub-query for “sql_jobs” to be an IN of dba_scheduler_job_run_details only
    • Alias of v$database in “sql_jobs” to be DB

-BK

This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Payfone, C2014

On Mon, Jul 3, 2017 at 6:03 AM, Gad Shaked gad.shaked@gmail.com wrote:

Hi,
the output ok mk_oracle -t is:

<<<oracle_instance>>>

<<<oracle_sessions>>>

<<<oracle_logswitches>>>

<<<oracle_undostat>>>

<<<oracle_recovery_area>>>

<<<oracle_processes>>>

<<<oracle_recovery_status>>>

<<<oracle_longactivesessions>>>

<<<oracle_dataguard_stats>>>

<<<oracle_performance>>>

<<<oracle_locks>>>

<<<oracle_tablespaces>>>

<<<oracle_instance>>>

<<<oracle_processes>>>

<<<oracle_asm_diskgroup>>>

ORA-99998 Couldn’t find /etc/check_mk/sqlnet.ora


Operating System: Linux

Logincheck to Instance: vandb11 Version: 11.2

ORA-99998 Couldn’t find /etc/check_mk/sqlnet.ora

Login ok User: SYS on oracle1.storenext.co.il Instance vandb11

SYNC_SECTIONS= instance sessions logswitches undostat recovery_area processes recovery_status longactivesessions dataguard_stats performance locks

ASYNC_SECTIONS= tablespaces

Thank you,

Gad


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Brian Kelly | Senior Database Administrator | 720.272.7589 | www.payfone.com

On Sun, Jul 2, 2017 at 11:15 PM, Thorsten Bruhns thorsten.bruhns@googlemail.com wrote:

Hi Gad,

are you sure that the tablespace section is the problem?

The RMAN and tablespace sections are executed in async mode.

Did you execute the test mode?

mk_oracle -t

What is the output?

Edit the mk_oracle.cfg
ASYNC_SECTIONS=“tablespaces”

Repeat the testmode and execute the plugin when async_sections only display the tablespace. You can add the other async_sections from the 1st test to find the section with the problem.

Kind Regards

Thorsten

2017-07-02 8:31 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi
the query “select * from dba_free_space;” returns the result instantly.

Regards,

Gad

On Fri, Jun 30, 2017 at 10:43 PM, Thorsten Bruhns thorsten.bruhns@googlemail.com wrote:

Hi Gad,

this sound like a known issue in Oracle…

There were some issues in the plugin in the past but the current problems are related to the data dictionary in Oracle.

Does the following SQL return a result in a very short time?

select * from dba_free_space;

If Oracle need >5 Seconds for this SQL then look at the recycle bin. There are a lot of issue with recycle bin and dba_free_space which are really known from 11.2 up to 12.1. I didn’t tested it on 12.2, bedause I disable the recycle bin in every database. Don’t forget to purge the objects - otherwise the SQL is still slow.

Finally don’t forget to gather dictionary statistics and the problem should be gone.

This has nothing to do with Check_MK. Every monitoring who tries to gather data from dba_free_space is hitting this issue.

Kind Regards

Thorsten Bruhns

2017-06-29 9:23 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi,

I am trying to monitor free space in oracle 11 database tablespace. the oracle is running on a Red Hat Enterprise Linux Server release 5 .

to do so, I have installed the “check-mk-agent-1.4.0p7-1.noarch.rpm” on the oracle server and configured the relevant setting in mk_oracle.cfg after granting the check_mk user the relevant permissions on the Oracle level. also I have the /usr/lib/check_mk_agent/plugins/mk_oracle in place.

My problem is the the discovery of the host only returns high level of the specific oracle instance performance details, but does not provide any table space specific details.

what am I doing wrong.

p.s,

I am running

Check_MK 1.4.0p7

Thank you,
Gad


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi,
Does the linux mk_oracle plugin support tablespaces discovery?

Regards,

Gad

···

On Mon, Jul 3, 2017 at 8:55 PM, Gad Shaked gad.shaked@gmail.com wrote:

Hi Brian,
I commented out the lines you mentioned :

TNS_ADMIN=${TNS_ADMIN:-$MK_CONFDIR}
test -f ${TNS_ADMIN}/sqlnet.ora || ( echo "ORA-99998 Couldn’t find "${TNS_ADMIN}/sqlnet.ora ; exit 1)

and now I dont get the missing sqlnet.ora file.

it seems that running mk_oracle without the -t flag does output the tablespaces.

however, the discovery against the oracle server (from WATO) does not return any tablespace details.

Thanks,

Gad

On Mon, Jul 3, 2017 at 8:43 PM, Brian Kelly bkelly@payfone.com wrote:

The “ORA-99998 Couldn’t find /etc/check_mk/sqlnet.ora” message is from these lines in mk_oracle:
TNS_ADMIN=${TNS_ADMIN:-$MK_CONFDIR}
test -f ${TNS_ADMIN}/sqlnet.ora || ( echo "ORA-99998 Couldn’t find "${TNS_ADMIN}/sqlnet.ora ; exit 1)

I saw no good reason for needing a sqlnet.ora file in $MK_CONFDIR so I just commented those two lines out.

I also changed the following in mk_oracle (v1.30):

  • SQL in “sql_sessions” to query count from v$session instead of v$resource_limit, as a non-current value was returned by v$resource_limit
    • SQL sub-query for “sql_jobs” to be an IN of dba_scheduler_job_run_details only
    • Alias of v$database in “sql_jobs” to be DB

-BK

This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Payfone, C2014

On Mon, Jul 3, 2017 at 6:03 AM, Gad Shaked gad.shaked@gmail.com wrote:

Hi,
the output ok mk_oracle -t is:

<<<oracle_instance>>>

<<<oracle_sessions>>>

<<<oracle_logswitches>>>

<<<oracle_undostat>>>

<<<oracle_recovery_area>>>

<<<oracle_processes>>>

<<<oracle_recovery_status>>>

<<<oracle_longactivesessions>>>

<<<oracle_dataguard_stats>>>

<<<oracle_performance>>>

<<<oracle_locks>>>

<<<oracle_tablespaces>>>

<<<oracle_instance>>>

<<<oracle_processes>>>

<<<oracle_asm_diskgroup>>>

ORA-99998 Couldn’t find /etc/check_mk/sqlnet.ora


Operating System: Linux

Logincheck to Instance: vandb11 Version: 11.2

ORA-99998 Couldn’t find /etc/check_mk/sqlnet.ora

Login ok User: SYS on oracle1.storenext.co.il Instance vandb11

SYNC_SECTIONS= instance sessions logswitches undostat recovery_area processes recovery_status longactivesessions dataguard_stats performance locks

ASYNC_SECTIONS= tablespaces

Thank you,

Gad


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Brian Kelly | Senior Database Administrator | 720.272.7589 | www.payfone.com

On Sun, Jul 2, 2017 at 11:15 PM, Thorsten Bruhns thorsten.bruhns@googlemail.com wrote:

Hi Gad,

are you sure that the tablespace section is the problem?

The RMAN and tablespace sections are executed in async mode.

Did you execute the test mode?

mk_oracle -t

What is the output?

Edit the mk_oracle.cfg
ASYNC_SECTIONS=“tablespaces”

Repeat the testmode and execute the plugin when async_sections only display the tablespace. You can add the other async_sections from the 1st test to find the section with the problem.

Kind Regards

Thorsten

2017-07-02 8:31 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi
the query “select * from dba_free_space;” returns the result instantly.

Regards,

Gad

On Fri, Jun 30, 2017 at 10:43 PM, Thorsten Bruhns thorsten.bruhns@googlemail.com wrote:

Hi Gad,

this sound like a known issue in Oracle…

There were some issues in the plugin in the past but the current problems are related to the data dictionary in Oracle.

Does the following SQL return a result in a very short time?

select * from dba_free_space;

If Oracle need >5 Seconds for this SQL then look at the recycle bin. There are a lot of issue with recycle bin and dba_free_space which are really known from 11.2 up to 12.1. I didn’t tested it on 12.2, bedause I disable the recycle bin in every database. Don’t forget to purge the objects - otherwise the SQL is still slow.

Finally don’t forget to gather dictionary statistics and the problem should be gone.

This has nothing to do with Check_MK. Every monitoring who tries to gather data from dba_free_space is hitting this issue.

Kind Regards

Thorsten Bruhns

2017-06-29 9:23 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi,

I am trying to monitor free space in oracle 11 database tablespace. the oracle is running on a Red Hat Enterprise Linux Server release 5 .

to do so, I have installed the “check-mk-agent-1.4.0p7-1.noarch.rpm” on the oracle server and configured the relevant setting in mk_oracle.cfg after granting the check_mk user the relevant permissions on the Oracle level. also I have the /usr/lib/check_mk_agent/plugins/mk_oracle in place.

My problem is the the discovery of the host only returns high level of the specific oracle instance performance details, but does not provide any table space specific details.

what am I doing wrong.

p.s,

I am running

Check_MK 1.4.0p7

Thank you,
Gad


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi Gad,

take a look at the cache file of the agent output on your monitoring server.

This file can be found under “~/tmp/check_mk/cache/”

If there are no tablespaces inside this file then also no discovery will work.

If you don’t see any tablespace output inside this cache file then you have a problem with generating the tablespace output on oracle server side.

Best regards

Andreas

···

On Mon, Jul 3, 2017 at 8:43 PM, Brian Kelly bkelly@payfone.com wrote:

The “ORA-99998 Couldn’t find /etc/check_mk/sqlnet.ora” message is from these lines in mk_oracle:
TNS_ADMIN=${TNS_ADMIN:-$MK_CONFDIR}
test -f ${TNS_ADMIN}/sqlnet.ora || ( echo "ORA-99998 Couldn’t find "${TNS_ADMIN}/sqlnet.ora ; exit 1)

I saw no good reason for needing a sqlnet.ora file in $MK_CONFDIR so I just commented those two lines out.

I also changed the following in mk_oracle (v1.30):

  • SQL in “sql_sessions” to query count from v$session instead of v$resource_limit, as a non-current value was returned by v$resource_limit
    • SQL sub-query for “sql_jobs” to be an IN of dba_scheduler_job_run_details only
    • Alias of v$database in “sql_jobs” to be DB

-BK

This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Payfone, C2014

On Mon, Jul 3, 2017 at 6:03 AM, Gad Shaked gad.shaked@gmail.com wrote:

Hi,
the output ok mk_oracle -t is:

<<<oracle_instance>>>

<<<oracle_sessions>>>

<<<oracle_logswitches>>>

<<<oracle_undostat>>>

<<<oracle_recovery_area>>>

<<<oracle_processes>>>

<<<oracle_recovery_status>>>

<<<oracle_longactivesessions>>>

<<<oracle_dataguard_stats>>>

<<<oracle_performance>>>

<<<oracle_locks>>>

<<<oracle_tablespaces>>>

<<<oracle_instance>>>

<<<oracle_processes>>>

<<<oracle_asm_diskgroup>>>

ORA-99998 Couldn’t find /etc/check_mk/sqlnet.ora


Operating System: Linux

Logincheck to Instance: vandb11 Version: 11.2

ORA-99998 Couldn’t find /etc/check_mk/sqlnet.ora

Login ok User: SYS on oracle1.storenext.co.il Instance vandb11

SYNC_SECTIONS= instance sessions logswitches undostat recovery_area processes recovery_status longactivesessions dataguard_stats performance locks

ASYNC_SECTIONS= tablespaces

Thank you,

Gad


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Brian Kelly | Senior Database Administrator | 720.272.7589 | www.payfone.com

On Sun, Jul 2, 2017 at 11:15 PM, Thorsten Bruhns thorsten.bruhns@googlemail.com wrote:

Hi Gad,

are you sure that the tablespace section is the problem?

The RMAN and tablespace sections are executed in async mode.

Did you execute the test mode?

mk_oracle -t

What is the output?

Edit the mk_oracle.cfg
ASYNC_SECTIONS=“tablespaces”

Repeat the testmode and execute the plugin when async_sections only display the tablespace. You can add the other async_sections from the 1st test to find the section with the problem.

Kind Regards

Thorsten

2017-07-02 8:31 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi
the query “select * from dba_free_space;” returns the result instantly.

Regards,

Gad

On Fri, Jun 30, 2017 at 10:43 PM, Thorsten Bruhns thorsten.bruhns@googlemail.com wrote:

Hi Gad,

this sound like a known issue in Oracle…

There were some issues in the plugin in the past but the current problems are related to the data dictionary in Oracle.

Does the following SQL return a result in a very short time?

select * from dba_free_space;

If Oracle need >5 Seconds for this SQL then look at the recycle bin. There are a lot of issue with recycle bin and dba_free_space which are really known from 11.2 up to 12.1. I didn’t tested it on 12.2, bedause I disable the recycle bin in every database. Don’t forget to purge the objects - otherwise the SQL is still slow.

Finally don’t forget to gather dictionary statistics and the problem should be gone.

This has nothing to do with Check_MK. Every monitoring who tries to gather data from dba_free_space is hitting this issue.

Kind Regards

Thorsten Bruhns

2017-06-29 9:23 GMT+02:00 Gad Shaked gad.shaked@gmail.com:

Hi,

I am trying to monitor free space in oracle 11 database tablespace. the oracle is running on a Red Hat Enterprise Linux Server release 5 .

to do so, I have installed the “check-mk-agent-1.4.0p7-1.noarch.rpm” on the oracle server and configured the relevant setting in mk_oracle.cfg after granting the check_mk user the relevant permissions on the Oracle level. also I have the /usr/lib/check_mk_agent/plugins/mk_oracle in place.

My problem is the the discovery of the host only returns high level of the specific oracle instance performance details, but does not provide any table space specific details.

what am I doing wrong.

p.s,

I am running

Check_MK 1.4.0p7

Thank you,
Gad


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en