This template is for Zabbix version: 7.4
Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/os/macos?at=release/7.4
macOS by Zabbix agent
Overview
This is an official MacOS template. It requires Zabbix agent 7.4 or newer.
Notes on filesystem (FS) discovery:
- The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default.
- BTRFS allocates a default of 10% of the volume for its own needs.
- To mitigate potential disasters, FS usage triggers are based on the maximum available space.
- Utilization formula:
pused = 100 - 100 * (available / total - free + available)
- The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume.
Requirements
Zabbix version: 7.4 and higher.
Tested versions
This template has been tested on:
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
Install Zabbix agent on macOS according to Zabbix documentation.
Macros used
Name |
Description |
Default |
{$AGENT.TIMEOUT} |
Timeout after which the agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (in passive mode). |
3m |
{$VFS.FS.FSNAME.NOT_MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
^(/dev|/sys|/run|/proc|.+/shm$) |
{$VFS.FS.FSNAME.MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
.+ |
{$VFS.FS.FSTYPE.MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
Macro too long. Please see the template. |
{$VFS.FS.FSTYPE.NOT_MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
^\s$ |
{$VFS.FS.INODE.PFREE.MIN.CRIT} |
The critical threshold of the filesystem metadata utilization. |
10 |
{$VFS.FS.INODE.PFREE.MIN.WARN} |
The warning threshold of the filesystem metadata utilization. |
20 |
{$VFS.FS.PUSED.MAX.CRIT} |
The critical threshold of the filesystem utilization. |
90 |
{$VFS.FS.PUSED.MAX.WARN} |
The warning threshold of the filesystem utilization. |
80 |
Items
Name |
Description |
Type |
Key and additional info |
Maximum number of opened files |
May be increased by using the sysctl utility or modifying the file /etc/sysctl.conf . |
Zabbix agent |
kernel.maxfiles |
Maximum number of processes |
May be increased by using the sysctl utility or modifying the file /etc/sysctl.conf . |
Zabbix agent |
kernel.maxproc |
Incoming network traffic on en0 |
|
Zabbix agent |
net.if.in[en0] Preprocessing - Change per second
Custom multiplier: 8
|
Outgoing network traffic on en0 |
|
Zabbix agent |
net.if.out[en0] Preprocessing - Change per second
Custom multiplier: 8
|
Host boot time |
|
Zabbix agent |
system.boottime |
Processor load (1 min average per core) |
Calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg1] |
Processor load (5 min average per core) |
Calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg5] |
Processor load (15 min average per core) |
Calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg15] |
Host name |
The host name of the system. |
Zabbix agent |
system.hostname Preprocessing |
Host local time |
The local system time of the host. |
Zabbix agent |
system.localtime |
System information |
Information as normally returned by uname -a . |
Zabbix agent |
system.uname Preprocessing |
System uptime |
The system uptime expressed in the following format: "N days, hh:mm:ss". |
Zabbix agent |
system.uptime |
Number of logged in users |
The number of users who are currently logged in. |
Zabbix agent |
system.users.num |
Checksum of /etc/passwd |
|
Zabbix agent |
vfs.file.cksum[/etc/passwd,sha256] Preprocessing |
Available memory |
Defined as free + cached + buffers. |
Zabbix agent |
vm.memory.size[available] |
Total memory |
Total memory expressed in bytes. |
Zabbix agent |
vm.memory.size[total] |
Version of Zabbix agent running |
|
Zabbix agent |
agent.version Preprocessing |
Host name of Zabbix agent running |
|
Zabbix agent |
agent.hostname Preprocessing |
Zabbix agent ping |
The agent always returns "1" for this item. May be used in combination with nodata() for the availability check. |
Zabbix agent |
agent.ping |
Zabbix agent availability |
Used for monitoring the availability status of the agent. |
Zabbix internal |
zabbix[host,agent,available] |
Get filesystems |
The vfs.fs.get key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items. |
Zabbix agent |
vfs.fs.get |
Triggers
Name |
Description |
Expression |
Severity |
Dependencies and additional info |
macOS: Configured max number of opened files is too low |
|
last(/macOS by Zabbix agent/kernel.maxfiles)<1024 |
Info |
|
macOS: Configured max number of processes is too low |
|
last(/macOS by Zabbix agent/kernel.maxproc)<256 |
Info |
|
macOS: Processor load is too high |
|
avg(/macOS by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5 |
Warning |
|
macOS: Hostname was changed |
|
last(/macOS by Zabbix agent/system.hostname,#1)<>last(/macOS by Zabbix agent/system.hostname,#2) |
Info |
|
macOS: Host information was changed |
|
last(/macOS by Zabbix agent/system.uname,#1)<>last(/macOS by Zabbix agent/system.uname,#2) |
Info |
|
macOS: Server has just been restarted |
|
change(/macOS by Zabbix agent/system.uptime)<0 |
Info |
|
macOS: /etc/passwd has been changed |
|
last(/macOS by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/macOS by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2) |
Warning |
|
macOS: Lack of available memory on server |
|
last(/macOS by Zabbix agent/vm.memory.size[available])<20M |
Average |
|
macOS: Zabbix agent is not available |
For passive checks only; the availability of the agent(s) and a host is used with {$AGENT.TIMEOUT} as the time threshold. |
max(/macOS by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0 |
Average |
Manual close: Yes |
LLD rule Mounted filesystem discovery
Name |
Description |
Type |
Key and additional info |
Mounted filesystem discovery |
The discovery of mounted filesystems with different types. Note that the option to exclude dmg software images from discovery is available only with Zabbix agents 6.4 and higher. |
Dependent item |
vfs.fs.dependent.discovery Preprocessing |
Item prototypes for Mounted filesystem discovery
Name |
Description |
Type |
Key and additional info |
FS [{#FSNAME}]: Get data |
Intermediate data of {#FSNAME} filesystem. |
Dependent item |
vfs.fs.dependent[{#FSNAME},data] Preprocessing |
FS [{#FSNAME}]: Inodes: Free, in % |
Free metadata space expressed in %. |
Dependent item |
vfs.fs.dependent.inode[{#FSNAME},pfree] Preprocessing |
FS [{#FSNAME}]: Space: Available |
Available storage space expressed in bytes. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},free] Preprocessing |
FS [{#FSNAME}]: Space: Available, in % |
Deprecated metric. Space availability expressed as a percentage, calculated using the current and maximum available spaces. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},pfree] Preprocessing |
FS [{#FSNAME}]: Space: Used, in % |
Calculated as the percentage of currently used space compared to the maximum available space. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},pused] Preprocessing |
FS [{#FSNAME}]: Space: Total |
Total space expressed in bytes. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},total] Preprocessing |
FS [{#FSNAME}]: Space: Used |
Used storage expressed in bytes. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},used] Preprocessing |
Trigger prototypes for Mounted filesystem discovery
Name |
Description |
Expression |
Severity |
Dependencies and additional info |
macOS: FS [{#FSNAME}]: Running out of free inodes |
Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space. |
min(/macOS by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"} |
Average |
|
macOS: FS [{#FSNAME}]: Running out of free inodes |
Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space. |
min(/macOS by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"} |
Warning |
Depends on:
- macOS: FS [{#FSNAME}]: Running out of free inodes
|
macOS: FS [{#FSNAME}]: Space is critically low |
The volume's space usage exceeds the {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}% limit. The trigger expression is based on the current used and maximum available spaces. Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. |
min(/macOS by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} |
Average |
Manual close: Yes |
macOS: FS [{#FSNAME}]: Space is low |
The volume's space usage exceeds the {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}% limit. The trigger expression is based on the current used and maximum available spaces. Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. |
min(/macOS by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"} |
Warning |
Manual close: Yes Depends on:
- macOS: FS [{#FSNAME}]: Space is critically low
|
Feedback
Please report any issues with the template at https://support.zabbix.com
You can also provide feedback, discuss the template, or ask for help at ZABBIX forums
This template is for Zabbix version: 7.2
Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/os/macos?at=release/7.2
macOS by Zabbix agent
Overview
This is an official MacOS template. It requires Zabbix agent 7.2 or newer.
Notes on filesystem (FS) discovery:
- The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default.
- BTRFS allocates a default of 10% of the volume for its own needs.
- To mitigate potential disasters, FS usage triggers are based on the maximum available space.
- Utilization formula:
pused = 100 - 100 * (available / total - free + available)
- The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume.
Requirements
Zabbix version: 7.2 and higher.
Tested versions
This template has been tested on:
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
Install Zabbix agent on macOS according to Zabbix documentation.
Macros used
Name |
Description |
Default |
{$AGENT.TIMEOUT} |
Timeout after which the agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (in passive mode). |
3m |
{$VFS.FS.FSNAME.NOT_MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
^(/dev|/sys|/run|/proc|.+/shm$) |
{$VFS.FS.FSNAME.MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
.+ |
{$VFS.FS.FSTYPE.MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
Macro too long. Please see the template. |
{$VFS.FS.FSTYPE.NOT_MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
^\s$ |
{$VFS.FS.INODE.PFREE.MIN.CRIT} |
The critical threshold of the filesystem metadata utilization. |
10 |
{$VFS.FS.INODE.PFREE.MIN.WARN} |
The warning threshold of the filesystem metadata utilization. |
20 |
{$VFS.FS.PUSED.MAX.CRIT} |
The critical threshold of the filesystem utilization. |
90 |
{$VFS.FS.PUSED.MAX.WARN} |
The warning threshold of the filesystem utilization. |
80 |
Items
Name |
Description |
Type |
Key and additional info |
Maximum number of opened files |
May be increased by using the sysctl utility or modifying the file /etc/sysctl.conf . |
Zabbix agent |
kernel.maxfiles |
Maximum number of processes |
May be increased by using the sysctl utility or modifying the file /etc/sysctl.conf . |
Zabbix agent |
kernel.maxproc |
Incoming network traffic on en0 |
|
Zabbix agent |
net.if.in[en0] Preprocessing - Change per second
Custom multiplier: 8
|
Outgoing network traffic on en0 |
|
Zabbix agent |
net.if.out[en0] Preprocessing - Change per second
Custom multiplier: 8
|
Host boot time |
|
Zabbix agent |
system.boottime |
Processor load (1 min average per core) |
Calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg1] |
Processor load (5 min average per core) |
Calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg5] |
Processor load (15 min average per core) |
Calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg15] |
Host name |
The host name of the system. |
Zabbix agent |
system.hostname Preprocessing |
Host local time |
The local system time of the host. |
Zabbix agent |
system.localtime |
System information |
Information as normally returned by uname -a . |
Zabbix agent |
system.uname Preprocessing |
System uptime |
The system uptime expressed in the following format: "N days, hh:mm:ss". |
Zabbix agent |
system.uptime |
Number of logged in users |
The number of users who are currently logged in. |
Zabbix agent |
system.users.num |
Checksum of /etc/passwd |
|
Zabbix agent |
vfs.file.cksum[/etc/passwd,sha256] Preprocessing |
Available memory |
Defined as free + cached + buffers. |
Zabbix agent |
vm.memory.size[available] |
Total memory |
Total memory expressed in bytes. |
Zabbix agent |
vm.memory.size[total] |
Version of Zabbix agent running |
|
Zabbix agent |
agent.version Preprocessing |
Host name of Zabbix agent running |
|
Zabbix agent |
agent.hostname Preprocessing |
Zabbix agent ping |
The agent always returns "1" for this item. May be used in combination with nodata() for the availability check. |
Zabbix agent |
agent.ping |
Zabbix agent availability |
Used for monitoring the availability status of the agent. |
Zabbix internal |
zabbix[host,agent,available] |
Get filesystems |
The vfs.fs.get key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items. |
Zabbix agent |
vfs.fs.get |
Triggers
Name |
Description |
Expression |
Severity |
Dependencies and additional info |
macOS: Configured max number of opened files is too low |
|
last(/macOS by Zabbix agent/kernel.maxfiles)<1024 |
Info |
|
macOS: Configured max number of processes is too low |
|
last(/macOS by Zabbix agent/kernel.maxproc)<256 |
Info |
|
macOS: Processor load is too high |
|
avg(/macOS by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5 |
Warning |
|
macOS: Hostname was changed |
|
last(/macOS by Zabbix agent/system.hostname,#1)<>last(/macOS by Zabbix agent/system.hostname,#2) |
Info |
|
macOS: Host information was changed |
|
last(/macOS by Zabbix agent/system.uname,#1)<>last(/macOS by Zabbix agent/system.uname,#2) |
Info |
|
macOS: Server has just been restarted |
|
change(/macOS by Zabbix agent/system.uptime)<0 |
Info |
|
macOS: /etc/passwd has been changed |
|
last(/macOS by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/macOS by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2) |
Warning |
|
macOS: Lack of available memory on server |
|
last(/macOS by Zabbix agent/vm.memory.size[available])<20M |
Average |
|
macOS: Zabbix agent is not available |
For passive checks only; the availability of the agent(s) and a host is used with {$AGENT.TIMEOUT} as the time threshold. |
max(/macOS by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0 |
Average |
Manual close: Yes |
LLD rule Mounted filesystem discovery
Name |
Description |
Type |
Key and additional info |
Mounted filesystem discovery |
The discovery of mounted filesystems with different types. Note that the option to exclude dmg software images from discovery is available only with Zabbix agents 6.4 and higher. |
Dependent item |
vfs.fs.dependent.discovery Preprocessing |
Item prototypes for Mounted filesystem discovery
Name |
Description |
Type |
Key and additional info |
FS [{#FSNAME}]: Get data |
Intermediate data of {#FSNAME} filesystem. |
Dependent item |
vfs.fs.dependent[{#FSNAME},data] Preprocessing |
FS [{#FSNAME}]: Inodes: Free, in % |
Free metadata space expressed in %. |
Dependent item |
vfs.fs.dependent.inode[{#FSNAME},pfree] Preprocessing |
FS [{#FSNAME}]: Space: Available |
Available storage space expressed in bytes. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},free] Preprocessing |
FS [{#FSNAME}]: Space: Available, in % |
Deprecated metric. Space availability expressed as a percentage, calculated using the current and maximum available spaces. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},pfree] Preprocessing |
FS [{#FSNAME}]: Space: Used, in % |
Calculated as the percentage of currently used space compared to the maximum available space. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},pused] Preprocessing |
FS [{#FSNAME}]: Space: Total |
Total space expressed in bytes. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},total] Preprocessing |
FS [{#FSNAME}]: Space: Used |
Used storage expressed in bytes. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},used] Preprocessing |
Trigger prototypes for Mounted filesystem discovery
Name |
Description |
Expression |
Severity |
Dependencies and additional info |
macOS: FS [{#FSNAME}]: Running out of free inodes |
Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space. |
min(/macOS by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"} |
Average |
|
macOS: FS [{#FSNAME}]: Running out of free inodes |
Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space. |
min(/macOS by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"} |
Warning |
Depends on:
- macOS: FS [{#FSNAME}]: Running out of free inodes
|
macOS: FS [{#FSNAME}]: Space is critically low |
The volume's space usage exceeds the {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}% limit. The trigger expression is based on the current used and maximum available spaces. Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. |
min(/macOS by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} |
Average |
Manual close: Yes |
macOS: FS [{#FSNAME}]: Space is low |
The volume's space usage exceeds the {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}% limit. The trigger expression is based on the current used and maximum available spaces. Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. |
min(/macOS by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"} |
Warning |
Manual close: Yes Depends on:
- macOS: FS [{#FSNAME}]: Space is critically low
|
Feedback
Please report any issues with the template at https://support.zabbix.com
You can also provide feedback, discuss the template, or ask for help at ZABBIX forums
This template is for Zabbix version: 7.0
Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/os/macos?at=release/7.0
macOS by Zabbix agent
Overview
This is an official MacOS template. It requires Zabbix agent 7.0 or newer.
Notes on filesystem (FS) discovery:
- The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default.
- BTRFS allocates a default of 10% of the volume for its own needs.
- To mitigate potential disasters, FS usage triggers are based on the maximum available space.
- Utilization formula:
pused = 100 - 100 * (available / total - free + available)
- The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume.
Requirements
Zabbix version: 7.0 and higher.
Tested versions
This template has been tested on:
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
Install Zabbix agent on macOS according to Zabbix documentation.
Macros used
Name |
Description |
Default |
{$AGENT.TIMEOUT} |
Timeout after which the agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (in passive mode). |
3m |
{$VFS.FS.FSNAME.NOT_MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
^(/dev|/sys|/run|/proc|.+/shm$) |
{$VFS.FS.FSNAME.MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
.+ |
{$VFS.FS.FSTYPE.MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
Macro too long. Please see the template. |
{$VFS.FS.FSTYPE.NOT_MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
^\s$ |
{$VFS.FS.INODE.PFREE.MIN.CRIT} |
The critical threshold of the filesystem metadata utilization. |
10 |
{$VFS.FS.INODE.PFREE.MIN.WARN} |
The warning threshold of the filesystem metadata utilization. |
20 |
{$VFS.FS.PUSED.MAX.CRIT} |
The critical threshold of the filesystem utilization. |
90 |
{$VFS.FS.PUSED.MAX.WARN} |
The warning threshold of the filesystem utilization. |
80 |
Items
Name |
Description |
Type |
Key and additional info |
Maximum number of opened files |
May be increased by using the sysctl utility or modifying the file /etc/sysctl.conf . |
Zabbix agent |
kernel.maxfiles |
Maximum number of processes |
May be increased by using the sysctl utility or modifying the file /etc/sysctl.conf . |
Zabbix agent |
kernel.maxproc |
Incoming network traffic on en0 |
|
Zabbix agent |
net.if.in[en0] Preprocessing - Change per second
Custom multiplier: 8
|
Outgoing network traffic on en0 |
|
Zabbix agent |
net.if.out[en0] Preprocessing - Change per second
Custom multiplier: 8
|
Host boot time |
|
Zabbix agent |
system.boottime |
Processor load (1 min average per core) |
Calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg1] |
Processor load (5 min average per core) |
Calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg5] |
Processor load (15 min average per core) |
Calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg15] |
Host name |
The host name of the system. |
Zabbix agent |
system.hostname Preprocessing |
Host local time |
The local system time of the host. |
Zabbix agent |
system.localtime |
System information |
Information as normally returned by uname -a . |
Zabbix agent |
system.uname Preprocessing |
System uptime |
The system uptime expressed in the following format: "N days, hh:mm:ss". |
Zabbix agent |
system.uptime |
Number of logged in users |
The number of users who are currently logged in. |
Zabbix agent |
system.users.num |
Checksum of /etc/passwd |
|
Zabbix agent |
vfs.file.cksum[/etc/passwd,sha256] Preprocessing |
Available memory |
Defined as free + cached + buffers. |
Zabbix agent |
vm.memory.size[available] |
Total memory |
Total memory expressed in bytes. |
Zabbix agent |
vm.memory.size[total] |
Version of Zabbix agent running |
|
Zabbix agent |
agent.version Preprocessing |
Host name of Zabbix agent running |
|
Zabbix agent |
agent.hostname Preprocessing |
Zabbix agent ping |
The agent always returns "1" for this item. May be used in combination with nodata() for the availability check. |
Zabbix agent |
agent.ping |
Zabbix agent availability |
Used for monitoring the availability status of the agent. |
Zabbix internal |
zabbix[host,agent,available] |
Get filesystems |
The vfs.fs.get key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items. |
Zabbix agent |
vfs.fs.get |
Triggers
Name |
Description |
Expression |
Severity |
Dependencies and additional info |
macOS: Configured max number of opened files is too low |
|
last(/macOS by Zabbix agent/kernel.maxfiles)<1024 |
Info |
|
macOS: Configured max number of processes is too low |
|
last(/macOS by Zabbix agent/kernel.maxproc)<256 |
Info |
|
macOS: Processor load is too high |
|
avg(/macOS by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5 |
Warning |
|
macOS: Hostname was changed |
|
last(/macOS by Zabbix agent/system.hostname,#1)<>last(/macOS by Zabbix agent/system.hostname,#2) |
Info |
|
macOS: Host information was changed |
|
last(/macOS by Zabbix agent/system.uname,#1)<>last(/macOS by Zabbix agent/system.uname,#2) |
Info |
|
macOS: Server has just been restarted |
|
change(/macOS by Zabbix agent/system.uptime)<0 |
Info |
|
macOS: /etc/passwd has been changed |
|
last(/macOS by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/macOS by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2) |
Warning |
|
macOS: Lack of available memory on server |
|
last(/macOS by Zabbix agent/vm.memory.size[available])<20M |
Average |
|
macOS: Zabbix agent is not available |
For passive checks only; the availability of the agent(s) and a host is used with {$AGENT.TIMEOUT} as the time threshold. |
max(/macOS by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0 |
Average |
Manual close: Yes |
LLD rule Mounted filesystem discovery
Name |
Description |
Type |
Key and additional info |
Mounted filesystem discovery |
The discovery of mounted filesystems with different types. Note that the option to exclude dmg software images from discovery is available only with Zabbix agents 6.4 and higher. |
Dependent item |
vfs.fs.dependent.discovery Preprocessing |
Item prototypes for Mounted filesystem discovery
Name |
Description |
Type |
Key and additional info |
FS [{#FSNAME}]: Get data |
Intermediate data of {#FSNAME} filesystem. |
Dependent item |
vfs.fs.dependent[{#FSNAME},data] Preprocessing |
FS [{#FSNAME}]: Inodes: Free, in % |
Free metadata space expressed in %. |
Dependent item |
vfs.fs.dependent.inode[{#FSNAME},pfree] Preprocessing |
FS [{#FSNAME}]: Space: Available |
Available storage space expressed in bytes. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},free] Preprocessing |
FS [{#FSNAME}]: Space: Available, in % |
Deprecated metric. Space availability expressed as a percentage, calculated using the current and maximum available spaces. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},pfree] Preprocessing |
FS [{#FSNAME}]: Space: Used, in % |
Calculated as the percentage of currently used space compared to the maximum available space. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},pused] Preprocessing |
FS [{#FSNAME}]: Space: Total |
Total space expressed in bytes. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},total] Preprocessing |
FS [{#FSNAME}]: Space: Used |
Used storage expressed in bytes. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},used] Preprocessing |
Trigger prototypes for Mounted filesystem discovery
Name |
Description |
Expression |
Severity |
Dependencies and additional info |
macOS: FS [{#FSNAME}]: Running out of free inodes |
Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space. |
min(/macOS by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"} |
Average |
|
macOS: FS [{#FSNAME}]: Running out of free inodes |
Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space. |
min(/macOS by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"} |
Warning |
Depends on:
- macOS: FS [{#FSNAME}]: Running out of free inodes
|
macOS: FS [{#FSNAME}]: Space is critically low |
The volume's space usage exceeds the {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}% limit. The trigger expression is based on the current used and maximum available spaces. Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. |
min(/macOS by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} |
Average |
Manual close: Yes |
macOS: FS [{#FSNAME}]: Space is low |
The volume's space usage exceeds the {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}% limit. The trigger expression is based on the current used and maximum available spaces. Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. |
min(/macOS by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"} |
Warning |
Manual close: Yes Depends on:
- macOS: FS [{#FSNAME}]: Space is critically low
|
Feedback
Please report any issues with the template at https://support.zabbix.com
You can also provide feedback, discuss the template, or ask for help at ZABBIX forums
This template is for Zabbix version: 6.4
Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/os/macos?at=release/6.4
macOS by Zabbix agent
Overview
This is an official MacOS template. It requires Zabbix agent 6.4 or newer.
Notes on filesystem (FS) discovery:
- The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default.
- BTRFS allocates a default of 10% of the volume for its own needs.
- To mitigate potential disasters, FS usage triggers are based on the maximum available space.
- Utilization formula:
pused = 100 - 100 * (available / total - free + available)
- The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume.
Requirements
Zabbix version: 6.4 and higher.
Tested versions
This template has been tested on:
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
Install Zabbix agent on macOS according to Zabbix documentation.
Macros used
Name |
Description |
Default |
{$AGENT.TIMEOUT} |
Timeout after which the agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (in passive mode). |
3m |
{$VFS.FS.FSNAME.NOT_MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
^(/dev|/sys|/run|/proc|.+/shm$) |
{$VFS.FS.FSNAME.MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
.+ |
{$VFS.FS.FSTYPE.MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
Macro too long. Please see the template. |
{$VFS.FS.FSTYPE.NOT_MATCHES} |
Used for filesystem discovery. Can be overridden on the host or linked template level. |
^\s$ |
{$VFS.FS.INODE.PFREE.MIN.CRIT} |
The critical threshold of the filesystem metadata utilization. |
10 |
{$VFS.FS.INODE.PFREE.MIN.WARN} |
The warning threshold of the filesystem metadata utilization. |
20 |
{$VFS.FS.PUSED.MAX.CRIT} |
The critical threshold of the filesystem utilization. |
90 |
{$VFS.FS.PUSED.MAX.WARN} |
The warning threshold of the filesystem utilization. |
80 |
Items
Name |
Description |
Type |
Key and additional info |
macOS: Maximum number of opened files |
May be increased by using the sysctl utility or modifying the file /etc/sysctl.conf . |
Zabbix agent |
kernel.maxfiles |
macOS: Maximum number of processes |
May be increased by using the sysctl utility or modifying the file /etc/sysctl.conf . |
Zabbix agent |
kernel.maxproc |
macOS: Incoming network traffic on en0 |
|
Zabbix agent |
net.if.in[en0] Preprocessing - Change per second
Custom multiplier: 8
|
macOS: Outgoing network traffic on en0 |
|
Zabbix agent |
net.if.out[en0] Preprocessing - Change per second
Custom multiplier: 8
|
macOS: Host boot time |
|
Zabbix agent |
system.boottime |
macOS: Processor load (1 min average per core) |
Calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg1] |
macOS: Processor load (5 min average per core) |
Calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg5] |
macOS: Processor load (15 min average per core) |
Calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg15] |
macOS: Host name |
The host name of the system. |
Zabbix agent |
system.hostname Preprocessing |
macOS: Host local time |
The local system time of the host. |
Zabbix agent |
system.localtime |
macOS: System information |
Information as normally returned by uname -a . |
Zabbix agent |
system.uname Preprocessing |
macOS: System uptime |
The system uptime expressed in the following format: "N days, hh:mm:ss". |
Zabbix agent |
system.uptime |
macOS: Number of logged in users |
The number of users who are currently logged in. |
Zabbix agent |
system.users.num |
macOS: Checksum of /etc/passwd |
|
Zabbix agent |
vfs.file.cksum[/etc/passwd,sha256] Preprocessing |
macOS: Available memory |
Defined as free + cached + buffers. |
Zabbix agent |
vm.memory.size[available] |
macOS: Total memory |
Total memory expressed in bytes. |
Zabbix agent |
vm.memory.size[total] |
macOS: Version of Zabbix agent running |
|
Zabbix agent |
agent.version Preprocessing |
macOS: Host name of Zabbix agent running |
|
Zabbix agent |
agent.hostname Preprocessing |
macOS: Zabbix agent ping |
The agent always returns "1" for this item. May be used in combination with nodata() for the availability check. |
Zabbix agent |
agent.ping |
macOS: Zabbix agent availability |
Used for monitoring the availability status of the agent. |
Zabbix internal |
zabbix[host,agent,available] |
macOS: Get filesystems |
The vfs.fs.get key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items. |
Zabbix agent |
vfs.fs.get |
Triggers
Name |
Description |
Expression |
Severity |
Dependencies and additional info |
macOS: Configured max number of opened files is too low |
|
last(/macOS by Zabbix agent/kernel.maxfiles)<1024 |
Info |
|
macOS: Configured max number of processes is too low |
|
last(/macOS by Zabbix agent/kernel.maxproc)<256 |
Info |
|
macOS: Processor load is too high |
|
avg(/macOS by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5 |
Warning |
|
macOS: Hostname was changed |
|
last(/macOS by Zabbix agent/system.hostname,#1)<>last(/macOS by Zabbix agent/system.hostname,#2) |
Info |
|
macOS: Host information was changed |
|
last(/macOS by Zabbix agent/system.uname,#1)<>last(/macOS by Zabbix agent/system.uname,#2) |
Info |
|
macOS: Server has just been restarted |
|
change(/macOS by Zabbix agent/system.uptime)<0 |
Info |
|
macOS: /etc/passwd has been changed |
|
last(/macOS by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/macOS by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2) |
Warning |
|
macOS: Lack of available memory on server |
|
last(/macOS by Zabbix agent/vm.memory.size[available])<20M |
Average |
|
macOS: Zabbix agent is not available |
For passive checks only; the availability of the agent(s) and a host is used with {$AGENT.TIMEOUT} as the time threshold. |
max(/macOS by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0 |
Average |
Manual close: Yes |
LLD rule Mounted filesystem discovery
Name |
Description |
Type |
Key and additional info |
Mounted filesystem discovery |
The discovery of mounted filesystems with different types. Note that the option to exclude dmg software images from discovery is available only with Zabbix agents 6.4 and higher. |
Dependent item |
vfs.fs.dependent.discovery Preprocessing |
Item prototypes for Mounted filesystem discovery
Name |
Description |
Type |
Key and additional info |
FS [{#FSNAME}]: Get data |
Intermediate data of {#FSNAME} filesystem. |
Dependent item |
vfs.fs.dependent[{#FSNAME},data] Preprocessing |
FS [{#FSNAME}]: Inodes: Free, in % |
Free metadata space expressed in %. |
Dependent item |
vfs.fs.dependent.inode[{#FSNAME},pfree] Preprocessing |
FS [{#FSNAME}]: Space: Available |
Available storage space expressed in bytes. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},free] Preprocessing |
FS [{#FSNAME}]: Space: Available, in % |
Deprecated metric. Space availability expressed as a percentage, calculated using the current and maximum available spaces. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},pfree] Preprocessing |
FS [{#FSNAME}]: Space: Used, in % |
Calculated as the percentage of currently used space compared to the maximum available space. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},pused] Preprocessing |
FS [{#FSNAME}]: Space: Total |
Total space expressed in bytes. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},total] Preprocessing |
FS [{#FSNAME}]: Space: Used |
Used storage expressed in bytes. |
Dependent item |
vfs.fs.dependent.size[{#FSNAME},used] Preprocessing |
Trigger prototypes for Mounted filesystem discovery
Name |
Description |
Expression |
Severity |
Dependencies and additional info |
FS [{#FSNAME}]: Running out of free inodes |
Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space. |
min(/macOS by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"} |
Average |
|
FS [{#FSNAME}]: Running out of free inodes |
Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space. |
min(/macOS by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"} |
Warning |
Depends on:
- FS [{#FSNAME}]: Running out of free inodes
|
FS [{#FSNAME}]: Space is critically low |
The volume's space usage exceeds the {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}% limit. The trigger expression is based on the current used and maximum available spaces. Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. |
min(/macOS by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} |
Average |
Manual close: Yes |
FS [{#FSNAME}]: Space is low |
The volume's space usage exceeds the {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}% limit. The trigger expression is based on the current used and maximum available spaces. Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type. |
min(/macOS by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"} |
Warning |
Manual close: Yes Depends on:
- FS [{#FSNAME}]: Space is critically low
|
Feedback
Please report any issues with the template at https://support.zabbix.com
You can also provide feedback, discuss the template, or ask for help at ZABBIX forums
This template is for Zabbix version: 6.2
Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/os/macos?at=release/6.2
macOS
Overview
For Zabbix version: 6.2 and higher.
It is an official macOS template. It requires Zabbix agent 4.0.0 or newer.
Setup
See Zabbix template operation for basic instructions.
Install Zabbix agent on macOS according to Zabbix documentation.
Zabbix configuration
No specific Zabbix configuration is required.
Macros used
Name |
Description |
Default |
{$AGENT.TIMEOUT} |
The timeout after which the agent is considered unavailable. It works only for the agents reachable from Zabbix server/proxy (in passive mode). |
3m |
Template links
There are no template links in this template.
Discovery rules
Name |
Description |
Type |
Key and additional info |
Mounted filesystem discovery |
Discovery of different types of file systems as defined in the global regular expression "File systems for discovery". |
ZABBIX_PASSIVE |
vfs.fs.discovery Filter: - {#FSTYPE} MATCHES_REGEX @File systems for discovery Overrides: Skip metadata collection for dynamic FS - {#FSTYPE} MATCHES_REGEX `^(btrfs |
Items collected
Group |
Name |
Description |
Type |
Key and additional info |
macOS |
Maximum number of opened files |
It could be increased by using sysctl utility or modifying the file /etc/sysctl.conf. |
ZABBIX_PASSIVE |
kernel.maxfiles |
macOS |
Maximum number of processes |
It could be increased by using sysctl utility or modifying the file /etc/sysctl.conf. |
ZABBIX_PASSIVE |
kernel.maxproc |
macOS |
Incoming network traffic on en0 |
- |
ZABBIX_PASSIVE |
net.if.in[en0] Preprocessing: - CHANGE_PER_SECOND - MULTIPLIER: 8 |
macOS |
Outgoing network traffic on en0 |
- |
ZABBIX_PASSIVE |
net.if.out[en0] Preprocessing: - CHANGE_PER_SECOND - MULTIPLIER: 8 |
macOS |
Host boot time |
- |
ZABBIX_PASSIVE |
system.boottime |
macOS |
Processor load (1 min average per core) |
The processor load is calculated as the system CPU load divided by the number of CPU cores. |
ZABBIX_PASSIVE |
system.cpu.load[percpu,avg1] |
macOS |
Processor load (5 min average per core) |
The processor load is calculated as the system CPU load divided by the number of CPU cores. |
ZABBIX_PASSIVE |
system.cpu.load[percpu,avg5] |
macOS |
Processor load (15 min average per core) |
The processor load is calculated as the system CPU load divided by the number of CPU cores. |
ZABBIX_PASSIVE |
system.cpu.load[percpu,avg15] |
macOS |
Host name |
A host name of the system. |
ZABBIX_PASSIVE |
system.hostname Preprocessing: - DISCARD_UNCHANGED_HEARTBEAT: 1d |
macOS |
Host local time |
- |
ZABBIX_PASSIVE |
system.localtime |
macOS |
System information |
The information as normally returned by the 'uname -a'. |
ZABBIX_PASSIVE |
system.uname Preprocessing: - DISCARD_UNCHANGED_HEARTBEAT: 1d |
macOS |
System uptime |
- |
ZABBIX_PASSIVE |
system.uptime |
macOS |
Number of logged in users |
The number of users who are currently logged in. |
ZABBIX_PASSIVE |
system.users.num |
macOS |
Checksum of /etc/passwd |
- |
ZABBIX_PASSIVE |
vfs.file.cksum[/etc/passwd,sha256] Preprocessing: - DISCARD_UNCHANGED_HEARTBEAT: 1h |
macOS |
Available memory |
The available memory is defined as free+cached+buffers memory. |
ZABBIX_PASSIVE |
vm.memory.size[available] |
macOS |
Total memory |
- |
ZABBIX_PASSIVE |
vm.memory.size[total] |
macOS |
Host name of Zabbix agent running |
- |
ZABBIX_PASSIVE |
agent.hostname Preprocessing: - DISCARD_UNCHANGED_HEARTBEAT: 1d |
macOS |
Zabbix agent ping |
The agent always returns 1 for this item. It could be used in combination with nodata() for the availability check. |
ZABBIX_PASSIVE |
agent.ping |
macOS |
{#FSNAME}: Free inodes (percentage) |
- |
ZABBIX_PASSIVE |
vfs.fs.inode[{#FSNAME},pfree] |
macOS |
{#FSNAME}: Free disk space |
- |
ZABBIX_PASSIVE |
vfs.fs.size[{#FSNAME},free] |
macOS |
{#FSNAME}: Free disk space (percentage) |
- |
ZABBIX_PASSIVE |
vfs.fs.size[{#FSNAME},pfree] |
macOS |
{#FSNAME}: Total disk space |
- |
ZABBIX_PASSIVE |
vfs.fs.size[{#FSNAME},total] |
macOS |
{#FSNAME}: Used disk space |
- |
ZABBIX_PASSIVE |
vfs.fs.size[{#FSNAME},used] |
Monitoring agent |
Version of Zabbix agent running |
- |
ZABBIX_PASSIVE |
agent.version Preprocessing: - DISCARD_UNCHANGED_HEARTBEAT: 1d |
Status |
Zabbix agent availability |
Monitoring the availability status of the agent. |
INTERNAL |
zabbix[host,agent,available] |
Triggers
Name |
Description |
Expression |
Severity |
Dependencies and additional info |
Configured max number of opened files is too low |
- |
last(/macOS/kernel.maxfiles)<1024 |
INFO |
|
Configured max number of processes is too low |
- |
last(/macOS/kernel.maxproc)<256 |
INFO |
|
Processor load is too high |
- |
avg(/macOS/system.cpu.load[percpu,avg1],5m)>5 |
WARNING |
|
Hostname was changed |
- |
last(/macOS/system.hostname,#1)<>last(/macOS/system.hostname,#2) |
INFO |
|
Host information was changed |
- |
last(/macOS/system.uname,#1)<>last(/macOS/system.uname,#2) |
INFO |
|
Server has just been restarted |
- |
change(/macOS/system.uptime)<0 |
INFO |
|
/etc/passwd has been changed |
- |
last(/macOS/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/macOS/vfs.file.cksum[/etc/passwd,sha256],#2) |
WARNING |
|
Lack of available memory on server |
- |
last(/macOS/vm.memory.size[available])<20M |
AVERAGE |
|
{#FSNAME}: Free inodes is less than 20% |
- |
last(/macOS/vfs.fs.inode[{#FSNAME},pfree])<20 |
WARNING |
|
{#FSNAME}: Free disk space is less than 20% |
- |
last(/macOS/vfs.fs.size[{#FSNAME},pfree])<20 |
WARNING |
|
Zabbix agent is not available |
For passive checks only the availability of the agents and a host is used with {$AGENT.TIMEOUT} as the time threshold. |
max(/macOS/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0 |
AVERAGE |
Manual close: YES |
Feedback
Please report any issues with the template at https://support.zabbix.com.
You can also provide feedback, discuss the template, or ask for help at ZABBIX forums.
This template is for Zabbix version: 6.0
Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/os/macos?at=release/6.0
macOS by Zabbix agent
Overview
macOS is the operating system that powers every Mac
Requirements
Zabbix version: 6.0 and higher.
Tested versions
This template has been tested on:
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
Install Zabbix agent on macOS according to Zabbix documentation.
Macros used
Name |
Description |
Default |
{$AGENT.TIMEOUT} |
The timeout after which the agent is considered unavailable. It works only for the agents reachable from Zabbix server/proxy (in passive mode). |
3m |
Items
Name |
Description |
Type |
Key and additional info |
macOS: Maximum number of opened files |
It could be increased by using sysctl utility or modifying the file /etc/sysctl.conf. |
Zabbix agent |
kernel.maxfiles |
macOS: Maximum number of processes |
It could be increased by using sysctl utility or modifying the file /etc/sysctl.conf. |
Zabbix agent |
kernel.maxproc |
macOS: Incoming network traffic on en0 |
|
Zabbix agent |
net.if.in[en0] Preprocessing - Change per second
Custom multiplier: 8
|
macOS: Outgoing network traffic on en0 |
|
Zabbix agent |
net.if.out[en0] Preprocessing - Change per second
Custom multiplier: 8
|
macOS: Host boot time |
|
Zabbix agent |
system.boottime |
macOS: Processor load (1 min average per core) |
The processor load is calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg1] |
macOS: Processor load (5 min average per core) |
The processor load is calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg5] |
macOS: Processor load (15 min average per core) |
The processor load is calculated as the system CPU load divided by the number of CPU cores. |
Zabbix agent |
system.cpu.load[percpu,avg15] |
macOS: Host name |
A host name of the system. |
Zabbix agent |
system.hostname Preprocessing |
macOS: Host local time |
|
Zabbix agent |
system.localtime |
macOS: System information |
The information as normally returned by the 'uname -a'. |
Zabbix agent |
system.uname Preprocessing |
macOS: System uptime |
|
Zabbix agent |
system.uptime |
macOS: Number of logged in users |
The number of users who are currently logged in. |
Zabbix agent |
system.users.num |
macOS: Checksum of /etc/passwd |
|
Zabbix agent |
vfs.file.cksum[/etc/passwd,sha256] Preprocessing |
macOS: Available memory |
The available memory is defined as free+cached+buffers memory. |
Zabbix agent |
vm.memory.size[available] |
macOS: Total memory |
|
Zabbix agent |
vm.memory.size[total] |
macOS: Version of Zabbix agent running |
|
Zabbix agent |
agent.version Preprocessing |
macOS: Host name of Zabbix agent running |
|
Zabbix agent |
agent.hostname Preprocessing |
macOS: Zabbix agent ping |
The agent always returns 1 for this item. It could be used in combination with nodata() for the availability check. |
Zabbix agent |
agent.ping |
macOS: Zabbix agent availability |
Monitoring the availability status of the agent. |
Zabbix internal |
zabbix[host,agent,available] |
Triggers
Name |
Description |
Expression |
Severity |
Dependencies and additional info |
macOS: Configured max number of opened files is too low |
|
last(/macOS by Zabbix agent/kernel.maxfiles)<1024 |
Info |
|
macOS: Configured max number of processes is too low |
|
last(/macOS by Zabbix agent/kernel.maxproc)<256 |
Info |
|
macOS: Processor load is too high |
|
avg(/macOS by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5 |
Warning |
|
macOS: Hostname was changed |
|
last(/macOS by Zabbix agent/system.hostname,#1)<>last(/macOS by Zabbix agent/system.hostname,#2) |
Info |
|
macOS: Host information was changed |
|
last(/macOS by Zabbix agent/system.uname,#1)<>last(/macOS by Zabbix agent/system.uname,#2) |
Info |
|
macOS: Server has just been restarted |
|
change(/macOS by Zabbix agent/system.uptime)<0 |
Info |
|
macOS: /etc/passwd has been changed |
|
last(/macOS by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/macOS by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2) |
Warning |
|
macOS: Lack of available memory on server |
|
last(/macOS by Zabbix agent/vm.memory.size[available])<20M |
Average |
|
macOS: Zabbix agent is not available |
For passive checks only the availability of the agents and a host is used with {$AGENT.TIMEOUT} as the time threshold. |
max(/macOS by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0 |
Average |
Manual close: Yes |
LLD rule Mounted filesystem discovery
Name |
Description |
Type |
Key and additional info |
Mounted filesystem discovery |
Discovery of different types of file systems as defined in the global regular expression "File systems for discovery". |
Zabbix agent |
vfs.fs.discovery |
Item prototypes for Mounted filesystem discovery
Name |
Description |
Type |
Key and additional info |
{#FSNAME}: Free inodes (percentage) |
|
Zabbix agent |
vfs.fs.inode[{#FSNAME},pfree] |
{#FSNAME}: Free disk space |
|
Zabbix agent |
vfs.fs.size[{#FSNAME},free] |
{#FSNAME}: Free disk space (percentage) |
|
Zabbix agent |
vfs.fs.size[{#FSNAME},pfree] |
{#FSNAME}: Total disk space |
|
Zabbix agent |
vfs.fs.size[{#FSNAME},total] |
{#FSNAME}: Used disk space |
|
Zabbix agent |
vfs.fs.size[{#FSNAME},used] |
Trigger prototypes for Mounted filesystem discovery
Name |
Description |
Expression |
Severity |
Dependencies and additional info |
{#FSNAME}: Free inodes is less than 20% |
|
last(/macOS by Zabbix agent/vfs.fs.inode[{#FSNAME},pfree])<20 |
Warning |
|
{#FSNAME}: Free disk space is less than 20% |
|
last(/macOS by Zabbix agent/vfs.fs.size[{#FSNAME},pfree])<20 |
Warning |
|
Feedback
Please report any issues with the template at https://support.zabbix.com
You can also provide feedback, discuss the template, or ask for help at ZABBIX forums
Link |
Source |
Compatibility |
Type, Technology |
Created Updated |
Rating |
MacOS Content Cache
With the release of macOS 10.13 High Sierra, Apple have made a big change to their App and iCloud content caching services. This function used to be part of their add-on macOS Server package, but with 10.13 they´ve moved the feature into the regular macOS operating system. This means that any Macintosh
...
template_macos_content_caching
|
See all Zabbix community templates