Joseph,

Thanks for this detailed answer! I hadn't gotten to responding yet :(

Tom

On 03/14/2016 02:22 PM, Joseph Zancocchio wrote:
"file" is a unix command line utility which analyzes files and attempts to identify what "type" of file it is looking at.  It is used by the housekeeping script to test the .rrd files inside your rrd directory, and any which are corrupted, or otherwise not detected as a "valid" rrd by the "file" utitity, are deleted.

Pretty much any *nix distribution will have "file" included.  Run the command `which file` to get the path to it (likely not at /usr/bin/file, where it normally is, as that is the default path Observium looks in) and add it to your config.php as so:

$config['file'] = "/path/to/file";
Here is what happens if you run file against a valid rrd:

# file port-55.rrd
port-55.rrd: RRDTool DB version 0003 64bit aligned little-endian 64bit long (alpha/amd64/ia64)

If you don't have "file" installed on your system, you can either install it, or just do without that feature of the housekeeping script, as $config['file'] is not invoked anywhere else within Observium's code.

On 03/11/2016 11:33 PM, Sean Pedersen wrote:
The instructions for the housekeeping script mention the cleanup of invalid RRD files and that doing so "requires $config['file'] to be set correctly to the path of the file magic utility." I can't find any reference to $config['file'], magic file utilities, etc. in the default config.php, my current config.php, or anywhere online, mailing list archives, etc. What is this in reference to? It doesn't seem to be set anywhere. Did I miss something?

Consequently, whenever I run `housekeeping.php -r` with that option defaulted to TRUE, the process hangs and doesn't seem to do anything. Setting it to FALSE immediately deletes stale RRD files (by time via $config['housekeeping']['rrd']['age'] = timeInSeconds;) and completes the process. I checked housekeeping.log and there are no entries for 'invalid' (what I assume an invalid RRD file would log based on the rrd.inc.php module) and my log file goes back to 2014, so I know I’m not missing something that has rotated out.

I'm running 0.16.3.7663 for reference.
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium



_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium