Whenever
--------
The status determination (on, off, error) should really be the
responsibility of the HDAPS code. Currently, the plugin handles all of
the "on" states. An HdapsState structure might be appropriate.

Replace FILENAME_MAX with something that won't cause problems on
Unices without path length limits.
