How to calculate cache file usage (for Nagios monitoring) in varnish 3?

Sascha Ottolski ottolski at
Mon Feb 18 14:35:39 CET 2013

Am Montag, 18. Februar 2013, 14:14:41 schrieb Dag Haavi Finstad:
> Hi
> You can accomplish this by looking at SMF.s0.g_bytes and
> SMF.s0.g_space.
> g_bytes is the amount of memory currently in use, g_space is what's
> available. The sum of the two will equal the configured storage size.
> To get "fill level" as a percentage, do g_bytes / (g_bytes + g_space).
> Regards,
> Dag

great, thanks a lot!


More information about the varnish-misc mailing list