Перейти к основному содержимому

macOS by Zabbix agent

Macros used

NameValue
{$AGENT.TIMEOUT}3m

Items collected

NameDescriptionTypeIntervalKey and additional info
macOS: Host name of Zabbix agent running

-

-

1hagent.hostname
macOS: Zabbix agent pingThe agent always returns 1 for this item. It could be used in combination with nodata() for the availability check.

-

-

agent.ping
macOS: Version of Zabbix agent running

-

-

1hagent.version
macOS: Maximum number of opened filesIt could be increased by using sysctl utility or modifying the file /etc/sysctl.conf.

-

1hkernel.maxfiles
macOS: Maximum number of processesIt could be increased by using sysctl utility or modifying the file /etc/sysctl.conf.

-

1hkernel.maxproc
macOS: Incoming network traffic on en0

-

-

-

net.if.in[en0]
macOS: Outgoing network traffic on en0

-

-

-

net.if.out[en0]
macOS: Host boot time

-

-

10msystem.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.

-

-

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.

-

-

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.

-

-

system.cpu.load[percpu,avg15]
macOS: Host nameA host name of the system.

-

1hsystem.hostname
macOS: Host local time

-

-

-

system.localtime
macOS: System informationThe information as normally returned by the 'uname -a'.

-

1hsystem.uname
macOS: System uptime

-

-

10msystem.uptime
macOS: Number of logged in usersThe number of users who are currently logged in.

-

-

system.users.num
macOS: Checksum of /etc/passwd

-

-

15mvfs.file.cksum[/etc/passwd,sha256]
macOS: Get filesystemsThe vfs.fs.get key acquires raw information set about the file systems. Later to be extracted by preprocessing in dependent items.

-

-

vfs.fs.get
macOS: Available memoryThe available memory is defined as free+cached+buffers memory.

-

-

vm.memory.size[available]
macOS: Total memory

-

-

1hvm.memory.size[total]
macOS: Zabbix agent availabilityMonitoring the availability status of the agent.INTERNAL

-

zabbix[host,agent,available]

Triggers

NameDescriptionExpressionPriorityDependencies
macOS: Configured max number of opened files is too low

-

last(/macOS by Zabbix agent/kernel.maxfiles)<1024INFO 🔔macOS: Maximum number of opened files
macOS: Configured max number of processes is too low

-

last(/macOS by Zabbix agent/kernel.maxproc)<256INFO 🔔macOS: Maximum number of processes
macOS: Processor load is too high

-

avg(/macOS by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5WARNING 📢macOS: Processor load (1 min average per core)
macOS: Hostname was changed

-

last(/macOS by Zabbix agent/system.hostname,#1)<>last(/macOS by Zabbix agent/system.hostname,#2)INFO 🔔macOS: Host name
macOS: Host information was changed

-

last(/macOS by Zabbix agent/system.uname,#1)<>last(/macOS by Zabbix agent/system.uname,#2)INFO 🔔macOS: System information
macOS: Server has just been restarted

-

change(/macOS by Zabbix agent/system.uptime)<0INFO 🔔macOS: System uptime
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: Checksum of /etc/passwd
macOS: Lack of available memory on server

-

last(/macOS by Zabbix agent/vm.memory.size[available])<20MAVERAGE ⚠macOS: Available memory
macOS: Zabbix agent is not availableFor 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})=0AVERAGE ⚠macOS: Zabbix agent availability

Discovery rule №1

NameDescriptionTypeIntervalKey and additional info
Mounted filesystem discoveryDiscovery of different types of file systems as defined in the global regular expression "File systems for discovery". Note that the option to exclude dmg software images from discovery is available only with Zabbix agents 6.4 and higher.DEPENDENT0vfs.fs.dependent.discovery

Item prototypes

NameDescriptionTypeIntervalKey and additional info
{#FSNAME}: Free inodes, %

-

DEPENDENT

-

vfs.fs.dependent.inode[{#FSNAME},pfree]
{#FSNAME}: Free disk space

-

DEPENDENT

-

vfs.fs.dependent.size[{#FSNAME},free]
{#FSNAME}: Free disk space, %

-

DEPENDENT

-

vfs.fs.dependent.size[{#FSNAME},pfree]
{#FSNAME}: Total disk space

-

DEPENDENT

-

vfs.fs.dependent.size[{#FSNAME},total]
{#FSNAME}: Used disk space

-

DEPENDENT

-

vfs.fs.dependent.size[{#FSNAME},used]
{#FSNAME}: Get filesystem data

-

DEPENDENT

-

vfs.fs.dependent[{#FSNAME},data]

Trigger prototypes

NameDescriptionExpressionPriorityDependencies
{#FSNAME}: Free inodes is less than 20%

-

last(/macOS by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree])<20WARNING 📢{#FSNAME}: Free inodes, %
{#FSNAME}: Free disk space is less than 20%

-

last(/macOS by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pfree])<20WARNING 📢{#FSNAME}: Free disk space, %