[collectd] df plugin replaces / with - how to get original partition name?
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...
More information about the collectd