Se encuentra viendo la documentación de la versión en desarrollo, puede estar incompleta.
Únase a nuestro proyecto de traducción y ayude a traducir la documentación de Zabbix a su lengua materna.

1 Agente Zabbix 2

El agente 2 de Zabbix es compatible con todas las claves de métricas compatibles con el agente de Zabbix en Unix y Windows. Esta página proporciona detalles sobre las claves de métrica adicionales, que puede usar solamente con el agente 2 de Zabbix, agrupadas por el complemento al que pertenecen.

Las claves de las métricas se enumeran sin parámetros ni información adicional. Haga clic en la clave de la métrica para ver los detalles completos.

Clave de métrica Descripción Complemento
ceph.df.details El uso de datos del clúster y la distribución entre los grupos. Ceph
ceph.osd.stats Estadísticas agregadas y por OSD.
ceph.osd.discovery La lista de OSD descubiertos.
ceph.osd.dump Los umbrales de uso y estados de los OSD.
ceph.ping Prueba si se puede establecer una conexión con Ceph.
ceph.pool.discovery La lista de grupos descubiertos.
ceph.status El estado general del clúster.
docker.container_info Información de bajo nivel sobre un contenedor. Docker
docker.container_stats Las estadísticas de uso de recursos del contenedor.
docker.containers Devuelve la lista de contenedores.
docker.containers.discovery Devuelve la lista de contenedores. Se utiliza para descubrimiento de bajo nivel.
docker.data.usage Información sobre el uso de datos actual.
docker.images Devuelve la lista de imágenes.
docker.images.discovery Devuelve la lista de imágenes. Se utiliza para descubrimiento de bajo nivel.
docker.info La información del sistema.
docker.ping Pruebe si el demonio Docker está vivo o no.
memcached.ping Prueba si una conexión está activa o no. Memcached
memcached.stats Obtiene el resultado del comando STATS.
mongodb.collection.stats Devuelve una variedad de estadísticas de almacenamiento para una colección determinada. MongoDB
mongodb.collections.discovery Devuelve una lista de colecciones descubiertas.
mongodb.collections.usage Devuelve las estadísticas de uso de las colecciones.
mongodb.connpool.stats Devuelve información sobre las conexiones salientes abiertas desde la instancia de base de datos actual a otros miembros del clúster fragmentado o conjunto de réplicas.
mongodb.db.stats Devuelve las estadísticas que reflejan un estado determinado del sistema de base de datos.
mongodb.db.discovery Devuelve una lista de bases de datos descubiertas.
mongodb.jumbo_chunks.count Devuelve el recuento de fragmentos gigantes.
mongodb.oplog.stats Devuelve el estado del conjunto de réplicas, utilizando datos sondeados del registro de operaciones.
mongodb.ping Prueba si una conexión está activa o no.
mongodb.rs.config Devuelve la configuración actual del conjunto de réplicas.
mongodb.rs.status Devuelve el estado del conjunto de réplicas desde el punto de vista del miembro donde se ejecuta el método.
mongodb.server.status Devuelve el estado de la base de datos.
mongodb.sh.discovery Devuelve la lista de fragmentos descubiertos presentes en el clúster.
mongodb.version Devuelve la versión del servidor de la base de datos.
mqtt.get Se suscribe a uno o varios temas específicos (con comodines) del broker proporcionado y espera publicaciones. MQTT
mssql.availability.group.get Devuelve los grupos de disponibilidad. MSSQL
mssql.custom.query Devuelve el resultado de una consulta personalizada.
mssql.db.get Devuelve todas las bases de datos MSSQL disponibles.
mssql.job.status.get Devuelve el estado de los trabajos.
mssql.last.backup.get Devuelve la hora de la última copia de respaldo para todas las bases de datos.
mssql.local.db.get Devuelve las bases de datos que participan en un grupo de disponibilidad "Siempre disponible" y de replica (primario o secundario) y que están ubicadas en el servidor sobre el que se ha establecido la conexión.
mssql.mirroring.get Devuelve la información de la replicación espejo.
mssql.nonlocal.db.get Devuelve las bases de datos que participan en un grupo de disponibilidad "Siempre disponible" y de replica (primario o secundario) y que están ubicadas otros servidores (la base de datos no es local a la instancia de SQL Server a la que se ha realizado la conexión).
mssql.perfcounter.get Devuelve las métricas de rendimiento.
mssql.ping Comprueba si una conexión está viva o no.
mssql.quorum.get Devuelve la información sobre el "quorum".
mssql.quorum.member.get Devuelve los miembros del "quorum".
mssql.replica.get Devuelve las replicas.
mssql.version Devuelve la versión de MSSQL.
mysql.custom.query Devuelve el resultado de una consulta personalizada. MySQL
mysql.db.discovery Devuelve la lista de bases de datos MySQL.
mysql.db.size El tamaño de la base de datos en bytes.
mysql.get_status_variables Valores de las variables de estado globales.
mysql.ping Prueba si una conexión está activa o no.
mysql.replication.discovery Devuelve la lista de replicaciones de MySQL.
mysql.replication.get_slave_status El estado de replicación.
mysql.version La versión de MySQL.
oracle.diskgroups.stats Devuelve las estadísticas de los grupos de discos de la Administración automática de almacenamiento (ASM). Oracle
oracle.diskgroups.discovery Devuelve la lista de grupos de discos ASM.
oracle.archive.info El archivo registra estadísticas.
oracle.cdb.info Información de las bases de datos de contenedores (CDB).
oracle.custom.query El resultado de una consulta personalizada.
oracle.datafiles.stats Devuelve las estadísticas de los archivos de datos.
oracle.db.discovery Devuelve la lista de bases de datos.
oracle.fra.stats Devuelve las estadísticas del Área de recuperación rápida (FRA).
oracle.instance.info Las estadísticas de la instancia.
oracle.pdb.info Información de las bases de datos conectables (PDB).
oracle.pdb.discovery Devuelve la lista de PDB.
oracle.pga.stats Devuelve las estadísticas del Área Global del Programa (PGA).
oracle.ping Pruebe si se puede establecer una conexión con Oracle.
oracle.proc.stats Devuelve las estadísticas de los procesos.
oracle.redolog.info La información del archivo de registro del archivo de control.
oracle.sga.stats Devuelve las estadísticas del área global del sistema (SGA).
oracle.sessions.stats Devuelve las estadísticas de las sesiones.
oracle.sys.metrics Devuelve un conjunto de valores de métricas del sistema.
oracle.sys.params Devuelve un conjunto de valores de parámetros del sistema.
oracle.ts.stats Devuelve las estadísticas de los espacios de tabla.
oracle.ts.discovery Devuelve una lista de espacios de tabla.
oracle.user.info Devuelve información de usuario de Oracle.
oracle.version Devuelve la versión del servidor de la base de datos.
pgsql.autovacuum.count El número de trabajadores de autovacuum. PostgreSQL
pgsql.archive La información sobre los archivos archivados.
pgsql.bgwriter El número combinado de puntos de control para el clúster de base de datos, desglosado por tipo de punto de control.
pgsql.cache.hit La tasa de aciertos de la caché del buffer de PostgreSQL.
pgsql.connections Devuelve conexiones por tipo.
pgsql.custom.query Devuelve el resultado de una consulta personalizada.
pgsql.db.age La edad del FrozenXID más antiguo de la base de datos.
pgsql.db.bloating_tables El número de tablas hinchadas por base de datos.
pgsql.db.discovery La lista de bases de datos PostgreSQL.
pgsql.db.size El tamaño de la base de datos en bytes.
pgsql.dbstat Recopila las estadísticas por base de datos.
pgsql.dbstat.sum Los datos resumidos de todas las bases de datos de un clúster.
pgsql.locks La información sobre los bloqueos otorgados por base de datos.
pgsql.oldest.xid La edad del XID más antiguo.
pgsql.ping Prueba si una conexión está activa o no.
pgsql.queries Consulta métricas por tiempo de ejecución.
pgsql.replication.count El número de servidores en espera.
pgsql.replication.process El retraso de descarga, el retraso de escritura y el retraso de reproducción por cada proceso de remitente.
pgsql.replication.process.discovery El descubrimiento del nombre del proceso de replicación.
pgsql.replication.recovery_role El estado de recuperación.
pgsql.replication.status El estado de la replicación.
pgsql.replication_lag.b El retraso de replicación en bytes.
pgsql.replication_lag.sec El retraso de replicación en segundos.
pgsql.uptime El tiempo de actividad de PostgreSQL en milisegundos.
pgsql.version Devuelve la versión de PostgreSQL.
pgsql.wal.stat Las estadísticas de WAL.
redis.config Obtiene los parámetros de configuración de una instancia de Redis que coincide con el patrón. Redis
redis.info Obtiene el resultado del comando INFO.
redis.ping Prueba si una conexión está activa o no.
redis.slowlog.count El número de entradas de registro lentas desde que se inició Redis.
smart.attribute.discovery Devuelve una lista de S.M.A.R.T. atributos del dispositivo. S.M.A.R.T.
smart.disk.discovery Devuelve una lista de S.M.A.R.T. dispositivos.
smart.disk.get Devuelve todas las propiedades disponibles de S.M.A.R.T. dispositivos.
systemd.unit.get Devuelve todas las propiedades de una unidad systemd. Systemd
systemd.unit.info Información de la unidad Systemd.
systemd.unit.discovery La lista de unidades systemd y sus detalles.
web.certificate.get Valida los certificados y devuelve los detalles del certificado. Certificados web

