Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently installed the munin software (munin.projects.linpro.no) to monitor workstations and servers in my LAN.
from the servers I am able to get all the infos I need (cpu, ram, inodes, etc..) but with the hot italian summer approaching I would like to monitor the workstation's sensors too.
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.
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.
the plugin requires lm-sensors and the the i2c modules and I have both:
Quote:
osmosis:/etc# sensors
it87-isa-0290
Adapter: ISA adapter
VCore 1: +1.54 V (min = +1.42 V, max = +1.57 V)
VCore 2: +2.50 V (min = +2.40 V, max = +2.61 V)
+3.3V: +0.00 V (min = +3.14 V, max = +3.47 V) ALARM
+5V: +0.00 V (min = +4.76 V, max = +5.24 V) ALARM
+12V: +0.00 V (min = +11.39 V, max = +12.61 V) ALARM
-12V: -27.36 V (min = -12.63 V, max = -11.41 V) ALARM
-5V: -13.64 V (min = -5.26 V, max = -4.77 V) ALARM
Stdby: +4.44 V (min = +4.76 V, max = +5.24 V) ALARM
VBat: +3.31 V
fan1: 1577 RPM (min = 0 RPM, div = 8)
fan2: 5273 RPM (min = 3013 RPM, div = 8)
CPU Temp: +48°C (low = +15°C, high = +45°C) sensor = diode
followind the official documentation I tried running manually the plugin with the following arguments:
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
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]
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 .
I know this is 3 years after the last post... but hopefully there is a response =)
I've ran the command,
Code:
munin-run sensors_fan
Can't exec "sensors": No such file or directory at /etc/munin/plugins/sensors_fan line 282.
Use of uninitialized value $text in pattern match (m//) at /etc/munin/plugins/sensors_fan line 284.
I'm wondering if someone can send me their config for the file,
sensors_
or preferably for the file,
ipmi_
ipmi_ mostly works, but there are no graphics displayed on the web interface.
I know this is 3 years after the last post... but hopefully there is a response =)
I've ran the command,
Quote:
Code:
munin-run sensors_fan
Can't exec "sensors": No such file or directory at /etc/munin/plugins/sensors_fan line 282.
Use of uninitialized value $text in pattern match (m//) at /etc/munin/plugins/sensors_fan line 284.
I'm wondering if someone can send me their config for the file,
Most probably configuration is not the problem here. Don't you see: "No such file or directory ..."? Munin sensor scripts don't automatically install the required programs, that they rely upon.
I bet you're missing the appropriate programs. So install matching versions of 'lib-sensors<n>' and 'lm-sensors', preferably with your package manager, whatever flavor you use, and check again, please.
The issue was that lm-sensors was missing, I didn't realise it was not installed as part of the package.
Applied your solution to the issue with "ipmi_", and it worked perfectly too (ipmitool in this case). Now comes the attempt to integrate all of this with Nagios XI...
Thanks a lot for the reply, really appreciated the help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.