<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aurélien Py, auteur/autrice sur dbi Blog</title>
	<atom:link href="https://www.dbi-services.com/blog/author/aurelienpy/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbi-services.com/blog/author/aurelienpy/</link>
	<description></description>
	<lastBuildDate>Tue, 26 May 2026 15:11:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2025/05/cropped-favicon_512x512px-min-32x32.png</url>
	<title>Aurélien Py, auteur/autrice sur dbi Blog</title>
	<link>https://www.dbi-services.com/blog/author/aurelienpy/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Zabbix &#8211; Oracle backups monitoring</title>
		<link>https://www.dbi-services.com/blog/zabbix-oracle-backups-monitoring/</link>
					<comments>https://www.dbi-services.com/blog/zabbix-oracle-backups-monitoring/#respond</comments>
		
		<dc:creator><![CDATA[Aurélien Py]]></dc:creator>
		<pubDate>Tue, 26 May 2026 15:11:12 +0000</pubDate>
				<category><![CDATA[Database Administration & Monitoring]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Zabbix]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Oracle]]></category>
		<guid isPermaLink="false">https://www.dbi-services.com/blog/?p=42829</guid>

					<description><![CDATA[<p>If your Oracle database is running in ARCHIVELOG mode, monitoring your backups is essential.Without proper backup supervision, the Fast Recovery Area (FRA) can eventually become full, which may block archive log generation and, in the worst case, stop database activity. In this article, we will see how to monitor Oracle backups using Zabbix and the [&#8230;]</p>
<p>L’article <a href="https://www.dbi-services.com/blog/zabbix-oracle-backups-monitoring/">Zabbix &#8211; Oracle backups monitoring</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>If your Oracle database is running in ARCHIVELOG mode, monitoring your backups is essential.<br>Without proper backup supervision, the Fast Recovery Area (FRA) can eventually become full, which may block archive log generation and, in the worst case, stop database activity.</p>



<span id="more-42829"></span>



<p>In this article, we will see how to monitor Oracle backups using Zabbix and the Oracle plugin available with Zabbix Agent 2.</p>



<p>This guide assumes that:</p>



<ul class="wp-block-list">
<li>ARCHIVELOG mode is already enabled, </li>



<li>RMAN backups are already configured, </li>



<li>and Zabbix Agent 2 is already installed on the Oracle server.</li>
</ul>



<h2 class="wp-block-heading" id="h-setup-zabbix-agent-2">Setup Zabbix agent 2</h2>



<p>By default, the Oracle template provided with Zabbix does not include items dedicated to backup monitoring.<br>To achieve this, we will use the Oracle plugin feature called CustomQueries. You can find the documentation for this plugin on the <a href="https://www.zabbix.com/documentation/current/en/manual/appendix/config/zabbix_agent2_plugins/oracle_plugin" id="https://www.zabbix.com/documentation/current/en/manual/appendix/config/zabbix_agent2_plugins/oracle_plugin">official web-site</a>.</p>



<p>The approach is straightforward:</p>



<ul class="wp-block-list">
<li>create custom SQL queries, </li>



<li>store them locally on the database server, </li>



<li>and let Zabbix execute them periodically</li>
</ul>



<p>First, create a directory that will contain your monitoring SQL scripts:</p>



<pre class="wp-block-code"><code>mkdir -p /etc/zabbix/oracle/sql 

chmod 755 -R /etc/zabbix/oracle/sql</code></pre>



<p id="h-create-a-sql-script-that-returns-the-timestamp-of-the-latest-level-0-backup">Create a SQL script that returns the timestamp of the latest level 0 backup.</p>



<pre class="wp-block-code"><code><code>vi /etc/zabbix/oracle/sql/last_inc0.sql</code></code></pre>



<pre class="wp-block-code"><code><code>SELECT
    CAST(((CAST(BS.COMPLETION_TIME AS DATE) - DATE '1970-01-01') * 86400) AS NUMERIC) AS LAST_INC0
FROM
    V$BACKUP_SET BS
WHERE
    BS.INCREMENTAL_LEVEL = 0
ORDER BY
    BS.COMPLETION_TIME DESC
FETCH FIRST 1 ROWS ONLY;</code></code></pre>



<p>This query retrieves the completion time of the latest RMAN level 0 backup. Then, it converts the value into Unix epoch format, which makes preprocessing and trigger calculations much easier inside Zabbix.</p>



<p>You can easily adapt this query to monitor:</p>



<ul class="wp-block-list">
<li>archive log backups,</li>



<li>level 1 incremental backups,</li>



<li>controlfile backups,</li>



<li>or even backup duration.</li>
</ul>



<p id="h-configure-the-oracle-plugin">Configure the Oracle Plugin</p>



<p>Now edit the Oracle plugin configuration file:</p>



<pre class="wp-block-code"><code><code>vi /etc/zabbix/zabbix_agent2.d/plugins.d/oracle.conf</code></code></pre>



<pre class="wp-block-code"><code><code>Plugins.Oracle.CustomQueriesPath=/etc/zabbix/oracle/sql/</code></code></pre>



<p>With this configuration, the Oracle plugin knows exactly where to find your custom SQL scripts.</p>



<p>Afterward, restart the Zabbix Agent 2 service:</p>



<pre class="wp-block-code"><code>systemctl restart zabbix-agent2</code></pre>



<h2 class="wp-block-heading" id="h-setup-zabbix-template">Setup Zabbix template</h2>



<p>In your Oracle template, create a new <strong>Zabbix agent item</strong> using the following key:</p>



<p>oracle.custom.query[&#8220;{$ORACLE.CONNSTRING}&#8221;,&#8221;{$ORACLE.USER}&#8221;,&#8221;{$ORACLE.PASSWORD}&#8221;,&#8221;{$ORACLE.SERVICE}&#8221;,<strong>last_inc0</strong>]</p>



<p>Make sure that:</p>



<ul class="wp-block-list">
<li>the query name matches your SQL file name (<code>last_inc0.sql</code>),</li>



<li>and the preprocessing steps are correctly configured.</li>
</ul>



<p>Once the item becomes active, Zabbix immediately starts collecting the timestamp of the latest level 0 backup.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="786" height="286" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2026/02/Screenshot-2026-02-10-153119.png" alt="" class="wp-image-42831" srcset="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2026/02/Screenshot-2026-02-10-153119.png 786w, https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2026/02/Screenshot-2026-02-10-153119-300x109.png 300w, https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2026/02/Screenshot-2026-02-10-153119-768x279.png 768w" sizes="(max-width: 786px) 100vw, 786px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="813" height="202" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2026/02/Screenshot-2026-02-10-153316.png" alt="" class="wp-image-42832" srcset="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2026/02/Screenshot-2026-02-10-153316.png 813w, https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2026/02/Screenshot-2026-02-10-153316-300x75.png 300w, https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2026/02/Screenshot-2026-02-10-153316-768x191.png 768w" sizes="(max-width: 813px) 100vw, 813px" /></figure>



<ul class="wp-block-list">
<li>And now you can see your last backup time. Then you just have to create a trigger with this item and you have finished !</li>
</ul>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="25" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2026/02/Screenshot-2026-02-10-160538-1024x25.png" alt="" class="wp-image-42834" srcset="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2026/02/Screenshot-2026-02-10-160538-1024x25.png 1024w, https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2026/02/Screenshot-2026-02-10-160538-300x7.png 300w, https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2026/02/Screenshot-2026-02-10-160538-768x18.png 768w, https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2026/02/Screenshot-2026-02-10-160538.png 1041w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading" id="h-conclusion">Conclusion</h2>



<p>By using custom Oracle queries with Zabbix Agent 2, you can quickly extend the default Oracle monitoring capabilities with very little configuration effort.</p>



<p>More importantly, this approach helps you detect backup issues early before the FRA fills up and impacts production systems.</p>



<p>Because the solution remains fully customizable, you can easily extend it later to monitor additional RMAN metrics that match your operational requirements.</p>



<p>You can find other blog regarding Zabbix with this <a href="https://www.dbi-services.com/blog/tag/zabbix/page/3/">link</a>.</p>



<p></p>
<p>L’article <a href="https://www.dbi-services.com/blog/zabbix-oracle-backups-monitoring/">Zabbix &#8211; Oracle backups monitoring</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbi-services.com/blog/zabbix-oracle-backups-monitoring/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)

Served from: www.dbi-services.com @ 2026-05-26 19:41:32 by W3 Total Cache
-->