Ver también:

Detalles clave de métrica

Los parámetros sin corchetes angulares son obligatorios. Los parámetros marcados con corchetes angulares < > son opcionales.

ceph.df.details[connString,<user>,<apikey>]


The cluster’s data usage and distribution among pools.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Ceph login credentials.
ceph.osd.stats[connString,<user>,<apikey>]


Aggregated and per OSD statistics.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Ceph login credentials.
ceph.osd.discovery[connString,<user>,<apikey>]


The list of discovered OSDs. Used for low-level discovery.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Ceph login credentials.
ceph.osd.dump[connString,<user>,<apikey>]


The usage thresholds and statuses of OSDs.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Ceph login credentials.
ceph.ping[connString,<user>,<apikey>]


Tests whether a connection to Ceph can be established.
Return value: 0 - connection is broken (if there is any error presented including AUTH and configuration issues); 1 - connection is successful.

Parameters:

  • connString - the URI or session name;
  • user, password - the Ceph login credentials.
ceph.pool.discovery[connString,<user>,<apikey>]


The list of discovered pools. Used for low-level discovery.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Ceph login credentials.
ceph.status[connString,<user>,<apikey>]


The overall cluster's status.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Ceph login credentials.
docker.container_info[<ID>,<info>]


Low-level information about a container.
Return value: The output of the ContainerInspect API call serialized as JSON.

Parameters:

  • ID - the ID or name of the container;
  • info - the amount of information returned. Supported values: short (default) or full.

The Agent 2 user ('zabbix') must be added to the 'docker' group for sufficient privileges. Otherwise the check will fail.

docker.container_stats[<ID>]


The container resource usage statistics.
Return value: The output of the ContainerStats API call and CPU usage percentage serialized as JSON.

Parameter:

  • ID - the ID or name of the container.

The Agent 2 user ('zabbix') must be added to the 'docker' group for sufficient privileges. Otherwise the check will fail.

docker.containers


The list of containers.
Return value: The output of the ContainerList API call serialized as JSON.

The Agent 2 user ('zabbix') must be added to the 'docker' group for sufficient privileges. Otherwise the check will fail.

docker.containers.discovery[<options>]


Returns the list of containers. Used for low-level discovery.
Return value: JSON object.

Parameter:

  • options - specify whether all or only running containers should be discovered. Supported values: true - return all containers; false - return only running containers (default).

The Agent 2 user ('zabbix') must be added to the 'docker' group for sufficient privileges. Otherwise the check will fail.

