<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>ZABBIX Forums - Zabbix Cookbook</title>
		<link>https://www.zabbix.com/forum/</link>
		<description>Share your experience about monitoring of specific applications, devices, network equipment with ZABBIX.</description>
		<language>en</language>
		<lastBuildDate>Thu, 26 Nov 2026 10:58:39 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://assets.zabbix.com/img/logo.png</url>
			<title>ZABBIX Forums - Zabbix Cookbook</title>
			<link>https://www.zabbix.com/forum/</link>
		</image>
		<item>
			<title>Rackmap, a frontend module to draw your racks with live host status (Zabbix 8.0)</title>
			<link>https://www.zabbix.com/forum/zabbix-cookbook/518681-rackmap-a-frontend-module-to-draw-your-racks-with-live-host-status-zabbix-8-0</link>
			<pubDate>Sun, 22 Nov 2026 20:21:18 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
I've been working on a small frontend module for Zabbix 8.0 and it's at a point where I'm comfortable sharing it. It's called Rackmap. 
 
The idea came from my own setup: I wanted to see my racks as they actually look, with the switches, servers and NAS where they sit, and have Zabbix...]]></description>
			<content:encoded><![CDATA[Hi all,<br />
<br />
I've been working on a small frontend module for Zabbix 8.0 and it's at a point where I'm comfortable sharing it. It's called Rackmap.<br />
<br />
The idea came from my own setup: I wanted to see my racks as they actually look, with the switches, servers and NAS where they sit, and have Zabbix tell me what's up or down directly on the picture. So each device in the rack can be linked to a Zabbix host, and its LED and colour follow the host status (OK, problem by severity, unreachable, disabled).<br />
<br />
You can draw cables between real ports, either by clicking a port and then another one, or through a form. If the linked host has net.if.in / net.if.out items matching the port, the cable is animated according to the throughput, with a different colour for each direction. Clicking a device opens a side panel with metrics, graphs, problems and its connections.<br />
<br />
Other things it does: full or half width devices (two small servers side by side), RJ45 and SFP ports with several speed groups, drive bays, several racks grouped by datacenter with cables between racks, U numbering from top or bottom, zoom and PNG export. Everything is edited in the page itself, there is no config file.<br />
<br />
It stores its data in its own tables (rackmap_*), nothing touches the Zabbix schema. I develop and run it on Zabbix 8.0 with PostgreSQL. A MySQL/MariaDB schema is included but I haven't tested it nearly as much, so if you try it on MySQL and something breaks, please tell me.<br />
<br />
Install instructions are in the README:<br />
<a href="https://github.com/barto95100/zbx-rackmap" target="_blank">https://github.com/barto95100/zbx-rackmap</a><br />
<br />
I'd be happy to hear what's missing or what doesn't work on your side. Screenshot attached.]]></content:encoded>
			<category domain="https://www.zabbix.com/forum/zabbix-cookbook">Zabbix Cookbook</category>
			<dc:creator>barto_95</dc:creator>
			<guid isPermaLink="true">https://www.zabbix.com/forum/zabbix-cookbook/518681-rackmap-a-frontend-module-to-draw-your-racks-with-live-host-status-zabbix-8-0</guid>
		</item>
		<item>
			<title><![CDATA[[MODULE] Cablemap – automatic cabling map and services tree for Zabbix 8]]></title>
			<link>https://www.zabbix.com/forum/zabbix-cookbook/518621-module-cablemap-–-automatic-cabling-map-and-services-tree-for-zabbix-8</link>
			<pubDate>Fri, 20 Nov 2026 08:34:01 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I got tired of placing hosts by hand on native maps, so I wrote a frontend module that draws the map for me. You put a tag on each host saying where it's plugged in (for example cablemap.uplink = core-switch:12) and it builds the tree, with live traffic on the links and the problems in...]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
I got tired of placing hosts by hand on native maps, so I wrote a frontend module that draws the map for me. You put a tag on each host saying where it's plugged in (for example cablemap.uplink = core-switch:12) and it builds the tree, with live traffic on the links and the problems in color.<br />
<br />
One thing I use a lot: when a host is down and its parent is fine, it's flagged as the root cause and everything behind it is greyed out, so I see right away what to fix first.<br />
<br />
There's also a second page that draws the Services tree (the one used for SLA) as a graph. It needs no tags, it just reads the services you already have.<br />
<br />
I run it on Zabbix 8.0 at home, with MikroTik, UniFi and Proxmox. I haven't tried it anywhere else, so I'd really like to know how it behaves on your setups, especially with other SNMP templates.<br />
<br />
AGPL-3.0, screenshots and a quick start are in the README:<br />
<a href="https://github.com/barto95100/zbx-cablemap" target="_blank">https://github.com/barto95100/zbx-cablemap</a><br />
<br />
Any feedback is welcome.]]></content:encoded>
			<category domain="https://www.zabbix.com/forum/zabbix-cookbook">Zabbix Cookbook</category>
			<dc:creator>barto_95</dc:creator>
			<guid isPermaLink="true">https://www.zabbix.com/forum/zabbix-cookbook/518621-module-cablemap-–-automatic-cabling-map-and-services-tree-for-zabbix-8</guid>
		</item>
		<item>
			<title><![CDATA[[HOW-TO] Zabbix 7.0 UI: Click-Only Sidebar &amp;amp; Honeycomb-to-Item Navigator Filter]]></title>
			<link>https://www.zabbix.com/forum/zabbix-cookbook/518322-how-to-zabbix-7-0-ui-click-only-sidebar-honeycomb-to-item-navigator-filter</link>
			<pubDate>Fri, 06 Nov 2026 07:40:34 GMT</pubDate>
			<description>Hi Zabbix Community, 
 
