Quote:
Originally Posted by asgozzi
hi.
I recently installed the munin software (munin.projects.linpro.no) to monitor workstations and servers in my LAN. [snip]
|
Well, I was there some days ago, when setting up a system for myself. There are some questions left for me too, but at least I think I got behind the point, from where you were asking below. So expect an answer from a not much wiser colleague :-)
Quote:
Originally Posted by asgozzi
the problem is I can't configure properly the munin-node plugin in order to send the munin server data like CPU temperature, fans speeds and voltages.
|
Don't confuse server and client tasks. The Munin server is pulling data from the node(s). A Munin node (client) will never contact the server on it's own, regardless of the server running at localhost or on another machine.
I guess, you're running both - server and node scripts - on the same machine. This is covered by the standard Munin configuration AFAIK from my install (Debian GNU/Linux package for lenny aka 5.0). A central Munin server collecting data from multiple machines seems not to hard to configure and requires some additional statements in the Munin server configuration file typically located at /etc/munin/munin.conf .
Quote:
Originally Posted by asgozzi
I read at least twice all the documents on the official munin website but I still can't figure out if the plugin code has to be edited or if I need to set special environment variables.
|
Well, I see a bunch of plug-in scripts in /usr/share/munin/plugins , but you need to link each script to /etc/munin/plugins like this
Code:
#> ls -al /etc/munin/plugins/
total 8
drwxr-xr-x 2 root root 4096 May 29 23:15 .
drwxr-xr-x 5 root root 4096 May 16 22:49 ..
lrwxrwxrwx 1 root root 34 May 25 00:24 apt-proxy -> /usr/share/munin/plugins/apt-proxy
lrwxrwxrwx 1 root root 32 May 24 22:53 bind95 -> /usr/share/munin/plugins/bind95_
lrwxrwxrwx 1 root root 28 May 16 22:49 cpu -> /usr/share/munin/plugins/cpu
lrwxrwxrwx 1 root root 27 May 16 22:49 df -> /usr/share/munin/plugins/df
[snip]
Plug-ins with a name ending in "_" are special. By running it like this
Code:
#> munin-run sensors_fan suggest
fan
volt
temp
It is telling you, that you may create the three different links
Code:
sensors_fan -> /usr/share/munin/plugins/sensors_
sensors_volt -> /usr/share/munin/plugins/sensors_
sensors_temp -> /usr/share/munin/plugins/sensors_
to make full use of it's capabilities.
Configuration hints reside inside each plug-in script. Just open it with your favorite editor. In the header you should find hints about options for that plug-in to be put into the central Munin plug-in configuration file /etc/munin/plugin-conf.d/munin-node . Editing the scripts is often not necessary, but you may customize them or even create your own as you like (if you're able to do so).
Quote:
Originally Posted by asgozzi
the plugin requires lm-sensors and the the i2c modules and I have both:
followind the official documentation I tried running manually the plugin with the following arguments: [snip]
|
You are looking for this:
Code:
#> munin-run sensors_fan
fan1.value 0
fan2.value 4891
Yes, it's that easy, if lm-sensors/libsensors4 is configured well in /etc/sensors3.conf (current) or /etc/sensors.conf (old location). That is a different thing, but your output of the "sensors" command seems ok.
Quote:
Originally Posted by asgozzi
I also tried 'conf' but that gives no output at all.
|
Expect to see nothing. You'll see more with a slightly different call:
Code:
#> munin-run sensors_fan config
graph_title Fans
graph_vtitle RPM
graph_args --base 1000 -l 0
graph_category sensors
fan1.label Case Fan
fan1.warning 1394:
fan1.critical 1328:
fan2.label CPU Fan
fan2.warning 4428:
fan2.critical 4218:
Quote:
Originally Posted by asgozzi
I'm sorry for the (maybe) dumb question but I really don't know where to look
this is the plugin code: [snip]
|
I know, in fact this is Debian/GNU Linux too, right? :-)
You have a WWW server at the same machine Munin is running on? If not, you'll have to install one, to get the graphs in /var/www/munin by directing you Browser of choice to <munin-server-ip>/munin .
Hope, that will give you something to continue.