Bug 235197

Summary: sysutils/munin-node: list output empty unless hostname is lower case
Product: Ports & Packages Reporter: John W. O'Brien <john>
Component: Individual Port(s)Assignee: Mathieu Arnold <mat>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (mat)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
sysutils/munin-node: Lookup registered plugins case-insensitively none

Description John W. O'Brien 2019-01-25 15:55:23 UTC
Created attachment 201395 [details]
sysutils/munin-node: Lookup registered plugins case-insensitively

Conditions to reproduce
=======================

The hostname Munin discovers or is configured with (host_name) contains uppercase characters.


Expected behavior
=================

$ telnet localhost 4949
Trying ::1...
Connected to localhost.
Escape character is '^]'.
# munin node at HostName.example.COM
list
cpu if_igb0 if_packets_igb0 iostat load memory systat users
quit
Connection closed by foreign host.


Observed behavior
=================

$ telnet localhost 4949
Trying ::1...
Connected to localhost.
Escape character is '^]'.
# munin node at HostName.example.COM
list

quit
Connection closed by foreign host.


Workaround
==========

A) Set an all-lowercase host name in the munin-node config:

    host_name hostname.example.com

OR

B) Set an all-lowercase host name in the munin-master config, and don't snoop the connection banner:

    [Group;hostname.example.com]
    # ...
    use_node_name no


Fix
===

This has been fixed upstream but not yet released. The attached patch backports the fix.

https://github.com/munin-monitoring/munin/commit/8ff5d5a9ec8b7ffd99dce61fee42defe7bda3b29
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-01-29 20:46:06 UTC
A commit references this bug:

Author: mat
Date: Tue Jan 29 20:45:23 UTC 2019
New revision: 491598
URL: https://svnweb.freebsd.org/changeset/ports/491598

Log:
  Fix munin-node when the hostname is mixed case.

  PR:		235197
  Submitted by:	John W. O'Brien

Changes:
  head/sysutils/munin-common/files/patch-node_lib_Munin_Node_Server.pm
  head/sysutils/munin-node/Makefile