[ZBX-24234] Oracle plugin archivelog dest status missing valid value Created: 2024 Mar 18  Updated: 2024 Sep 17

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent2 plugin (G)
Affects Version/s: 6.4.12
Fix Version/s: None

Type: Problem report Priority: Minor
Reporter: Michal Kašpar Assignee: Kristaps Naglis
Resolution: Unresolved Votes: 0
Labels: Agent2, Oracle, golang, plugins
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Steps to reproduce:

  1. In oracle create archivelog destination with alternate status (see https://docs.oracle.com/en/database/oracle/oracle-database/19/sbydb/using-ALTERNATE-attribute-to-configure-alternate-destinations.html#GUID-7055337B-A852-402F-8B2F-2E119CBE6437 )

Result:

Zabbix evaluates the destination as unavailable (or better doesn't evaluate it as available) and triggers Archivelog '{#DEST_NAME}': Log Archive is not valid trigger
Expected:
The destination is evaulated as valid and available.

The change seems to be quite simple in src/[go|https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/src/go?at=c9640dbb98063f509f87f9f1cbe3cc431bb84f94]/[plugins|https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/src/go/plugins?at=c9640dbb98063f509f87f9f1cbe3cc431bb84f94]/[oracle|https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/src/go/plugins/oracle?at=c9640dbb98063f509f87f9f1cbe3cc431bb84f94]/handler_archive.go from

    row, err := conn.QueryRow(ctx, `
        SELECT
            JSON_OBJECT('available' VALUE COUNT)
        FROM
            V$LOG    
        WHERE 
            STATUS IN ('INACTIVE', 'UNUSED')
    `)

to

    row, err := conn.QueryRow(ctx, `
        SELECT
            JSON_OBJECT('available' VALUE COUNT)
        FROM
            V$LOG    
        WHERE 
            STATUS IN ('INACTIVE', 'UNUSED', 'ALTERNATE')
    `)


Generated at Mon Jun 30 07:57:51 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.