[collectd] df plugin replaces / with - how to get original partition name?

O G otis_junk at yahoo.com
Sat Dec 17 22:05:01 CET 2011

I'm starting to use the 'df' plugin to detect free/used disk space, and I noticed that partition names get converted from for example /var/lib to var-lib.  Because this "var-lib" ends up being a part of the filename, I understand why the file name cannot use "/var/lib".
But I'm wondering if there is some way to get the original name of the partition?
I could just convert all dashes to slashes, but that would break things in case there is a partion that's really named /var/foo-bar for example.
How do others deal with this?
Any tips would be appreciated!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20111217/80bca7c5/attachment.html>

More information about the collectd mailing list