railsware / newrelic_platform_plugins

MIT License
42 stars 66 forks source link

Reading the file name to watch from the yml file #44

Open afranz33 opened 10 years ago

afranz33 commented 10 years ago

When I add this entry into the generated newrelic yml file and run the agent i keep getting the error below:

I'd like to make a absolute path to a file, I've tried many different ways, could someone help?

log_path: c:/log.txt log_path: c:\log.txt log_path: c:\log.txt log_path: log.txt

yml file section: agents: my_logfile_1:

Full path to the the log file

log_path: c:/log.log
# Returns the number of matches for this term. Use Linux Regex formatting.
# Default: "[Ee]rror"
term: "[Ee]rror   "
# Provide any options to pass to grep when running.
# For example, to count non-matching lines, enter 'v'.
# Use the abbreviated format ('v' and not 'invert-match').
grep_options:

c:\Scripts\newrelic_logwatcher_agent>ruby newrelic_logwatcher_agent.rb Agent Logwatcher is at version 0.0.2 c:/Scripts/newrelic_logwatcher_agent -> This is the cur directory c:/log.log Error occurred in poll cycle: No such file or directory - test -e c:/log.log Gathered 0 statistics

blckmorning commented 9 years ago

+1