Monday, 23 June 2025

Western Digital MyCloud EX4100 - Zabbix SNMP Templates

 Here is the template that I created:

zabbix_export:
version: '7.0'
template_groups:
- uuid: 7df96b18c230490a9a0a9e2307226338
name: Templates
templates:
- uuid: b7d37b2b7192436ba04ad17c9559e7a3
template: 'WD EX4100'
name: 'WD EX4100'
groups:
- name: Templates
items:
- uuid: 2d5c9f65eae849179b1b9efea76e1f9b
name: 'System Temperature'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.5127.1.1.1.6.1.7.0
key: system.temperature
value_type: "UNSIGNED"
delay: 60s
history: 7d
units: °C
preprocessing:
- type: REGEX
parameters:
- 'Centigrade:([0-9]+)'
- '\1'
- type: DISCARD_UNCHANGED
parameters:
- '0'
- type: STR_REPLACE
parameters:
- '\t'
- ''
triggers:
- uuid: 19c0bacd35674e52862428886d9bb8f5
expression: 'last(/WD EX4100/system.temperature) > 35'
name: 'High system temperature (>45°C) on { HOSTNAME}'
priority: WARNING

- uuid: 9caa115d20cb41d3a6d310cf0b3adf91
name: 'Fan Status'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.5127.1.1.1.6.1.8.0
key: system.fan.status
value_type: "TEXT"
delay: 60s
history: 7d
preprocessing:
- type: REGEX
parameters:
- 'fan0:\s*(\w+)'
- '\1'
- uuid: 846a55194fc84d32b205b364dc1ce503
name: 'Drive 1 Temperature'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.5127.1.1.1.6.1.10.1.5.1
key: drive.1.temperature
value_type: "UNSIGNED"
delay: 60s
history: 7d
units: °C
preprocessing:
- type: REGEX
parameters:
- 'Centigrade:([0-9]+)'
- '\1'
triggers:
- uuid: d2205e2739f04351979683de3a6b78f2
expression: 'last(/WD EX4100/drive.1.temperature) > 50'
name: 'High Drive 1 temperature (>50°C) on { HOSTNAME}'
priority: WARNING

- uuid: fffcb441f2c84aabb5c546e21b4934ee
name: 'Drive 2 Temperature'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.5127.1.1.1.6.1.10.1.5.2
key: drive.2.temperature
value_type: "UNSIGNED"
delay: 60s
history: 7d
units: °C
preprocessing:
- type: REGEX
parameters:
- 'Centigrade:([0-9]+)'
- '\1'
triggers:
- uuid: 00353f4339ae4463829e54343fd2b6dc
expression: 'last(/WD EX4100/drive.2.temperature) > 50'
name: 'High Drive 2 temperature (>50°C) on { HOSTNAME}'
priority: WARNING

- uuid: c8bd3b2d4e3c4dd9a8d37291d2e2f34d
name: 'Drive 3 Temperature'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.5127.1.1.1.6.1.10.1.5.3
key: drive.3.temperature
value_type: "UNSIGNED"
delay: 60s
history: 7d
units: °C
preprocessing:
- type: REGEX
parameters:
- 'Centigrade:([0-9]+)'
- '\1'
triggers:
- uuid: 62412199cdfe47eb9231d67f3d8234f2
expression: 'last(/WD EX4100/drive.3.temperature) > 50'
name: 'High Drive 3 temperature (>50°C) on { HOSTNAME}'
priority: WARNING

- uuid: d4b5a973129e4d68a00dbf1f689be14b
name: 'Drive 4 Temperature'
type: SNMP_AGENT
snmp_oid: .1.3.6.1.4.1.5127.1.1.1.6.1.10.1.5.4
key: drive.4.temperature
value_type: "UNSIGNED"
delay: 60s
history: 7d
units: °C
preprocessing:
- type: REGEX
parameters:
- 'Centigrade:([0-9]+)'
- '\1'
triggers:
- uuid: f52a4ca4e9134c91b5245ab575633668
expression: 'last(/WD EX4100/drive.4.temperature) > 50'
name: 'High Drive 4 temperature (>50°C) on { HOSTNAME}'
priority: WARNING

macros:
- macro: '{$SNMP_COMMUNITY}'
value: public

Sunday, 20 April 2025

SreeMuruganTileWorks.in - Drupal 11 Website

 Creating the official website for Sree Murugan Tile Works was more than just a technical project—it was a very important experience that merged my passion for personal computing with my business needs.

I chose Drupal 11 as the CMS, as I have decades of experience with it. Hosted on AWS EC2 Linux, with MariaDB running in a Docker container. Running Drupal on a container must make sense, but I chose to install it on the system directly to keep it simple. The theme is based on Bootstrap 5, customized using Sass to achieve a clean, mobile-first layout. I structured the site around our core products—roofing tiles, flooring tiles, and wall tiles—adding content types, taxonomies, and views to manage everything flexibly.

One challenge was optimizing performance of images. Seems PNG, though offering transparency, does not help when it comes to image size! Drupal comes with many SEO ready reatures - Clean URLs, sitemaps, meta data etc to made sure our site was crawlable and fast-loading.

It brought together my interests in computing, creativity, and communication. If you're a DIYer or enthusiast, building your own business site is a project worth taking up.

Sree Murugan Tile Works is the manufacturer of terracotta (clay) tiles for flooring, roofing, facade walls and decorative tiles. Gopuram Brand is very popular since 1958! Visit Sree Murugan Tile Works website!