PDA

View Full Version : disk_free_%


michu
20-12-2004, 12:49
hey...

just a idea.. it is possible to enhance the simple checks, that you can check the % of free disk space (via snmp)

the command could look like this:

simplecheck_diskfree_proc[1]

means, i check the % of free disk space on disk 1.

i think this would help a lot

cheers

cooper
20-12-2004, 15:49
hey...

just a idea.. it is possible to enhance the simple checks, that you can check the % of free disk space (via snmp)

the command could look like this:

simplecheck_diskfree_proc[1]

means, i check the % of free disk space on disk 1.

i think this would help a lot

cheers


If you are querying via snmp, its not a "simple check". If your system supports a disk free % variable, then all you need is the OID and zabbix will happily do the snmp query for you.

michu
20-12-2004, 16:00
yes i know... but i mean instead of getting the snmp value of thee whole disk space and the snmp value of the used disk space and calculate the % of free space, it would nice, to define something like a makro .. thats what i meant.. youre right, simple check is not the right expression...

Alexei
20-12-2004, 16:11
FYI ZABBIX v1.1 alphas already support diskused_perc
and diskfree_perc
. See http://www.zabbix.com/manual/v1.1/config_items.php for more details.

michu
20-12-2004, 16:22
but this function needs the zabbix agent... it would be possible without, just via snmp. you know what i mean?

cheers

cooper
20-12-2004, 18:47
You could accomplish this by writing a script that would run the snmp query of the OIDs in question and then preform the necessary calculations to get % free or % used. Then use zabbix_sender to feed the data to the zabbix_trapperd (or zabbix_serverd if you are at 1.1alpha3) process. This script could be placed on the Zabbix server or on the monitored host and called from cron.