PDA

View Full Version : zabbix_agentd giving wrong results for hard disk


bisana
09-08-2005, 07:19
Hi all
I had tried my luck in zabbix mailing list , I had posted this problem to the mailing list , I thought of posting it to the forum also

I am need guidance , I switched to “zabix_agentd” monitoring since SNMP was not giving me the correct parameter for CPU usage
Here now Zabbix_agents is working fine for some parameters, but for checking the hard disk space it give me all wrong answers monitoring through zabbix_agentd ,
I was not getting correct result for Free disk space on “/” “/home” , it always shows 1.33 MB for both the values , the key which I had given is “diskfree[/home]” , diskfree[/], the other parameter which i monitor I am getting the desired results
Please guide me
Thanks
Joseph John

Alexei
09-08-2005, 07:41
Give us output of 'df' or 'df -k'.

bisana
09-08-2005, 08:27
Hi Alexei
Thanks for the reply , I am sending the , view detail


A>> The View details in Zabbix shows

Total disk space on / 09 Aug 10:00:00 0 B - Graph
Total disk space on /boot 09 Aug 10:15:10 0 B - Graph
Total disk space on /opt1 09 Aug 10:00:01 0 B - Graph
Total swap space 09 Aug 10:00:02 2.00 GB - Graph
Used disk space on / 09 Aug 10:15:01 0 B - Graph
Used disk space on /tmp 09 Aug 10:15:01 0 B - Graph
WEB (HTTP) server is running 09 Aug 10:15:03 0



B>> df -h gives

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 38G 36G 1.3G 97% /
/dev/md2 62M 23M 35M 39% /boot
/dev/md3 72G 36G 33G 52% /opt1
none 2.0G 0 1.9G 0% /dev/shm


C>> And host conf detail
For Disk total
key is "disktotal[/boot]" for total disk space on /boot
"disktotal[/opt1]" for total disk space on /opt1
"disktotal[/]" for total disk space on /

For Used Disk Space
key is
"diskused[/]" for diskused on /

James Wells
09-08-2005, 16:46
Greetings,

Right off the bat, it appears that you have the multiplier set incorrectly. My guess is that you have the multiplier set to 1000, if so, change it to 100.

Also note that since /home is actually part of the / filesystem, that you will be unable to obtain usage information on home, but it will instead be part of the information you recieve for /

bisana
14-08-2005, 05:55
:)
Hi James , Alexi
I was able to resolve the problem
I kept the multiplier set to 1000
my humble suggestion
1>Some of the default template for host.unix the multiplier is set to 0 , so when some is making a copy of it he gets answer 0 ( for eg disktotal[/tmp] , disktotal[/]
2>Some documentation regarding the multiplier , and why it is used should be given in the manual / help file
THANKS to Alexi and James
Thanks
Joseph John