Unofficial Zabbix Agent for Android
This is an unofficial Zabbix Agent for Android. It currently supports the following item keys :
agent.active_check_status : 1 if active check are enabled, 0 otherwise
agent.hostname : agent hostname as specified in app's preferences
agent.ping
agent.version
android.manufacturer : manufacturer of the device
android.model : model of the device
app.foreground : package name of the current foreground app (not supported on Android >= 5.0)
app.running : json formated list of running apps (not supported on Android >= 5.0)
gps[<timeout>] : output location of the device (latitude/longitude/altitude/accuracy in json). Does not work if app is in background due to google play policy (ask me for a special version to install manually if you need that feature).
gps.latitude[<timeout>] / gps.longitude[<timeout>] / gps.altitude[<timeout>] / gps.accuracy[<timeout>] : output location of the device (latitude/longitude), altitude, accuracy (in meters) as a float. Does not work if app is in background due to google play policy (ask me for a special version to install manually if you need that feature).
net.carrier : network carrier name
net.connectivity: device connectivity, one of 2G, 3G, 4G
net.if.in[if,<mode>] : see zabbix documentation. This item does not work for Android 10+ (Google restrictions)
net.if.out[if,<mode>] : see zabbix documentation. This item does not work for Android 10+ (Google restrictions)
net.{mobile,total}.{rx_bytes,tx_bytes,rx_packets,tx_packets} : bytes/packets received/transmitted on mobile/all interfaces on the device.
net.roaming : whether device is currently in roaming
net.signal_strength: signal strength in dBm (mobile network, not wifi)
net.wifi.bssid : MAC of the BSSID the device is currently connected to using WiFi. You need to enable access to GPS/Location query in app settings and enable GPS in your device for Android > 8.0.
net.wifi.status : 1 = wifi connected, 0 = not connected
net.wifi.ssid : name of the currently connected SSID. You need to enable access to GPS/Location query in app settings and enable GPS in your device for Android > 8.0.
net.wifi.signal : wifi signal strength, from 0 (low) to 4 (great)
power.battery_level
power.battery_temperature
power.is_interactive : returns true if device is ready to interact with the user (screen on).
power.source : one of "ac", "usb", "wireless", "unplugged"
power.status : one of "charging", "full", "discharging"
proc.cpu.util[<name>] : cpu usage in % for specified process name, you need to have a rooted device for this item to work
proc.mem[<name>]: memory usage in byte for the specified process name, you need to have a rooted device for this item to work
sensor.light : light sensor value in lux
sensor.proximity : proximity sensor value in cm
sensor.temperature : temperature sensor value in °C
system.cpu.load[]
system.cpu.num : for big.LITTLE CPU, only number of CPU in active cluster will count
system.cpu.freq[number,type] : get cur/min/max CPU frequency for specified core number
system.hostname : device's hostname
system.localtime[] : system time
system.sw.arch
system.sw.os[]
system.uname
system.uptime : number of seconds since device boot
thermal.discovery : list all thermal sensors
thermal.type[index]
thermal.value[index]
vfs.fs.size[fs,<mode>]
vm.memory.size[total] : total memory in MB
vm.memory.size[free] : memory available in MB
web.page.get[host,<path>,<port>]
web.page.perf[host,<path>,<port>]
Please let me know if you need any other key.
You can also add your own UserParameters in the settings, so you can call custom scripts to return any data you need.
Please remember to disable battery optimization for this app to work correctly when your device goes to sleep. If the agent still stops responding after some time, enable "Acquire wake lock" from settings menu but remember it will quickly drain your device battery if not on AC.
Unofficial Zabbix Agent
5.6 by dentier
Nov 6, 2024