docker.data.usage


Information about the current data usage.
Return value: The output of the SystemDataUsage API call serialized as JSON.

The Agent 2 user ('zabbix') must be added to the 'docker' group for sufficient privileges. Otherwise the check will fail.

docker.images


Returns the list of images.
Return value: The output of the ImageList API call serialized as JSON.

The Agent 2 user ('zabbix') must be added to the 'docker' group for sufficient privileges. Otherwise the check will fail.

docker.images.discovery


Returns the list of images. Used for low-level discovery.
Return value: JSON object.

The Agent 2 user ('zabbix') must be added to the 'docker' group for sufficient privileges. Otherwise the check will fail.

docker.info


The system information.
Return value: The output of the SystemInfo API call serialized as JSON.

The Agent 2 user ('zabbix') must be added to the 'docker' group for sufficient privileges. Otherwise the check will fail.

docker.ping


Test if the Docker daemon is alive or not.
Return value: 1 - the connection is alive; 0 - the connection is broken.

The Agent 2 user ('zabbix') must be added to the 'docker' group for sufficient privileges. Otherwise the check will fail.

ember.get[<uri>,<path>]


Returns the result of the required device.
Return value: JSON object.

Parameters:

  • uri - Ember+ device URI. Default: 127.0.0.1:9998;
  • path - OID path to device. Empty by default, returns root collection data.
memcached.ping[connString,<user>,<password>]


Test if a connection is alive or not.
Return value: 1 - the connection is alive; 0 - the connection is broken (if there is any error presented including AUTH and configuration issues).

Parameters:

  • connString - the URI or session name;
  • user, password - the Memcached login credentials.
memcached.stats[connString,<user>,<password>,<type>]


Gets the output of the STATS command.
Return value: JSON - the output is serialized as JSON.

Parameters:

  • connString - the URI or session name;
  • user, password - the Memcached login credentials;
  • type - stat type to be returned: items, sizes, slabs or settings (empty by default, returns general statistics).
mongodb.collection.stats[connString,<user>,<password>,<database>,collection]


Returns a variety of storage statistics for a given collection.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the MongoDB login credentials;
  • database - the database name (default: admin);
  • collection - the collection name.
mongodb.collections.discovery[connString,<user>,<password>]


Returns a list of discovered collections. Used for low-level discovery.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the MongoDB login credentials.
mongodb.collections.usage[connString,<user>,<password>]


Returns the usage statistics for collections.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the MongoDB login credentials.
mongodb.connpool.stats[connString,<user>,<password>]


Returns information regarding the open outgoing connections from the current database instance to other members of the sharded cluster or replica set.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the MongoDB login credentials;
  • database - the database name (default: admin);
  • collection - the collection name.
mongodb.db.stats[connString,<user>,<password>,<database>]


Returns the statistics reflecting a given database system state.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the MongoDB login credentials;
  • database - the database name (default: admin).
mongodb.db.discovery[connString,<user>,<password>]


Returns a list of discovered databases. Used for low-level discovery.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the MongoDB login credentials.
mongodb.jumbo_chunks.count[connString,<user>,<password>]


Returns the count of jumbo chunks.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the MongoDB login credentials.
mongodb.oplog.stats[connString,<user>,<password>]


Returns the status of the replica set, using data polled from the oplog.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the MongoDB login credentials.
mongodb.ping[connString,<user>,<password>]


Test if a connection is alive or not.
Return value: 1 - the connection is alive; 0 - the connection is broken (if there is any error presented including AUTH and configuration issues).

Parameters:

  • connString - the URI or session name;
  • user, password - the MongoDB login credentials.
mongodb.rs.config[connString,<user>,<password>]


Returns the current configuration of the replica set.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the MongoDB login credentials.
mongodb.rs.status[connString,<user>,<password>]


Returns the replica set status from the point of view of the member where the method is run.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the MongoDB login credentials.
mongodb.server.status[connString,<user>,<password>]


Returns the database state.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the MongoDB login credentials.
mongodb.sh.discovery[connString,<user>,<password>]


Returns the list of discovered shards present in the cluster.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the MongoDB login credentials.
mongodb.version[connString,<usuario>,<contraseña>]


Devuelve la versión del servidor de la base de datos.
Valor de retorno: Cadena.

Parámetros:

  • connString - el URI o nombre de la sesión;
  • usuario, contraseña - las credenciales de inicio de sesión de MongoDB.
mqtt.get[<broker url>,topic,<username>,<password>]


Subscribes to a specific topic or topics (with wildcards) of the provided broker and waits for publications.
Return value: Depending on topic content. If wildcards are used, returns topic content as JSON.

