Bug 673263

Summary: Munin node returns an empty list of plugins with uppercase hostnames
Product: [Fedora] Fedora EPEL Reporter: BK Box <bk-redhat>
Component: muninAssignee: Kevin Fenzi <kevin>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el5CC: ingvar, kevin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: munin-1.4.5-6.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-24 19:53:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description BK Box 2011-01-27 21:18:18 UTC
Description of problem:

When a server has uppercase letters in the hostname, the munin-node will not match the hostname when asking for a list of plugins.

Version-Release number of selected component (if applicable):

1.4.5

How reproducible:

Every time

Steps to Reproduce:
1.Create a server with hostname containing uppercase letters (i.e. HostName.example.com)
2.Install Munin
3.telnet 0 4949
4.nodes
5.list HostName.example.com
  
Actual results:

*blank*

Expected results:

list of available plugins as defined in /etc/munin/plugins/

Additional info:

This bug has been fixed, but is yet to be released by the munin group:
http://munin-monitoring.org/ticket/952

Comment 1 Kevin Fenzi 2011-02-04 23:19:00 UTC
Can you try the scratch build at: 

http://koji.fedoraproject.org/koji/taskinfo?taskID=2763244

and confirm it fixes this issue?

Comment 2 BK Box 2011-02-07 18:47:17 UTC
This bug is still present in the scratch build packages:

# rpm -q munin-node
munin-node-1.4.5-5.el5
[root@CentOS ~]# rpm -qi munin-node
Name        : munin-node                   Relocations: (not relocatable)
Version     : 1.4.5                             Vendor: Fedora Project
Release     : 5.el5                         Build Date: Fri 04 Feb 2011 05:15:19 PM CST
Install Date: Mon 07 Feb 2011 11:10:17 AM CST      Build Host: x86-05.phx2.fedoraproject.org
Group       : System Environment/Daemons    Source RPM: munin-1.4.5-5.el5.src.rpm
Size        : 1148745                          License: GPLv2 and Bitstream Vera
Signature   : (none)
Packager    : Fedora Project
URL         : http://munin.projects.linpro.no/
Summary     : Network-wide graphing framework (node)

# su - munin --shell=/bin/bash -c munin-cron
[FATAL] There is nothing to do here, since there are no nodes with any plugins.  Please refer to http://munin-monitoring.org/wiki/FAQ_no_graphs at /usr/share/munin/munin-html line 38

When I manually patch the Server.pm file, it runs fine after a munin-node restart:

# grep _list_services /usr/lib/perl5/vendor_perl/5.8.8/Munin/Node/Server.pm
        _list_services($session, lc($1));
# service munin-node restart
# su - munin --shell=/bin/bash -c munin-cron
mkdir /var/lib/munin/localdomain
mkdir /var/www/html/munin/localdomain
mkdir /var/www/html/munin/localdomain/localhost.localdomain
mkdir /var/www/html/munin/localdomain/localhost.localdomain/diskstats_latency
mkdir /var/www/html/munin/localdomain/localhost.localdomain/diskstats_iops
mkdir /var/www/html/munin/localdomain/localhost.localdomain/diskstats_throughput
mkdir /var/www/html/munin/localdomain/localhost.localdomain/diskstats_utilization

Comment 3 Kevin Fenzi 2011-02-07 22:20:43 UTC
Humf. I seem to have missed an important part of the patch. 

Try: 

http://koji.fedoraproject.org/koji/taskinfo?taskID=2768386

If that doesn't work, what _exact_ patch are you applying? ;)

Comment 4 BK Box 2011-02-07 22:42:33 UTC
Awesome!  That one is workin pretty darn good.

Just so you  have it, here is the bug link in Munin:

http://www.munin-monitoring.org/ticket/952

Thank you.

Comment 5 Fedora Update System 2011-02-09 02:44:13 UTC
munin-1.4.5-6.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/munin-1.4.5-6.el6

Comment 6 Fedora Update System 2011-02-09 03:20:03 UTC
munin-1.4.5-5.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/munin-1.4.5-5.el5

Comment 7 Fedora Update System 2011-02-09 17:26:59 UTC
munin-1.4.5-5.el5 has been pushed to the Fedora EPEL 5 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update munin'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/munin-1.4.5-5.el5

Comment 8 BK Box 2011-02-09 18:37:54 UTC
I added a comment on the feedback page.

It works for me, but I have to manually restart munin-node for it to take effect.

Comment 9 Fedora Update System 2011-02-24 19:53:39 UTC
munin-1.4.5-5.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2011-02-24 19:54:01 UTC
munin-1.4.5-6.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.