sensu/sensu-community-plugins — pull request #336 by jmherbst (2013-11-06 19:14:38+00:00)
Title: Added option to specify encoding page for check-log.rb 

This provides a method for a user to explicitly open log file with a specific encoding. If no encoding passed to command, then it opens file normally, without specifying encoding.

Example:
check-log.rb -f /var/log/testing.log -s /tmp -q 'This is a test String' -e 'r:iso8859-1'

http://stackoverflow.com/a/15507882

-
jake herbst
jmherbst@gmail.com