Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Bug when ora_pmon Process of Oracle DB is not running #407

Closed
wants to merge 1 commit into from

Conversation

thomas1147
Copy link
Contributor

The modification fix the following Bug:

  • We have only one Oracle DB on the Host
  • The DB is already monitored ($MK_VARDIR/mk_oracle.found and Services discovered in checkmk)
  • When the ora_pmon process of the Oracle DB is not running the Plugin script must print all sections so that the check script on the server can handle this. But due to the bug in the If-Statement the condition is evaluated as true in function do_dummy_sections and is not printing the sections. As a result the Oracle Instance service goes Stale and we can't react on this.

The if condition should check if the Variable MK_ORA_SECTIONS is set and not break the function. With this modification the ORA service will go to UNKNOWN and we can get a notification.

The modification fix the following Bug:
- We have only one Oracle DB on the Host
- The DB is already monitored ($MK_VARDIR/mk_oracle.found and Services discovered in checkmk)
- When the ora_pmon process of the Oracle DB is not running the Plugin script must print all sections so that the check script on the server can handle this. But due to the bug in the If-Statement the condition is evaluated as true in function do_dummy_sections and is not printing the sections. As a result the Oracle Instance service goes Stale and we can't react on this.

The if condition should check if the Variable MK_ORA_SECTIONS is set and not break the function. With this modification the ORA <Instance> service will go to UNKNOWN and we can get a notification.
@jherbel
Copy link
Contributor

jherbel commented Oct 19, 2021

Hi, thank you for this PR, just merged it.

LarsMichelsen pushed a commit that referenced this pull request Oct 19, 2021
…rocess on target host

The Oracle agent plugin now handles cases where the Oracle monitoring background
process (<tt>ora_pmon</tt> on Unix systems) is not running correctly. In such cases,
the agent plugin now prints out empty sections, s.t. the corresponding services on
the Checkmk server go UNKNOWN.

Closes #407

Change-Id: I4af77ec3e7e06c0a3195ef684704b54ca5098664
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants