N
N
Nikolay Baranenko2017-12-14 21:58:12
Zabbix
Nikolay Baranenko, 2017-12-14 21:58:12

Why are there no counters for free space in the file system in the items list?

Hello.
Making an API request to zabbix

zabbix_get=\
    {
        "jsonrpc": "2.0",
        "method": "item.get",
        "params": {
            "output": "extend",
            "hostids": 123,
            "search": {
                "key_": "system"
            },
            "sortfield": "name"
        },
        "auth": authToken.get("result"),
        "id": authToken.get("id")
    }

a server with Linux OS,
as a result, a lot is returned (CPU, etc.), which everything has not been checked, BUT there are no metrics with itemid for Free disk space on / data,
why is it not there and how to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay Baranenko, 2017-12-15
@drno-reg

the problem was in search by key

zabbix_get=\
    {
        "jsonrpc": "2.0",
        "method": "item.get",
        "params": {
            "output": "extend",
            "hostids": 123,
            "search": {
                "key_": "vfs.fs.size"
            },
            "sortfield": "name"
        },
        "auth": authToken.get("result"),
        "id": authToken.get("id")
    }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question