Parameters:

  • broker url - the MQTT broker URL (if empty, localhost with port 1883 is used);
  • topic - the MQTT topic (mandatory). Wildcards (+,#) are supported;
  • user, password - the authentication credentials (if required).

Comments:

  • The item must be configured as an active check ('Zabbix agent (active)' item type);
  • TLS encryption certificates can be used by saving them into a default location (e.g. /etc/ssl/certs/ directory for Ubuntu). For TLS, use the tls:// scheme.
mssql.availability.group.get[URI,<user>,<password>]


Returns availability groups.
Return value: JSON object.

Parameters:

  • URI - MSSQL server URI (the only supported schema is sqlserver://). Embedded credentials will be ignored;
  • user, password - username, password to send to protected MSSQL server.

For more information see the MSSQL plugin readme.

mssql.custom.query[URI,<user>,<password>,queryName,<args...>]


Returns the result of a custom query.
Return value: JSON object.

Parameters:

  • URI - MSSQL server URI (the only supported schema is sqlserver://). Embedded credentials will be ignored;
  • user, password - username, password to send to protected MSSQL server;
  • queryName - name of a custom query configured in Plugins.MSSQL.CustomQueriesDir without the .sql extension;
  • args - one or several comma-separated arguments to pass to a query.

For more information see the MSSQL plugin readme.

mssql.db.get


Returns all available MSSQL databases.
Return value: JSON object.

For more information see the MSSQL plugin readme.

mssql.job.status.get


Returns the status of jobs.
Return value: JSON object.

For more information see the MSSQL plugin readme.

mssql.last.backup.get


Returns the last backup time for all databases.
Return value: JSON object.

For more information see the MSSQL plugin readme.

mssql.local.db.get


Returns databases that are participating in an Always On availability group and replica (primary or secondary) and are located on the server that the connection was established to.
Return value: JSON object.

For more information see the MSSQL plugin readme.

mssql.mirroring.get


Returns mirroring info.
Return value: JSON object.

For more information see the MSSQL plugin readme.

mssql.nonlocal.db.get


Returns databases that are participating in an Always On availability group and replica (primary or secondary) located on other servers (the database is not local to the SQL Server instance that the connection was established to).
Return value: JSON object.

For more information see the MSSQL plugin readme.

mssql.perfcounter.get


Returns the performance counters.
Return value: JSON object.

For more information see the MSSQL plugin readme.

mssql.ping


Ping the database. Test if connection is correctly configured.
Return value: 1 - alive, 0 - not alive.

For more information see the MSSQL plugin readme.

mssql.quorum.get


Returns the quorum info.
Return value: JSON object.

For more information see the MSSQL plugin readme.

mssql.quorum.member.get


Returns the quorum members.
Return value: JSON object.

For more information see the MSSQL plugin readme.

mssql.replica.get


Returns the replicas.
Return value: JSON object.

For more information see the MSSQL plugin readme.

mssql.version


Returns the MSSQL version.
Return value: String.

For more information see the MSSQL plugin readme.

mysql.custom.query[connString,<user>,<password>,queryName,<args...>]


Devuelve el resultado de una consulta personalizada.
Valor de retorno: objeto JSON.

Parámetros:

  • connString - URI o nombre de sesión;
  • user, password - Credenciales de inicio de sesión de MySQL;
  • queryName: nombre de una consulta personalizada, debe coincidir con el nombre del archivo SQL sin extensión;
  • args: uno o varios argumentos separados por comas para pasar a una consulta.
mysql.db.discovery[connString,<user>,<password>]


Returns the list of MySQL databases. Used for low-level discovery.
Return value: The result of the "show databases" SQL query in LLD JSON format.

Parameters:

  • connString - the URI or session name;
  • user, password - the MySQL login credentials.
mysql.db.size[connString,<user>,<password>,<database name>]


The database size in bytes.
Return value: Result of the "select coalesce(sum(data_length + index_length),0) as size from information_schema.tables where table_schema=?" SQL query for specific database in bytes.

Parameters:

  • connString - the URI or session name;
  • user, password - the MySQL login credentials;
  • database name - the database name.
mysql.get_status_variables[connString,<user>,<password>]


Values of the global status variables.
Return value: Result of the "show global status" SQL query in JSON format.

Parameters:

  • connString - the URI or session name;
  • user, password - the MySQL login credentials.
mysql.ping[connString,<user>,<password>]


Test if a connection is alive or not.
Return value: 1 - the connection is alive; 0 - the connection is broken (if there is any error presented including AUTH and configuration issues).

Parameters:

  • connString - the URI or session name;
  • user, password - the MySQL login credentials.
mysql.replication.discovery[connString,<user>,<password>]


Returns the list of MySQL replications. Used for low-level discovery.
Return value: The result of the "show slave status" SQL query in LLD JSON format.

Parameters:

  • connString - the URI or session name;
  • user, password - the MySQL login credentials.
mysql.replication.get_slave_status[connString,<user>,<password>,<master host>]


The replication status.
Return value: Result of the "show slave status" SQL query in JSON format.

Parameters:

  • connString - the URI or session name;
  • user, password - the MySQL login credentials;
  • master host - the replication master host name.
mysql.version[connString,<user>,<password>]


The MySQL version.
Return value: String (with the MySQL instance version).

Parameters:

  • connString - the URI or session name;
  • user, password - the MySQL login credentials.
net.dns.get[<ip>,name,<type>,<timeout>,<count>,<protocol>,"<flags>"]

Performs a DNS query and returns detailed DNS record information.
This item is an extended version of the net.dns.record Zabbix agent item with more record types and customizable flags supported.
Return values: JSON object

Parameters:

  • ip - the IP address of DNS server (leave empty for the default DNS server);
  • name - the DNS name to query;
  • type - the record type to be queried (default is SOA);
  • timeout - the timeout for the request in seconds (default is 1 second);
  • count - the number of tries for the request (default is 2);
  • protocol - the protocol used to perform DNS queries: udp (default) or tcp;
  • flags - one or more comma-separated arguments to pass to a query.

Comments:

  • The possible values for type are: A, NS, MD, MF, CNAME, SOA, MB, MG, MR, NULL, PTR, HINFO, MINFO, MX, TXT, RP, AFSDB, X25, ISDN, RT, NSAPPTR, SIG, KEY, PX, GPOS, AAAA, LOC, NXT, EID, NIMLOC, SRV, ATMA, NAPTR, KX, CERT, DNAME, OPT, APL, DS, SSHFP, IPSECKEY, RRSIG, NSEC, DNSKEY, DHCID, NSEC3, NSEC3PARAM, TLSA, SMIMEA, HIP, NINFO, RKEY, TALINK, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD, SVCB, HTTPS, SPF, UINFO, UID, GID, UNSPEC, NID, L32, L64, LP, EUI48, EUI64, URI, CAA, AVC, AMTRELAY. Note that values must be in uppercase only; lowercase or mixed case values are not supported.
  • For reverse DNS lookups (when type is set to PTR), you can provide the DNS name in both reversed and non-reversed format (see examples below). Note that when PTR record is requested, the DNS name is actually an IP address.
  • The possible values for flags are: cdflag or nocdflag (default), rdflag (default) or nordflag, dnssec or nodnssec (default), nsid or nonsid (default), edns0 (default) or noedns0, aaflag or noaaflag (default), adflag or noadflag (default). The flags dnssec and nsid cannot be used together with noedns0, as both require edns0. Note that values must be in lowercase only; uppercase case or mixed case values are not supported.
  • Internationalized domain names are not supported, please use IDNA encoded names instead.
  • The output is an object containing DNS record information based on the parameters provided (see more details).

Examples:

net.dns.get[192.0.2.0,zabbix.com,DNSKEY,3,3,tcp,"cdflag,rdflag,nsid"]
       
       net.dns[,198.51.100.1,PTR,,,,"cdflag,rdflag,nsid"]
       net.dns[,1.100.51.198.in-addr.arpa,PTR,,,,"cdflag,rdflag,nsid"]
       
       net.dns[,2a00:1450:400f:800::200e,PTR,,,,"cdflag,rdflag,nsid"]
       net.dns[,e.0.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.0.f.0.0.4.0.5.4.1.0.0.a.2.ip6.arpa,PTR,,,,"cdflag,rdflag,nsid"]
oracle.diskgroups.stats[connString,<user>,<password>,<service>,<diskgroup>]


Returns the Automatic Storage Management (ASM) disk groups statistics.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name;
  • diskgroup - the name of the ASM disk group to query.
oracle.diskgroups.discovery[connString,<user>,<password>,<service>]


Returns the list of ASM disk groups. Used for low-level discovery.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name.
oracle.archive.info[connString,<user>,<password>,<service>,<destination>]


The archive logs statistics.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name;
  • destination - the name of the destination to query.
oracle.cdb.info[connString,<user>,<password>,<service>,<database>]


The Container Databases (CDBs) information.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name;
  • destination - the name of the database to query.
oracle.custom.query[connString,<user>,<password>,<service>,queryName,<args...>]


The result of a custom query.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name;
  • queryName — the name of a custom query (must be equal to the name of an SQL file without an extension);
  • args... — one or several comma-separated arguments to pass to the query.
oracle.datafiles.stats[connString,<user>,<password>,<service>]


Returns the data files statistics.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name;
  • diskgroup - the name of the ASM disk group to query.
oracle.db.discovery[connString,<user>,<password>,<service>]


Returns the list of databases. Used for low-level discovery.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name.
oracle.fra.stats[connString,<user>,<password>,<service>]


Returns the Fast Recovery Area (FRA) statistics.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name.
oracle.instance.info[connString,<user>,<password>,<service>]


The instance statistics.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name.
oracle.pdb.info[connString,<user>,<password>,<service>,<database>]


The Pluggable Databases (PDBs) information.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name;
  • destination - the name of the database to query.
oracle.pdb.discovery[connString,<user>,<password>,<service>]


Returns the list of PDBs. Used for low-level discovery.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name.
oracle.pga.stats[connString,<user>,<password>,<service>]


Returns the Program Global Area (PGA) statistics.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name.
oracle.ping[connString,<user>,<password>,<service>]


Test whether a connection to Oracle can be established.
Return value: 1 - the connection is successful; 0 - the connection is broken (if there is any error presented including AUTH and configuration issues).

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name.
oracle.proc.stats[connString,<user>,<password>,<service>]


Returns the processes statistics.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name.
oracle.redolog.info[connString,<user>,<password>,<service>]


The log file information from the control file.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name.
oracle.sga.stats[connString,<user>,<password>,<service>]


Returns the System Global Area (SGA) statistics.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name.
oracle.sessions.stats[connString,<user>,<password>,<service>,<lockMaxTime>]


Returns the sessions statistics.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name;
  • lockMaxTime - the maximum session lock duration in seconds to count the session as a prolongedly locked. Default: 600 seconds.
oracle.sys.metrics[connString,<user>,<password>,<service>,<duration>]


Returns a set of system metric values.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name;
  • duration - the capturing interval (in seconds) of system metric values. Possible values: 60 — long duration (default), 15 — short duration.
oracle.sys.params[connString,<user>,<password>,<service>]


Returns a set of system parameter values.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name.
oracle.ts.stats[connString,<user>,<password>,<service>,<tablespace>,<type>]


Returns the tablespaces statistics.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name;
  • tablespace - name of the tablespace to query. Default (if left empty and type is set):
    - "TEMP" (if type is set to "TEMPORARY");
    - "USERS" (if type is set to "PERMANENT").
  • type - the type of the tablespace to query. Default (if tablespace is set): "PERMANENT".
oracle.ts.discovery[connString,<user>,<password>,<service>]


Returns a list of tablespaces. Used for low-level discovery.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name.
oracle.user.info[connString,<user>,<password>,<service>,<username>]


Returns Oracle user information.
Return value: JSON object.

Parameters:

  • connString - the URI or session name;
  • user, password - the Oracle login credentials;
  • service - the Oracle service name;
  • username - the username for which the information is needed. Lowercase usernames are not supported. Default: current user.
oracle.version[connString,<usuario>,<contraseña>,<servicio>]


Devuelve la versión del servidor de la base de datos.
Valor de retorno: Cadena.

Parámetros:

  • connString - el URI o nombre de la sesión;
  • usuario: el nombre de usuario de Oracle, admite agregar una de las opciones de inicio de sesión as sysdba, as sysoper o as sysasm en el formato user as sysdba (una opción de inicio de sesión no distingue entre mayúsculas y minúsculas, no debe contener un espacio final);
  • contraseña - la contraseña de Oracle;
  • servicio: el nombre del servicio de Oracle.
pgsql.autovacuum.count[uri,<username>,<password>,<database name>]


The number of autovacuum workers.
Return value: Integer.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.
pgsql.archive[uri,<username>,<password>,<database name>]


The information about archived files.
Return value: JSON object.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.

The returned data are processed by dependent items:

  • pgsql.archive.count_archived_files - the number of WAL files that have been successfully archived;
  • pgsql.archive.failed_trying_to_archive - the number of failed attempts for archiving WAL files;
  • pgsql.archive.count_files_to_archive - the number of files to archive;
  • pgsql.archive.size_files_to_archive - the size of files to archive.
pgsql.bgwriter[uri,<username>,<password>,<database name>]


The combined number of checkpoints for the database cluster, broken down by checkpoint type.
Return value: JSON object.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.

The returned data are processed by dependent items:

  • pgsql.bgwriter.buffers_alloc - the number of buffers allocated;
  • pgsql.bgwriter.buffers_backend - the number of buffers written directly by a backend;
  • pgsql.bgwriter.maxwritten_clean - the number of times the background writer stopped a cleaning scan, because it had written too many buffers;
  • pgsql.bgwriter.buffers_backend_fsync -the number of times a backend had to execute its own fsync call instead of the background writer;
  • pgsql.bgwriter.buffers_clean - the number of buffers written by the background writer;
  • pgsql.bgwriter.buffers_checkpoint - the number of buffers written during checkpoints;
  • pgsql.bgwriter.checkpoints_timed - the number of scheduled checkpoints that have been performed;
  • pgsql.bgwriter.checkpoints_req - the number of requested checkpoints that have been performed;
  • pgsql.bgwriter.checkpoint_write_time - the total amount of time spent in the portion of checkpoint processing where files are written to disk, in milliseconds;
  • pgsql.bgwriter.sync_time - the total amount of time spent in the portion of checkpoint processing where files are synchronized with disk.
pgsql.cache.hit[uri,<username>,<password>,<database name>]


The PostgreSQL buffer cache hit rate.
Return value: Float.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.
pgsql.connections[uri,<username>,<password>,<database name>]


Returns connections by type.
Return value: JSON object.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.

The returned data are processed by dependent items:

  • pgsql.connections.active - the backend is executing a query;
  • pgsql.connections.fastpath_function_call - the backend is executing a fast-path function;
  • pgsql.connections.idle - the backend is waiting for a new client command;
  • pgsql.connections.idle_in_transaction - the backend is in a transaction, but is not currently executing a query;
  • pgsql.connections.prepared - the number of prepared connections;
  • pgsql.connections.total - the total number of connections;
  • pgsql.connections.total_pct - percantange of total connections in respect to ‘max_connections’ setting of the PostgreSQL server;
  • pgsql.connections.waiting - number of connections in a query;
  • pgsql.connections.idle_in_transaction_aborted - the backend is in a transaction, but is not currently executing a query and one of the statements in the transaction caused an error.
pgsql.custom.query[uri,<username>,<password>,queryName[,args...]]


Returns the result of a custom query.
Return value: JSON object.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • queryName - the name of a custom query, must match the SQL file name without an extension;
  • args(optional) - the arguments to pass to the query.
pgsql.db.age[uri,<username>,<password>,<database name>]


The age of the oldest FrozenXID of the database. Used for low-level discovery.
Return value: Integer.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.
pgsql.db.bloating_tables[uri,<username>,<password>,<database name>]


The number of bloating tables per database. Used for low-level discovery.
Return value: Integer.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.
pgsql.db.discovery[uri,<username>,<password>,<database name>]


The list of PostgreSQL databases. Used for low-level discovery.
Return value: JSON object.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.
pgsql.db.size[uri,<username>,<password>,<database name>]


The database size in bytes. Used for low-level discovery.
Return value: Integer.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.
pgsql.dbstat[uri,<username>,<password>,<database name>]


Collects the statistics per database. Used for low-level discovery.
Return value: JSON object.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.

The returned data are processed by dependent items:

  • pgsql.dbstat.numbackends["{#DBNAME}"] - the time spent reading data file blocks by backends in this database, in milliseconds;
  • pgsql.dbstat.sum.blk_read_time["{#DBNAME}"] - the time spent reading data file blocks by backends in this database, in milliseconds;
  • pgsql.dbstat.sum.blk_write_time["{#DBNAME}"] - the time spent writing data file blocks by backends in this database, in milliseconds;
  • pgsql.dbstat.sum.checksum_failures["{#DBNAME}"] - the number of data page checksum failures detected (or on a shared object), or NULL if data checksums are not enabled (PostgreSQL version 12 only);
  • pgsql.dbstat.blks_read.rate["{#DBNAME}"] - the number of disk blocks read in this database;
  • pgsql.dbstat.deadlocks.rate["{#DBNAME}"] - the number of deadlocks detected in this database;
  • pgsql.dbstat.blks_hit.rate["{#DBNAME}"] - the number of times disk blocks were found already in the buffer cache, so that a read was not necessary (this only includes hits in the PostgreSQL Pro buffer cache, not the operating system's file system cache);
  • pgsql.dbstat.xact_rollback.rate["{#DBNAME}"] - the number of transactions in this database that have been rolled back;
  • pgsql.dbstat.xact_commit.rate["{#DBNAME}"] - the number of transactions in this database that have been committed;
  • pgsql.dbstat.tup_updated.rate["{#DBNAME}"] - the number of rows updated by queries in this database;
  • pgsql.dbstat.tup_returned.rate["{#DBNAME}"] - the number of rows returned by queries in this database;
  • pgsql.dbstat.tup_inserted.rate["{#DBNAME}"] - the number of rows inserted by queries in this database;
  • pgsql.dbstat.tup_fetched.rate["{#DBNAME}"] - the number of rows fetched by queries in this database;
  • pgsql.dbstat.tup_deleted.rate["{#DBNAME}"] - the number of rows deleted by queries in this database;
  • pgsql.dbstat.conflicts.rate["{#DBNAME}"] - the number of queries canceled due to conflicts with recovery in this database (the conflicts occur only on standby servers);
  • pgsql.dbstat.temp_files.rate["{#DBNAME}"] - the number of temporary files created by queries in this database. All temporary files are counted, regardless of the log_temp_files settings and reasons for which the temporary file was created (e.g., sorting or hashing);
  • pgsql.dbstat.temp_bytes.rate["{#DBNAME}"] - the total amount of data written to temporary files by queries in this database. Includes data from all temporary files, regardless of the log_temp_files settings and reasons for which the temporary file was created (e.g., sorting or hashing).
pgsql.dbstat.sum[uri,<username>,<password>,<database name>]


The summarized data for all databases in a cluster.
Return value: JSON object.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.

The returned data are processed by dependent items:

  • pgsql.dbstat.numbackends - the number of backends currently connected to this database;
  • pgsql.dbstat.sum.blk_read_time - time spent reading data file blocks by backends in this database, in milliseconds;
  • pgsql.dbstat.sum.blk_write_time - time spent writing data file blocks by backends in this database, in milliseconds;
  • pgsql.dbstat.sum.checksum_failures - the number of data page checksum failures detected (or on a shared object), or NULL if data checksums are not enabled (PostgreSQL version 12 only);
  • pgsql.dbstat.sum.xact_commit - the number of transactions in this database that have been committed;
  • pgsql.dbstat.sum.conflicts - database statistics about query cancels due to conflict with recovery on standby servers;
  • pgsql.dbstat.sum.deadlocks - the number of deadlocks detected in this database;
  • pgsql.dbstat.sum.blks_read - the number of disk blocks read in this database;
  • pgsql.dbstat.sum.blks_hit - the number of times disk blocks were found already in the buffer cache, so a read was not necessary (only hits in the PostgreSQL Pro buffer cache are included);
  • pgsql.dbstat.sum.temp_bytes - the total amount of data written to temporary files by queries in this database. Includes data from all temporary files, regardless of the log_temp_files settings and reasons for which the temporary file was created (e.g., sorting or hashing);
  • pgsql.dbstat.sum.temp_files - the number of temporary files created by queries in this database. All temporary files are counted, regardless of the log_temp_files settings and reasons for which the temporary file was created (e.g., sorting or hashing);
  • pgsql.dbstat.sum.xact_rollback - the number of rolled-back transactions in this database;
  • pgsql.dbstat.sum.tup_deleted - the number of rows deleted by queries in this database;
  • pgsql.dbstat.sum.tup_fetched - the number of rows fetched by queries in this database;
  • pgsql.dbstat.sum.tup_inserted - the number of rows inserted by queries in this database;
  • pgsql.dbstat.sum.tup_returned - the number of rows returned by queries in this database;
  • pgsql.dbstat.sum.tup_updated - the number of rows updated by queries in this database.
pgsql.locks[uri,<username>,<password>,<database name>]


The information about granted locks per database. Used for low-level discovery.
Return value: JSON object.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.

The returned data are processed by dependent items:

  • pgsql.locks.shareupdateexclusive["{#DBNAME}"] - the number of share update exclusive locks;
  • pgsql.locks.accessexclusive["{#DBNAME}"] - the number of access exclusive locks;
  • pgsql.locks.accessshare["{#DBNAME}"] - the number of access share locks;
  • pgsql.locks.exclusive["{#DBNAME}"] - the number of exclusive locks;
  • pgsql.locks.rowexclusive["{#DBNAME}"] - the number of row exclusive locks;
  • pgsql.locks.rowshare["{#DBNAME}"] - the number of row share locks;
  • pgsql.locks.share["{#DBNAME}"] - the number of shared locks;
  • pgsql.locks.sharerowexclusive["{#DBNAME}"] - the number of share row exclusive locks.
pgsql.oldest.xid[uri,<username>,<password>,<database name>]


The age of the oldest XID.
Return value: Integer.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.
pgsql.ping[uri,<username>,<password>,<database name>]


Tests whether a connection is alive or not.
Return value: 1 - the connection is alive; 0 - the connection is broken (if there is any error presented including AUTH and configuration issues).

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.
pgsql.queries[uri,<username>,<password>,<database name>,<time period>]


Queries metrics by execution time.
Return value: JSON object.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name;
  • timePeriod - the execution time limit for the count of slow queries (must be a positive integer).

The returned data are processed by dependent items:

  • pgsql.queries.mro.time_max["{#DBNAME}"] - the max maintenance query time;
  • pgsql.queries.query.time_max["{#DBNAME}"] - the max query time;
  • pgsql.queries.tx.time_max["{#DBNAME}"] - the max transaction query time;
  • pgsql.queries.mro.slow_count["{#DBNAME}"] - the slow maintenance query count;
  • pgsql.queries.query.slow_count["{#DBNAME}"] - the slow query count;
  • pgsql.queries.tx.slow_count["{#DBNAME}"] - the slow transaction query count;
  • pgsql.queries.mro.time_sum["{#DBNAME}"] - the sum maintenance query time;
  • pgsql.queries.query.time_sum["{#DBNAME}"] - the sum query time;
  • pgsql.queries.tx.time_sum["{#DBNAME}"] - the sum transaction query time.
pgsql.replication.count[uri,<username>,<password>]


The number of standby servers.
Return value: Integer.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials.
pgsql.replication.process[uri,<username>,<password>]


The flush lag, write lag and replay lag per each sender process.
Return value: JSON object.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials.
pgsql.replication.process.discovery[uri,<username>,<password>]


The replication process name discovery.
Return value: JSON object.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials.
pgsql.replication.recovery_role[uri,<username>,<password>]


The recovery status.
Return value: 0 - master mode; 1 - recovery is still in progress (standby mode).

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials.
pgsql.replication.status[uri,<username>,<password>]


The status of replication.
Return value: 0 - streaming is down; 1 - streaming is up; 2 - master mode.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials.
pgsql.replication_lag.b[uri,<username>,<password>]


The replication lag in bytes.
Return value: Integer.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials.
pgsql.replication_lag.sec[uri,<username>,<password>]


The replication lag in seconds.
Return value: Integer.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials.
pgsql.uptime[uri,<username>,<password>,<database name>]


The PostgreSQL uptime in milliseconds.
Return value: Float.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.
pgsql.version[uri,<username>,<password>,<database name>]


Returns PostgreSQL version.
Return value: String.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.
pgsql.wal.stat[uri,<username>,<password>,<database name>]


The WAL statistics.
Return value: JSON object.

Parameters:

  • uri - the URI or session name;
  • username, password - the PostgreSQL credentials;
  • database name - the database name.

The returned data are processed by dependent items:

  • pgsql.wal.count — the number of WAL files;
  • pgsql.wal.write - the WAL lsn used (in bytes).
redis.config[connString,<password>,<pattern>]


Gets the configuration parameters of a Redis instance that match the pattern.
Return value: JSON - if a glob-style pattern was used; single value - if a pattern did not contain any wildcard character.

Parameters:

  • connString - the URI or session name;
  • password - the Redis password;
  • pattern - a glob-style pattern (* by default).
redis.info[connString,<password>,<section>]


Gets the output of the INFO command.
Return value: JSON - the output is serialized as JSON.

Parameters:

  • connString - the URI or session name;
  • password - the Redis password;
  • section - the section of information (default by default).
redis.ping[connString,<password>]


Test if a connection is alive or not.
Return value: 1 - the connection is alive; 0 - the connection is broken (if there is any error presented including AUTH and configuration issues).

Parameters:

  • connString - the URI or session name;
  • password - the Redis password.
redis.slowlog.count[connString,<password>]


The number of slow log entries since Redis was started.
Return value: Integer.

Parameters:

  • connString - the URI or session name;
  • password - the Redis password.
smart.attribute.discovery


Returns a list of S.M.A.R.T. device attributes.
Return value: JSON object.

Comments:

  • The following macros and their values are returned: {#NAME}, {#DISKTYPE}, {#ID}, {#ATTRNAME}, {#THRESH};
  • HDD, SSD and NVME drive types are supported. Drives can be alone or combined in a RAID. {#NAME} will have an add-on in case of RAID, e.g: {"{#NAME}": "/dev/sda cciss,2"}.
smart.disk.discovery


Returns a list of S.M.A.R.T. devices.
Return value: JSON object.

Comments:

  • The following macros and their values are returned: {#NAME}, {#DISKTYPE}, {#MODEL}, {#SN}, {#PATH}, {#ATTRIBUTES}, {#RAIDTYPE};
  • HDD, SSD and NVME drive types are supported. If a drive does not belong to a RAID, the {#RAIDTYPE} will be empty. {#NAME} will have an add-on in case of RAID, e.g: {"{#NAME}": "/dev/sda cciss,2"}.
smart.disk.get[<path>,<raid type>]


Returns all available properties of S.M.A.R.T. devices.
Return value: JSON object.

Parameters:

  • path - the disk path, the {#PATH} macro may be used as a value;
  • raid_type - the RAID type, the {#RAID} macro may be used as a value

Comments:

  • HDD, SSD and NVME drive types are supported. Drives can be alone or combined in a RAID;
  • The data includes smartctl version and call arguments, and additional fields:
    disk_name - holds the name with the required add-ons for RAID discovery, e.g: {"disk_name": "/dev/sda cciss,2"}
    disk_type - holds the disk type HDD, SSD, or NVME, e.g: {"disk_type": "ssd"};
  • If no parameters are specified, the item will return information about all disks.
systemd.unit.get[unit name,<interface>]


Returns all properties of a systemd unit.
Return value: JSON object.

Parameters:

  • unit name - the unit name (you may want to use the {#UNIT.NAME} macro in item prototype to discover the name);
  • interface - the unit interface type, possible values: Unit (default), Service, Socket, Device, Mount, Automount, Swap, Target, Path.

Comments:

  • This item is supported on Linux platform only;
  • LoadState, ActiveState and UnitFileState for Unit interface are returned as text and integer: "ActiveState":{"state":1,"text":"active"}.
systemd.unit.info[unit name,<property>,<interface>]


A systemd unit information.
Return value: String.

Parameters:

  • unit name - the unit name (you may want to use the {#UNIT.NAME} macro in item prototype to discover the name);
  • property - unit property (e.g. ActiveState (default), LoadState, Description);
  • interface - the unit interface type (e.g. Unit (default), Socket, Service).

Comments:

  • This item is supported on Linux platform only;
  • This item allows to retrieve a specific property from specific type of interface as described in dbus API.

Examples:

systemd.unit.info["{#UNIT.NAME}"] #collect active state (active, reloading, inactive, failed, activating, deactivating) info on discovered systemd units
       systemd.unit.info["{#UNIT.NAME}",LoadState] #collect load state info on discovered systemd units
       systemd.unit.info[mysqld.service,Id] #retrieve the service technical name (mysqld.service)
       systemd.unit.info[mysqld.service,Description] #retrieve the service description (MySQL Server)
       systemd.unit.info[mysqld.service,ActiveEnterTimestamp] #retrieve the last time the service entered the active state (1562565036283903)
       systemd.unit.info[dbus.socket,NConnections,Socket] #collect the number of connections from this socket unit
systemd.unit.discovery[<type>]


List of systemd units and their details. Used for low-level discovery.
Return value: JSON object.

Parameter:

  • type - possible values: all, automount, device, mount, path, service (default), socket, swap, target.

This item is supported on Linux platform only.

web.certificate.get[hostname,<port>,<address>]


Validates the certificates and returns certificate details.
Return value: JSON object.

Parameter:

  • hostname - can be either IP or DNS.
    May contain the URL scheme (https only), path (it will be ignored), and port.
    If a port is provided in both the first and the second parameters, their values must match.
    If address (the 3rd parameter) is specified, the hostname is only used for SNI and hostname verification;
  • port - the port number (default is 443 for HTTPS);
  • address - can be either IP or DNS. If specified, it will be used for connection, and hostname (the 1st parameter) will be used for SNI, and host verification. In case, the 1st parameter is an IP and the 3rd parameter is DNS, the 1st parameter will be used for connection, and the 3rd parameter will be used for SNI and host verification.

Comments:

  • This item turns unsupported if the resource specified in host does not exist or is unavailable or if TLS handshake fails with any error except an invalid certificate;
  • Currently, AIA (Authority Information Access) X.509 extension, CRLs and OCSP (including OCSP stapling), Certificate Transparency, and custom CA trust store are not supported.