A smiling sysadmin carries a box of old analog gauges across a bridge toward a bright monitoring dashboard with green charts, server racks and a small cloud cluster

From PRTG to Open Source Monitoring: Why I Picked Zabbix

PRTG has been my bread and butter for years. I do PRTG consultancy, hosting and training, so this post is not a “PRTG is bad” rant. It isn’t. It’s a very good product, and for a lot of customers it’s still the right choice. But I wanted to know what open source can do in 2026. I mean really free: no licence per sensor, no “community edition” with the good stuff behind a paywall. So I wrote down what PRTG does for me today and went shopping. ...

October 22, 2026 · 8 min · Thomas Faddegon
windows-powershell-ise-icon

PRTG Monitor Azure Backups

I adapted an existing solution from 2azure.nl for monitoring Azure Backup status through PRTG in our environment. I did some refactoring and I like to share the code with you. Run the script in PRTG with these parameters: -Password "XXXXX" -applicationid "XXXXX" -TenantId "XXXXX" -VaultName "XXXXX" -ResourceGroupName "XXXXX" The complete script is available in the code block below." param( [Parameter(Mandatory = $true)] [string]$Password, [Parameter(Mandatory = $true)] [string]$ApplicationId, [Parameter(Mandatory = $true)] [string]$TenantId, [Parameter(Mandatory = $true)] [string]$VaultName, [Parameter(Mandatory = $true)] [string]$ResourceGroupName ) # Run Once: Install required modules # Install-Module -Name Az.Accounts # Install-Module -Name Az.RecoveryServices Import-Module Az.Accounts Import-Module Az.RecoveryServices # Login $securePassword = ConvertTo-SecureString $Password -AsPlainText -Force $credential = New-Object System.Management.Automation.PSCredential($ApplicationId, $securePassword) Connect-AzAccount -Credential $credential -ServicePrincipal -TenantId $TenantId | Out-Null # Access specific vault $vault = Get-AzRecoveryServicesVault -Name $VaultName -ResourceGroupName $ResourceGroupName if ($vault) { # Set vault context $vault | Set-AzRecoveryServicesVaultContext # Check backups last 24 hours, only Backup operations $jobs = Get-AzRecoveryServicesBackupJob -From (Get-Date).AddDays(-1).ToUniversalTime() | Where-Object { $_.Operation -eq "Backup" } | Select-Object Status, WorkloadName $completed = ($jobs | Where-Object {$_.Status -eq 'Completed'}).Count $failed = ($jobs | Where-Object {$_.Status -eq 'Failed'}).Count $running = ($jobs | Where-Object {$_.Status -eq 'InProgress'}).Count # Get unique workload names $workloadNames = ($jobs | Select-Object -ExpandProperty WorkloadName -Unique) -join ', ' # Output for PRTG if ($failed -eq 0 -and $completed -gt 0) { $result = "<prtg> <result> <channel>Completed jobs</channel> <value>$completed</value> <LimitMode>1</LimitMode> <LimitMinError>1</LimitMinError> <LimitErrorMsg>No completed backups found!</LimitErrorMsg> </result> <result> <channel>Failed jobs</channel> <value>$failed</value> <LimitMode>1</LimitMode> <LimitMaxError>0</LimitMaxError> <LimitErrorMsg>Failed backup jobs detected!</LimitErrorMsg> </result> <result> <channel>Running jobs</channel> <value>$running</value> <LimitMode>1</LimitMode> <LimitMaxWarning>1</LimitMaxWarning> <LimitMaxError>2</LimitMaxError> <LimitWarningMsg>Multiple backup jobs running</LimitWarningMsg> <LimitErrorMsg>Too many backup jobs running!</LimitErrorMsg> </result> <text>Backup successful in vault: $($vault.Name) for workloads: $workloadNames</text> </prtg>" } else { $result = "<prtg> <error>1</error> <text>Backup failed in vault: $($vault.Name), failed jobs: $failed, workloads: $workloadNames</text> </prtg>" } } else { $result = "<prtg> <error>1</error> <text>Could not find vault $VaultName in resource group $ResourceGroupName</text> </prtg>" } Write-Host $result

January 5, 2025 · 2 min · thomasf

PRTG articles to build custom sensors

In recent times, I’ve dedicated a significant portion of my efforts to developing custom PRTG sensors. To assist others who might be interested in this area, I’ve decided to create this blog post where I will compile a collection of useful links. These links lead to various articles and resources that I’ve found invaluable in my journey of crafting personalized sensors for the PRTG network monitoring tool. This curated list is intended to serve as a helpful guide for anyone looking to explore the possibilities of custom sensor creation in PRTG. ...

