Bug 235197 - sysutils/munin-node: list output empty unless hostname is lower case
Summary: sysutils/munin-node: list output empty unless hostname is lower case
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-25 15:55 UTC by John W. O'Brien
Modified: 2019-01-29 20:46 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (mat)


Attachments
sysutils/munin-node: Lookup registered plugins case-insensitively (1.56 KB, text/plain)
2019-01-25 15:55 UTC, John W. O'Brien
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 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