I have added an OS Update check on multiple linux servers.
The issue that I have is a few of them are showing as PROBLEM, I cannot find out why this is the case.
The OS of the VM is below.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy
I have added the following UserParamer to the zabbix_agentd.conf file
UserParameter=system.updates,apt list --upgradable 2>/dev/null | wc -l
After adding the line I restarted the agent.
I then ran the following test
zabbix_agentd -t system.updates
the result is below.
system.updates [t|1]
The test runs without any issues.
After the test I then added the item and trigger to the zabbix dashboard for the relevant host.
item below

Trigger below
I have done the same on all of my VM servers and a few of them are showing the trigger as a PROBLEM.
I have checked in the logs and I see nothing related to the issue.
Does anyone have any ideas why this is happening and how I can resolve it.
The issue that I have is a few of them are showing as PROBLEM, I cannot find out why this is the case.
The OS of the VM is below.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy
I have added the following UserParamer to the zabbix_agentd.conf file
UserParameter=system.updates,apt list --upgradable 2>/dev/null | wc -l
After adding the line I restarted the agent.
I then ran the following test
zabbix_agentd -t system.updates
the result is below.
system.updates [t|1]
The test runs without any issues.
After the test I then added the item and trigger to the zabbix dashboard for the relevant host.
item below
Trigger below
I have done the same on all of my VM servers and a few of them are showing the trigger as a PROBLEM.
I have checked in the logs and I see nothing related to the issue.
Does anyone have any ideas why this is happening and how I can resolve it.
Comment