May 4, 2024 · 1 min · thomasf
wale

Install Pihole on Synology with docker

Unfortunately, there isn’t a pihole addon in the Synology package center. But you can build your pihole in a docker container instead :) The reason you must use docker-compose instead of the Synology docker package itself is that you want to bridge net NIC of your Synology and place the pihole direct in your network. You cannot do this with the GUI. Install docker with the package center Activate SSH Download de image pihole/pihole:latest Login with ssh type vi docker-compose.yaml Paste the content from the docker-compose.yaml example into the vi Change the IP adressen to your own network Type :wr to save the file Type :q to quit vi Type “sudo docker-compose up” Have fun! # Note: 192.168.123.xxx is an example network, you must update all these to match your own. version: '2' services: pihole: container_name: pihole image: pihole/pihole:latest hostname: pihole domainname: localhost # <-- Update mac_address: d0:ca:ab:cd:ef:01 cap_add: - NET_ADMIN networks: pihole_network: ipv4_address: 192.168.123.199 # <-- Update dns: - 127.0.0.1 - 1.1.1.1 ports: - 443/tcp - 53/tcp - 53/udp - 67/udp - 80/tcp environment: ServerIP: 192.168.123.199 # <-- Update (match ipv4_address) VIRTUAL_HOST: pihole.localhost # <-- Update (match hostname + domainname) WEBPASSWORD: "justarondompassword" # <-- Add password (if required) restart: unless-stopped networks: pihole_network: driver: macvlan driver_opts: parent: ovs_eth0 ipam: config: - subnet: 192.168.123.0/24 # <-- Update gateway: 192.168.123.1 # <-- Update ip_range: 192.168.123.192/28 # <-- Update When you want to update the docker container, all you have to do is: ...

May 12, 2020 · 2 min · thomasf
xi-logo-large

Nagios xi remove host and services

Run each of the following scripts from: /usr/local/nagiosxi/scripts cd /usr/local/nagiosxi/scripts/ ./nagiosql_delete_service.php –-config=LOC_MASShost_1 After the services have successfully been deleted, the host can be removed as well: ./nagiosql_delete_host.php –-host=LOC_MASShost_1 Once the host is removed, the new configuration can be applied and verified by running the reconfigure_nagios.sh ./reconfigure_nagios.sh

April 23, 2014 · 1 min · thomasf

Zenoss reverse proxy with Pound (CentOS)

Zenoss don’t support SSL certificates out-of-the-box. If you want to use an SSL connection to your zenoss monitor server the only thing you can do is use an reverse proxy. You can use this howto to install and configure a pound reverse proxy. Install the EPEL (more info about EPEL) repository with these commands: su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm' yum update Install pound yum install pound ...

February 27, 2014 · 2 min · thomasf

Zenoss: Performance issues with too many events

When you have too many events in your zenoss environment the zenoss webinterface will be very sloooooooow. And you get all kind of errors: Script don’t respond Connection refused. Check zeneventserver status on deamons A zenoss error has occurred When you start top you see alot of java executables when you click on the Infrastructure zenoss button. Java sometimes take 350% CPU. java -Djetty.host=localhost -server -XX:+HeapDumpOnOutOfMemoryError -DZENOSS_COMMAND=zeneventserver -DZENHOME=/opt/zenoss -Djetty.home=/opt/zenoss -Djetty.logs=/opt/zenoss/log -Dlogback.configurationFile=/opt/zenoss/etc/zeneventserver/logback.xml -Xmx1024m -DZENOSS_DAEMON=y -jar /opt/zenoss/lib/jetty-start-7.5.3.v20111011.jar --config=/opt/zenoss/etc/zeneventserver/jetty/start.config --ini=/opt/zenoss/etc/zeneventserver/jetty/jetty.ini --pre=etc/zeneventserver/jetty/jetty-logging.xml ...

February 3, 2014 · 3 min · thomasf

IPMonitor Mass-Edit Disk Space Monitors

Click edit > Mass Edit > Monitor Properties “Add” Monitors where “property” “Type” (Object Type) Matches regular expression: “drive” Replace “Minimum Threshold” by “Overwrite”. Replace with: “10” Click “Preview” to ensure the proper values are being changed. Click “Next”

October 24, 2013 · 1 min · thomasf

Nagios: exclude specific services

With Nagios services check you want include all windows services with status automatic. But some services like the .NET or windows installer services stop sometimes and your monitor turns red. If you want to exclude specific services add this config to the NSC.ini file: alias_service=checkServiceState CheckAll exclude=sppsvc exclude=someotherservice exclude=ShellHWDetection

October 28, 2011 · 1 min · thomasf