[op5-users] Check_esx3.pl - problem with vmfs

Libor Klepáč libor.klepac at bcom.cz
Wed Feb 24 11:35:45 CET 2010


Hi,
I have found another issue with check_esx3.pl, this time on checking vmfs.
When you use NFS data storage (probably also other storage, but it can be 
easily simulated on nfs) and it goes away (somebody shuts down nfs, unexports 
it ...etc) check_esx tries to divide by 0 (capacity of storage is 0MB when 
it's not accessible)

Patch to solve this attached, please feel free to modify it.
I wasn't sure about returing perfomance data there, also message should be 
writen in some other way. Also if ($capacity != 0) block can embrace smaller 
piece of code?

With regards

Libor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_esx3.pl.diff
Type: text/x-patch
Size: 3405 bytes
Desc: not available
Url : http://lists.op5.com/pipermail/op5-users/attachments/20100224/ab52145f/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.op5.com/pipermail/op5-users/attachments/20100224/ab52145f/attachment-0001.bin 


More information about the op5-users mailing list