Monday, September 10, 2012

Zabbix_get to know the items value + how to get the percente disk space usage by zabbix on windows OR “Not supported” by Zabbix.

for windows percentage disk space free

Template_Windows:vfs.fs.size[c:,free].last(0)}<1g br="br">(in item value use the "numeric unassigned")

Template_Windows:vfs.fs.size[c:,pfree].last(0)}<10 br="br">(in item value use the "numeric flot")
you can add:

HTML Code:
PerfCounter = LogicalDisk:PercentFreeSpaceOnC,"\LogicalDisk(C:)\% Free Space",900
PerfCounter = LogicalDisk:PercentFreeSpaceOnD,"\LogicalDisk(D:)\% Free Space",900

on you zabbix_agentd.conf. And create trigger to alert you when machine has lower then 10% or 5%


Run zabbix_get on the Zabbix server machine.

for example

[root@abc ~]# zabbix_get -s -k system.swap.size[,free]
[root@abc ~]# zabbix_get -s -k vfs.fs.size[c:,free]
[root@abc ~]# zabbix_get -s -k vfs.fs.size[c:,pfree]
[root@abc ~]# zabbix_get -s -k vfs.fs.size[c:,free]

If your item isn’t receiving any data even though there are error entries in the log then enable detailed logging in Zabbix to verify that the agent and server haven’t a problem. (If they do then the status of the item will be changed to “Not supported” by Zabbix.)

To enable logging, make sure there is DebugLevel=5 and LogFile=/var/log/zabbix-agent/zabbix_agentd.log (without a leading #)  in /etc/zabbix/zabbix_agentd.conf.

One possible cause of problem is if Hostname in /etc/zabbix/zabbix_agentd.conf and in the Zabbix UI differ, f.ex. if one of them is fully qualified and the other isn’t.

No comments:

Post a Comment