LarsFronius / MfG

Munin-facter-Graphite Daemon collecting Munin Data and sending it to Graphite with descriptive metric-names configurable through facts, written in python.
http://www.youtube.com/watch?v=uUV3KvnvT-w
13 stars 3 forks source link

questions on setup #1

Open innovia opened 11 years ago

innovia commented 11 years ago

Hi

What are facts? how do you configure them?

Does this tool need to be install on each munin-node or just the master?

i get this error after setting the config:

Could not get facts: [Errno 2] No such file or directory

what file is it lookin for?

what does the setup.py install do?

LarsFronius commented 11 years ago

Hi innovia, I think I need to clarify this in the README more intense. Facter is a tool (e.g. aptitude install facter) that comes with the configuration management puppet. It exposes information in form of a key-value format about the current host.

lfronius@Lars-MacBook-Pro ~ facter
architecture => x86_64
domain => local
facterversion => 1.6.17
fqdn => Lars-MacBook-Pro.local
hardwareisa => i386
hardwaremodel => x86_64
hostname => Lars-MacBook-Pro
id => lfronius

The intent is to use these information in MfG to compose the metrics string from it. The configuration file it is looking for is /etc/mfg.ini - see mfg.ini.example in this repository for usage.

zachfi commented 11 years ago

For what its worth, if you specify facter hostname, it will be much speedier than just running facter, since facter will only grab the facts that you require. Without any parameters, facter will retrieve all facts.

LarsFronius commented 11 years ago

@xaque208 thanks for your input - at the time writing this tool, I guess the company I worked at was still using Puppet 2.6, that had major problem with this sort of facter commands. On the other hand, I could try this way first and fallback to the "facter" command if no value is responded.