In dense Zabbix 7.0 dashboard environments, two common usability challenges often arise:  
 Sidebar Hover Auto-Expansion: The collapsed navigation sidebar automatically expands when hovering your cursor over it, causing unwanted UI layout shifts during routine monitoring. 
...</description>
			<content:encoded><![CDATA[Hi <b>Zabbix Community,</b><br />
<br />
In dense Zabbix 7.0 dashboard environments, two common usability challenges often arise:<ol class="decimal"><li><b>Sidebar Hover Auto-Expansion:</b> The collapsed navigation sidebar automatically expands when hovering your cursor over it, causing unwanted UI layout shifts during routine monitoring.</li>
<li><b>Widget Inter-Communication:</b> When clicking a host cell in the Honeycomb widget, there is no native dynamic filtering passed to the Item Navigator widget tree to isolate that host's metrics.</li>
</ol><br />
To solve this, I developed self-contained bash/Python deployment scripts for Zabbix 7.0 (tested on Zabbix 7.0.31 on Ubuntu 24.04 / Debian). <b>Key Features</b><ul><li><b>Pristine Backups:</b> Creates .og original backups of core files before applying any changes.</li>
<li><b>Click-Only Sidebar:</b> Completely disables all mouseenter triggers on class.sidebar.js.</li>
<li><b>Dynamic Host Filtering:</b> Intercepts Honeycomb cell clicks in class.svghoneycomb.js and targets custom-scoped search inputs in class.itemnavigator.js to isolate host metrics without populating global menu search bars.</li>
</ul><b>Complete Deployment Script</b><br />
<br />
<br />
Run this single, self-contained deployment script on your Zabbix web server terminal as sudo:<br />
<br />
Bash<br />
#!/bin/bash<br />
set -e<br />
<br />
FILE_HONEYCOMB=&quot;/usr/share/zabbix/widgets/honeycomb/assets/js/class.widget.js&quot;<br />
FILE_SVG=&quot;/usr/share/zabbix/widgets/honeycomb/assets/js/class.svghoneycomb.js&quot;<br />
FILE_SIDEBAR=&quot;/usr/share/zabbix/js/class.sidebar.js&quot;<br />
FILE_NAV=&quot;/usr/share/zabbix/widgets/itemnavigator/assets/js/class.itemnavigator.js&quot;<br />
<br />
echo &quot;=== [1/3] Restoring Pristine Backups if Present ===&quot;<br />
for FILE in &quot;$FILE_HONEYCOMB&quot; &quot;$FILE_SVG&quot; &quot;$FILE_SIDEBAR&quot; &quot;$FILE_NAV&quot;; do<br />
if [ -f &quot;$FILE&quot; ] &amp;&amp; [ ! -f &quot;${FILE}.og&quot; ]; then<br />
sudo cp &quot;$FILE&quot; &quot;${FILE}.og&quot;<br />
echo &quot;[+] Backup created: ${FILE}.og&quot;<br />
fi<br />
done<br />
<br />
echo &quot;=== [2/3] Applying Scoped Click Interceptor &amp; Single Search Bar Patch ===&quot;<br />
sudo python3 -c '<br />
# 1. Patch Item Navigator to create ONLY ONE search input and give it an explicit unique class<br />
file_nav = &quot;/usr/share/zabbix/widgets/itemnavigator/assets/js/class.itemnavigator.js&quot;<br />
with open(file_nav + &quot;.og&quot;, &quot;r&quot;) as f:<br />
nav_content = f.read()<br />
<br />
target_nav = &quot;this.#container.appendChild(this.#navigation_ tree .getContainer());&quot;<br />
<br />
replacement_nav = &quot;&quot;&quot;\t\ttry {<br />
\t\t\tif (!this.#container.querySelector(&quot;.zbx-custom-nav-search&quot;)) {<br />
\t\t\t\tconst filterDiv = document.createElement(&quot;div&quot;);<br />
\t\t\t\tfilterDiv.className = &quot;zbx-custom-nav-search-wrapper&quot;;<br />
\t\t\t\tfilterDiv.style.cssText = &quot;padding: 4px 6px; background: #fff; border-bottom: 1px solid #dfe4e8; margin-bottom: 4px;&quot;;<br />
<br />
\t\t\t\tconst filterInput = document.createElement(&quot;input&quot;);<br />
\t\t\t\tfilterInput.type = &quot;text&quot;;<br />
\t\t\t\tfilterInput.placeholder = &quot;Search items...&quot;;<br />
\t\t\t\tfilterInput.className = &quot;form-input zbx-custom-nav-search&quot;;<br />
\t\t\t\tfilterInput.style.cssText = &quot;width: 100%; height: 24px; padding: 0 6px; font-size: 11px; box-sizing: border-box;&quot;;<br />
<br />
\t\t\t\tfilterInput.addEventListener(&quot;input&quot;, (e) =&gt; {<br />
\t\t\t\t\tconst val = e.target.value.toLowerCase().trim();<br />
\t\t\t\t\tconst nodes = this.#container.querySelectorAll(&quot;li, .tree-item, a, [class*=\x27navigation-tree\x27]&quot;);<br />
\t\t\t\t\tnodes.forEach(node =&gt; {<br />
\t\t\t\t\t\tconst txt = (node.innerText || node.textContent || &quot;&quot;).toLowerCase();<br />
\t\t\t\t\t\tif (val === &quot;&quot; || txt.includes(val)) {<br />
\t\t\t\t\t\t\tnode.style.setProperty(&quot;display&quot;, &quot;&quot;, &quot;important&quot;);<br />
\t\t\t\t\t\t} else {<br />
\t\t\t\t\t\t\tnode.style.setProperty(&quot;display&quot;, &quot;none&quot;, &quot;important&quot;);<br />
\t\t\t\t\t\t}<br />
\t\t\t\t\t});<br />
\t\t\t\t});<br />
<br />
\t\t\t\tfilterDiv.appendChild(filterInput);<br />
\t\t\t\tthis.#container.appendChild(filterDiv);<br />
\t\t\t}<br />
\t\t} catch(err) { console.error(&quot;Item Navigator patch error:&quot;, err); }<br />
<br />
\t\tthis.#container.appendChild(this.#navigation_t ree.getContainer());&quot;&quot;&quot;<br />
<br />
if target_nav in nav_content:<br />
with open(file_nav, &quot;w&quot;) as f:<br />
f.write(nav_content.replace(target_nav, replacement_nav))<br />
print(&quot;[+] Scoped Item Navigator search input patched cleanly!&quot;)<br />
<br />
# 2. Patch Honeycomb SVG to target strictly .zbx-custom-nav-search inputs (skipping left sidebar menu inputs)<br />
file_svg = &quot;/usr/share/zabbix/widgets/honeycomb/assets/js/class.svghoneycomb.js&quot;<br />
with open(file_svg + &quot;.og&quot;, &quot;r&quot;) as f:<br />
svg_content = f.read()<br />
<br />
target_svg = &quot;&quot;&quot;\t#drawCell(cell) {<br />
\t\tcell<br />
\t\t\t.call(cell =&gt; this.#drawLabel(cell))<br />
\t\t\t.on(\x27click\x27, (e, d) =&gt; {<br />
\t\t\t\tif (this.selectCell(d.itemid)) {<br />
\t\t\t\t\tthis.#svg.dispatch(CSVGHoneycomb.EVENT_C ELL_CLICK, {<br />
\t\t\t\t\t\tdetail: {<br />
\t\t\t\t\t\t\thostid: d.hostid,<br />
\t\t\t\t\t\t\titemid: d.itemid<br />
\t\t\t\t\t\t}<br />
\t\t\t\t\t});<br />
\t\t\t\t}<br />
\t\t\t})&quot;&quot;&quot;<br />
<br />
replacement_svg = &quot;&quot;&quot;\t#drawCell(cell) {<br />
\t\tcell<br />
\t\t\t.style(\x27cursor\x27, \x27pointer\x27)<br />
\t\t\t.call(cell =&gt; this.#drawLabel(cell))<br />
\t\t\t.on(\x27click\x27, (e, d) =&gt; {<br />
\t\t\t\tif (this.selectCell(d.itemid)) {<br />
\t\t\t\t\tthis.#svg.dispatch(CSVGHoneycomb.EVENT_C ELL_CLICK, {<br />
\t\t\t\t\t\tdetail: {<br />
\t\t\t\t\t\t\thostid: d.hostid,<br />
\t\t\t\t\t\t\titemid: d.itemid<br />
\t\t\t\t\t\t}<br />
\t\t\t\t\t});<br />
\t\t\t\t}<br />
<br />
\t\t\t\tsetTimeout(() =&gt; {<br />
\t\t\t\t\ttry {<br />
\t\t\t\t\t\tlet vmName = &quot;&quot;;<br />
\t\t\t\t\t\tif (d &amp;&amp; d.labels &amp;&amp; d.labels.primary) {<br />
\t\t\t\t\t\t\tif (d.labels.primary.lines) {<br />
\t\t\t\t\t\t\t\tvmName = Array.from(d.labels.primary.lines).join(&quot; &quot;);<br />
\t\t\t\t\t\t\t} else if (d.labels.primary.text) {<br />
\t\t\t\t\t\t\t\tvmName = d.labels.primary.text;<br />
\t\t\t\t\t\t\t}<br />
\t\t\t\t\t\t}<br />
\t\t\t\t\t\tif (!vmName &amp;&amp; e) {<br />
\t\t\t\t\t\t\tconst t = e.currentTarget || e.target;<br />
\t\t\t\t\t\t\tif (t) vmName = t.textContent || t.innerText || &quot;&quot;;<br />
\t\t\t\t\t\t}<br />
<br />
\t\t\t\t\t\tif (vmName) {<br />
\t\t\t\t\t\t\tvmName = vmName.includes(&quot; - &quot;) ? vmName.split(&quot; - &quot;).pop().trim() : vmName.trim();<br />
<br />
\t\t\t\t\t\t\t// Target strictly custom item navigator search inputs<br />
\t\t\t\t\t\t\tconst navInputs = document.querySelectorAll(&quot;input.zbx-custom-nav-search&quot;);<br />
\t\t\t\t\t\t\tnavInputs.forEach(inp =&gt; {<br />
\t\t\t\t\t\t\t\tinp.value = vmName;<br />
\t\t\t\t\t\t\t\tinp.dispatchEvent(new Event(&quot;input&quot;, { bubbles: true }));<br />
\t\t\t\t\t\t\t\tinp.dispatchEvent(new Event(&quot;change&quot;, { bubbles: true }));<br />
\t\t\t\t\t\t\t});<br />
\t\t\t\t\t\t}<br />
\t\t\t\t\t} catch(err) { console.error(&quot;SVG click handler error:&quot;, err); }<br />
\t\t\t\t}, 10);<br />
\t\t\t})&quot;&quot;&quot;<br />
<br />
if target_svg in svg_content:<br />
with open(file_svg, &quot;w&quot;) as f:<br />
f.write(svg_content.replace(target_svg, replacement_svg))<br />
print(&quot;[+] Honeycomb SVG click handler updated with explicit class scoping!&quot;)<br />
<br />
# 3. Patch Sidebar Click-Only Mode<br />
file_sidebar = &quot;/usr/share/zabbix/js/class.sidebar.js&quot;<br />
with open(file_sidebar + &quot;.og&quot;, &quot;r&quot;) as f:<br />
sidebar_content = f.read()<br />
<br />
sidebar_content = sidebar_content.replace(&quot;this.on(\x27mouseenter\x2 7, this._events.mouseenter);&quot;, &quot;// disabled hover open&quot;)<br />
sidebar_content = sidebar_content.replace(&quot;item.hasSubmenu() &amp;&amp; item.on(\x27mouseenter\x27&quot;, &quot;// item.hasSubmenu() &amp;&amp; item.on(\x27mouseenter\x27&quot;)<br />
sidebar_content = sidebar_content.replace(&quot;this.on(\x27mouseenter\x2 7, this._events.cancelExpandSelected);&quot;, &quot;// disabled cancel expand&quot;)<br />
<br />
with open(file_sidebar, &quot;w&quot;) as f:<br />
f.write(sidebar_content)<br />
print(&quot;[+] Sidebar global click-only patch applied!&quot;)<br />
'<br />
<br />
echo &quot;=== [3/3] Setting Permissions &amp; Restarting Web Stack ===&quot;<br />
sudo chown www-data:www-data &quot;$FILE_HONEYCOMB&quot; &quot;$FILE_SVG&quot; &quot;$FILE_SIDEBAR&quot; &quot;$FILE_NAV&quot;<br />
sudo chmod 644 &quot;$FILE_HONEYCOMB&quot; &quot;$FILE_SVG&quot; &quot;$FILE_SIDEBAR&quot; &quot;$FILE_NAV&quot;<br />
<br />
sudo systemctl restart php*-fpm 2&gt;/dev/null || true<br />
sudo systemctl restart nginx apache2 2&gt;/dev/null || true<br />
<br />
echo &quot;=== Deployment Complete ===&quot;]]></content:encoded>
			<category domain="https://www.zabbix.com/forum/zabbix-cookbook">Zabbix Cookbook</category>
			<dc:creator>Abinash</dc:creator>
			<guid isPermaLink="true">https://www.zabbix.com/forum/zabbix-cookbook/518322-how-to-zabbix-7-0-ui-click-only-sidebar-honeycomb-to-item-navigator-filter</guid>
		</item>
	</channel>
</rss>
