1 Feb 2003 09:55
Re: Patch to add output of "smartctl -a" to smartd's mail message if -M enabled
Bruce Allen <ballen <at> gravity.phys.uwm.edu>
2003-02-01 08:55:27 GMT
2003-02-01 08:55:27 GMT
Hi Phil, Tim,
I think that this is finally converging. I've implemented and documented
the following:
-m address : just sends mail using 'mail' command in environment's path
-m address -M exec /a/path : sends mail using /a/path
-m <nomailer> -M exec /a/path: just runs /a/path with no STDIN or command
line arguments at all.
In all three cases a number of environment variables are set before
anything is run.
I have made the manual pages consistent with the code, and I've tested
the example scripts from the manual.
Phil, the one request I have is that I'd like you to back out the 'double
quote' interpretation from smartd.c. In other words if the user says
-M exec /not/a path
this is (currently, and correctly) an error
If the user says
-M exec "/not/a path"
this is NOT currently an error, but I'd like it to be one! The error
message should just say something along the standard lines of:
.... path" is not a Directive.
In other words, I want to go back to white-space delimited tokens only.
(Continue reading)
RSS Feed