# AIX by Zabbix agent ## Overview It is an official AIX template. It requires Zabbix agent 7.0 or newer. ## Requirements Zabbix version: 7.0 and higher. ## Tested versions This template has been tested on: - AIX 6.1 ## Configuration > Zabbix should be configured according to the instructions in the [Templates out of the box](https://www.zabbix.com/documentation/7.0/manual/config/templates_out_of_the_box) section. ## Setup Install Zabbix agent on the AIX OS according to Zabbix documentation. ### Macros used |Name|Description|Default| |----|-----------|-------| |{$AGENT.TIMEOUT}|
The timeout after which 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| |----|-----------|----|-----------------------| |AIX: Number of running processes|The number of processes in a running state.
|Zabbix agent|proc.num[,,run]| |AIX: Number of processes|The total number of processes in any state.
|Zabbix agent|proc.num[]| |AIX: Interrupts per second||Zabbix agent|system.cpu.intr**Preprocessing**
The processor load is calculated as the system CPU load divided by the number of CPU cores.
|Zabbix agent|system.cpu.load[percpu,avg1]| |AIX: 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]| |AIX: 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]| |AIX: Context switches per second||Zabbix agent|system.cpu.switches**Preprocessing**
A host name of the system.
|Zabbix agent|system.hostname**Preprocessing**
Discard unchanged with heartbeat: `1d`
The information as normally returned by the 'uname -a'.
|Zabbix agent|system.uname**Preprocessing**
Discard unchanged with heartbeat: `1d`
The number of users who are currently logged in.
|Zabbix agent|system.users.num| |AIX: Checksum of /etc/passwd||Zabbix agent|vfs.file.cksum[/etc/passwd,sha256]**Preprocessing**
Discard unchanged with heartbeat: `1h`
The available memory is defined as free+cached+buffers memory.
|Zabbix agent|vm.memory.size[available]| |AIX: Total memory||Zabbix agent|vm.memory.size[total]| |AIX: Version of Zabbix agent running||Zabbix agent|agent.version**Preprocessing**
Discard unchanged with heartbeat: `1d`
**Preprocessing**
Discard unchanged with heartbeat: `1d`
The agent always returns 1 for this item. It could be used in combination with nodata() for the availability check.
|Zabbix agent|agent.ping| |AIX: Zabbix agent availability|Monitoring the availability status of the agent.
|Zabbix internal|zabbix[host,agent,available]| |AIX: Get filesystems|The `vfs.fs.get` key acquires raw information set about the file systems. Later to be extracted by preprocessing in dependent items.
|Zabbix agent|vfs.fs.get| ### Triggers |Name|Description|Expression|Severity|Dependencies and additional info| |----|-----------|----------|--------|--------------------------------| |AIX: Too many processes running||`avg(/AIX by Zabbix agent/proc.num[,,run],5m)>30`|Warning|| |AIX: Too many processes||`avg(/AIX by Zabbix agent/proc.num[],5m)>300`|Warning|| |AIX: Processor load is too high||`avg(/AIX by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5`|Warning|| |AIX: Hostname was changed||`last(/AIX by Zabbix agent/system.hostname,#1)<>last(/AIX by Zabbix agent/system.hostname,#2)`|Info|| |AIX: Disk I/O is overloaded|The OS spends significant time waiting for the I/O (input/output) operations. It could be an indicator of performance issues with the storage system.
|`avg(/AIX by Zabbix agent/system.stat[cpu,wa],5m)>20`|Warning|| |AIX: Host information was changed||`last(/AIX by Zabbix agent/system.uname,#1)<>last(/AIX by Zabbix agent/system.uname,#2)`|Info|| |AIX: Server has just been restarted||`change(/AIX by Zabbix agent/system.uptime)<0`|Info|| |AIX: /etc/passwd has been changed||`last(/AIX by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/AIX by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2)`|Warning|| |AIX: Lack of available memory on server||`last(/AIX by Zabbix agent/vm.memory.size[available])<20M`|Average|| |AIX: 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(/AIX by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0`|Average|**Manual close**: Yes| ### LLD rule Network interface discovery |Name|Description|Type|Key and additional info| |----|-----------|----|-----------------------| |Network interface discovery|The discovery of network interfaces as defined in the global regular expression "Network interfaces for discovery".
|Zabbix agent|net.if.discovery| ### Item prototypes for Network interface discovery |Name|Description|Type|Key and additional info| |----|-----------|----|-----------------------| |Interface {#IFNAME}: Incoming network traffic||Zabbix agent|net.if.in[{#IFNAME}]**Preprocessing**
Custom multiplier: `8`
**Preprocessing**
Custom multiplier: `8`
The discovery of different types of file systems as defined in the global regular expression "File systems for discovery".
|Dependent item|vfs.fs.dependent.discovery| ### Item prototypes for Mounted filesystem discovery |Name|Description|Type|Key and additional info| |----|-----------|----|-----------------------| |{#FSNAME}: Get filesystem data||Dependent item|vfs.fs.dependent[{#FSNAME},data]**Preprocessing**
JSON Path: `$.[?(@.fsname=='{#FSNAME}')].first()`
The filesystem is mounted as read-only. It is available only for Zabbix agents 6.4 and higher.
|Dependent item|vfs.fs.dependent[{#FSNAME},readonly]**Preprocessing**
JSON Path: `$.options`
⛔️Custom on fail: Discard value
Regular expression: `(?:^|,)ro\b 1`
⛔️Custom on fail: Set value to: `0`
**Preprocessing**
JSON Path: `$.inodes.pfree`
**Preprocessing**
JSON Path: `$.bytes.free`
**Preprocessing**
JSON Path: `$.bytes.pfree`
**Preprocessing**
JSON Path: `$.bytes.total`
**Preprocessing**
JSON Path: `$.bytes.used`
The filesystem has become read-only. A possible reason is an I/O error. It is available only for Zabbix agents 6.4 and higher.
|`last(/AIX by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly],#2)=0 and last(/AIX by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=1`|Average|**Manual close**: Yes| |{#FSNAME}: Free inodes is less than 20%||`last(/AIX by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree])<20`|Warning|| |{#FSNAME}: Free disk space is less than 20%||`last(/AIX by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pfree])<20`|Warning|| ## Feedback Please report any issues with the template at [`https://support.zabbix.com`](https://support.zabbix.com) You can also provide feedback, discuss the template, or ask for help at [`ZABBIX forums`](https://www.zabbix.com/forum/zabbix-suggestions-and-feedback)