I have a user-defined check on the agent, which from the host checks like this,
$zabbix_get -s HOSTNAME -k check.disks
{
"data":[
{"{#MOUNT}":"/srv","{#SHORTMOUNTNAME}":"/srv"},
{"{#MOUNT}":"/tmp","{#SHORTMOUNTNAME}":"/tmp"},
{"{#MOUNT}":"/var","{#SHORTMOUNTNAME}":"/var"},
]
}
Discovery rule
-----------------
Name: Check Disks on {HOST.NAME}
Type: Zabbix agent (active)
Key: check.disks
Update Interval: 10s
Item
-----
Name: Free disk space on {#MOUNT}(percentage)
Type: Zabbix agent (active)
Key: vfs.fs.size[{#MOUNT},pfree]
Type of information: Numeric (float)
Units: %
Waited for 2 hours, there is no latest data from HOSTNAME. So how does this caboodle work? Anyone?
$zabbix_get -s HOSTNAME -k check.disks
{
"data":[
{"{#MOUNT}":"/srv","{#SHORTMOUNTNAME}":"/srv"},
{"{#MOUNT}":"/tmp","{#SHORTMOUNTNAME}":"/tmp"},
{"{#MOUNT}":"/var","{#SHORTMOUNTNAME}":"/var"},
]
}
Discovery rule
-----------------
Name: Check Disks on {HOST.NAME}
Type: Zabbix agent (active)
Key: check.disks
Update Interval: 10s
Item
-----
Name: Free disk space on {#MOUNT}(percentage)
Type: Zabbix agent (active)
Key: vfs.fs.size[{#MOUNT},pfree]
Type of information: Numeric (float)
Units: %
Waited for 2 hours, there is no latest data from HOSTNAME. So how does this caboodle work? Anyone?
Comment