Thanks for that. I guess I'll stay on the non-root side of things. As I say, if 
a file is created by some other vendor (MySQL in this case) as mode 0600, 
you're flat out of luck (good luck getting Oracle to change the permissions on 
that file for you!). 

That means I can't use the filestat input quite the way I'd like to, but 
instead will use the Exec plugin (with a sudo run script) to do what I need. 

In fact, I've already used this method to get all of our CheckMK Local Checks 
into Influx. I use a modified version of the CheckMK agent (which is just a 
bash script) to run all the local checks as 'cached checks' (either as they're 
set, or 60 seconds if they're not cached checks). I then 'translate' the 
check's magic line output into Influx format data and write that to STDOUT 
which the Exec plugin sucks up and pushes into Influx. Incredibly easy and a 
great way to leverage the investment we already have in CheckMK.

-- 
Remember to include the version number!
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/a4e7599d-eff0-445d-91d2-5f4dd79af8c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to