How We’re Using Zabbix 7.0 To Monitor For Windows Updates

Let Zabbix Stay On Top Of Windows Updates Monitoring For You

Anyone looking for an efficient way to monitor their Windows Servers for updates and receive automatic alerts for any pending updates? Look no further!

In just a few simple steps, you can configure your Zabbix sever to monitor for Windows updates and alert you whenever any updates are detected.

Step-by-Step Guide to Monitoring Windows Updates with Zabbix

Step 1. Download and Install the Zabbix Agent

First, download the correct Zabbix agent .msi from the official Zabbix download page, and install it on your Windows server.

Recommended download parameters:

Zabbix agent version: Agent 2 version that matches your Zabbix server version
OS distro: Windows
OS version: Any
Hardware: amd64 (for 64-bit OS)
Zabbix version: Choose the version you’re running
Encryption: OpenSSL
Packaging: MSI

Step 2. Add PowerShell Scripts for Checking Windows Updates

Next, download and place your custom PowerShell scripts (used to check for Windows updates) in the following directory: C:\Program Files\Zabbix Agent 2\zabbix-agent-scripts

Important Note
If you are running into execution policy errors, you will need to set your systems execution policy to ‘unrestricted’ with this command:

Set-ExecutionPolicy Unrestricted -Scope CurrentUser

Otherwise your Powershell scripts will fail to run from Zabbix server. Highly recommend testing the Powershell scripts on your machine directly before moving on to next steps.

Step 3. Modify the Zabbix Agent Configuration

Edit the zabbix_agent2.conf file, located in: C:\Program Files\Zabbix Agent 2\

IMPORTANT NOTE – If you are NOT running ‘Zabbix Agent 2‘, then your directory path will instead be ‘C:\Program Files\Zabbix Agent\’. Ensure your directory path is correct otherwise your Zabbix server will not be able to make contact with your Zabbix script(s).

Pro Tip – Use a text editor like Notepad++ to modify the file.

Increase the timeout: Find the following block and add the last line to increase the timeout to 30 seconds.

### Option: Timeout
# Specifies timeout for communications (in seconds).
#
# Mandatory: no
# Range: 1-30
# Default:
# Timeout=3
Timeout=30

(Optional) Allow system.run commands: Find the “# DenyKey=system.run[*]” code block and add this line to the bottom: AllowKey=system.run[*]

Add User Parameters: find the “# UserParameter=” code block and add these lines to the bottom:


UserParameter=DaysSinceLastUpdate,powershell.exe -NoProfile -ExecutionPolicy bypass -File "C:\Program Files\Zabbix Agent 2\zabbix-agent-scripts\DaysSinceLastUpdate.ps1"
UserParameter=CountUninstalledUpdates,powershell.exe -NoProfile -ExecutionPolicy bypass -File "C:\Program Files\Zabbix Agent 2\zabbix-agent-scripts\CountUninstalledUpdates.ps1"

 

Restart Zabbix service on the windows server
Windows flag key + R on your keyboard to bring up Run then; services.msc>find ‘zabbix agent 2’ service>right click, restart

Step 4. Increase Timeout on Zabbix Server (if not already done)

If you haven’t already increased the timeout on your Zabbix server, do so by editing the zabbix_server.conf file: sudo vim /etc/zabbix/zabbix_server.conf

Look for the Timeout block and update it accordingly. After making changes, restart the Zabbix server: sudo systemctl restart zabbix-server

5. Create a New Item For Your Host In Zabbix Frontend
(note – if you haven’t created your host in Zabbix frontend yet, do so and then circle back to this step)

Navigate to the Items section for your host in Zabbix, and create a new item with the following parameters:
Name: Count Uninstalled Windows Updates
Type: Zabbix agent
Key: CountUninstalledUpdates
Type Of Information: Numeric (unsigned)
Host Interface: (Enter your host’s IP)
Update Interval: 1d
Increase item timeout to 30 seconds

Leave the rest of the parameters as default, and click Add to save the item.

6. Create a Trigger In Zabbix Frontend

