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

[v3.3.2.1] mode 'flash-recovery-area-usage' - Use of uninitialized value $has_flash in string eq at line 4599. #41

Open
log1-c opened this issue Mar 9, 2023 · 1 comment

Comments

@log1-c
Copy link

log1-c commented Mar 9, 2023

Hi :)

After updating the script to v3.3.2.1 all flash-recovery-area-usage checks print Use of uninitialized value $has_flash in string eq at /usr/lib/nagios/plugins/check_oracle_health line 4599. before the actual check output.

No matter if the check would be OK (flash recovery area found) or critical (not found).
image
image

Changing line 4599 to

if ($has_flash and $has_flash eq "NO") {

gets rid of the message for both cases.

Seems to me that this script part is "nulling" the $has_flash variable

if ($self->version_is_minimum("10.x")) {
      $has_flash = $params{handle}->fetchrow_array(q{
          select FLASHBACK_ON from v$database;
      });
    }

As I have no clue about Oracle databases, I don't know if what I did makes sense.

Best regards
log1c

@Steampower
Copy link

Hi All,

although I have limited knowledge about perl, I know quite a bit about oracle databases... and sorry, this part makes no sense to me.

when I read the script correct the plugin will always return OK when flashback is disabled... unfortunately the flash recovery area can store more than flashback logs, so it might important to monitor the usage even if flashback is disabled...

cheers
Benjamin

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

No branches or pull requests

2 participants