Now, create a trigger to alert you when updates are available. In the Triggers section for your host, click Create Trigger with the following details:
Name: Windows Updates Available
Severity: High
Expression: max(/<hostname>/CountUninstalledUpdates,#1)>0
Note: be sure to replace ‘<hostname>’ with the actual hostname of your windows server

7. Add custom script to Zabbix frontend
This will give you the ability to query your Windows Server updates straight from Zabbix

– Navigate to the scripts section of your Zabbbix fronend. If you’re in Zabbix v7, it can be found on the left side column tool bar under alerts>scripts>create script

Here is the command:

powershell -NoProfile -ExecutionPolicy bypass -File "C:\Program Files\Zabbix Agent 2\zabbix-agent-scripts\ListUninstalledUpdates.ps1"

If configured correctly, you can now query your windows server for Microsoft updates straight from your Zabbix frontend by going to monitoring>hosts>left click on your windows server host and under scripts, select ‘List Windows Updates’

If you prefer a video guide, we’ll why didn’t you just say so ;-p

#Zabbix, #WindowsUpdates, #ZabbixMonitoring, #ITAutomation, #SystemAdministration, #WindowsServer, #PowerShellScripts, #ZabbixAgent, #ServerMonitoring, #ITInfrastructure, #ZabbixConfiguration, #ZabbixTutorial, #NetworkMonitoring, #PatchManagement, #ITSecurity, #HowToMonitorWindowsUpdatesWithZabbix7

Apply FRESH Thermal Paste To Your Refurbished Computers

Thermal paste, also known as thermal compound or thermal grease, is a substance applied between a CPU (Central Processing Unit) and a heat sink to improve the thermal conductivity between them. Its primary purpose is to fill in microscopic imperfections on the surfaces of the CPU and heat sink, ensuring better heat transfer.

When a CPU operates, it generates heat, and efficient heat dissipation is crucial to prevent the CPU from overheating. The thermal paste helps in enhancing the thermal conductivity between the CPU and the heat sink, allowing heat to transfer more effectively from the CPU to the heat sink. This, in turn, helps to keep the CPU temperature within safe operating limits.

Our Recommendation

If you’ve recently acquired an older refurbished computer, we highly recommend monitoring current cpu temps to see if they are optimal and if not, we suggest applying  fresh thermal paste. We typically just do this by default in most cases with refurbs and based off the age of the computer.

But how often do I really need to re-apply fresh thermal paste?

The frequency of reapplying thermal paste depends on various factors, including the type of thermal paste used, the quality of the initial application, and the operating conditions of the computer. In general, it’s not necessary to reapply thermal paste very often. Here are some guidelines:

  1. Factory Applied Paste: If your computer is brand new or has factory-applied thermal paste, there’s usually no need to reapply it for several years.
  2. High-Quality Paste: If you used a high-quality thermal paste during the initial application, it can remain effective for a longer time. Some premium thermal pastes can last for several years without significant degradation.
  3. Normal Usage: For most users with standard computer usage patterns (e.g., browsing, office work, occasional gaming), it’s typically recommended to check the thermal paste every 3-5 years.
  4. Intensive Usage: If your computer undergoes heavy usage, such as gaming, video editing, or other resource-intensive tasks, you might consider checking and potentially reapplying thermal paste every 2-3 years.
  5. Temperature Monitoring: Regularly monitoring your CPU temperatures can provide insights. If you notice a significant increase in temperatures over time, it might be an indicator that the thermal paste needs replacement.

10 year old CPU still using the same original thermal paste from the factory, got a fresh coat today, yay! We used Corsair’s TM30 Performance Thermal Paste in the below example ->

 

How I Earned The Netgate pfSense Plus Fundamentals and Practical Application Certification

So I went on a mission to  snag up the Netgate pfSense Plus Fundamentals and Practical Application CertificationVery interesting journey to say the least & the exams were definitely unlike any of my previous exams. Check out the videos below for some guidance on how you can earn yours too.

Reference links ->

https://www.netgate.com/training/pfsense-fundamentals-and-advanced-application
https://info.netgate.com/pfsenseplus-training

.

 

#how to pass pfsense certification exam
#how to get pfsense certified
#how to get pfsense fundamentals and practical application certification
#tips for getting pfsense certified
#how to get netgate pfsense plus certified